Dataset Viewer
repo_id
stringclasses 137
values | file_path
stringlengths 10
89
| content
stringlengths 0
990k
| __index_level_0__
int64 0
0
|
---|---|---|---|
mono | /mono/.editorconfig | root = true
[*]
max_line_length = 120
trim_trailing_whitespace = true
insert_final_newline = true
indent_style = space
indent_size = 2
| 0 |
mono | /mono/init.sh | #!/usr/bin/env bash
echo -e "__________________ _____ ______ _____ _ _______ "
echo -e "| ___| _ \ ___ \ | __ \| ___ \ _ | | | | ___ \ "
echo -e "| |_ | | | | |_/ / | | \/| |_/ / | | | | | | |_/ / "
echo -e "| _| | | | | / | | __ | /| | | | | | | __/ "
echo -e "| | | |/ /| |\ \ | |_\ \| |\ \\ \_/ / |_| | | "
echo -e "\_| |___/ \_| \_| \____/\_| \_|\___/ \___/\_| "
DEBUG=false
SUCCESS=0
while getopts "dh" arg; do
case $arg in
d)
DEBUG=true
;;
h)
echo "This script is used to initialize the project for local development."
echo ""
echo "Usage: $0 [-d] [-h]"
echo " -d: Enable debug mode"
echo " -h: Show this help"
exit $SUCCESS
;;
esac
done
main() {
prep_local_env
prep_config
prep_docker
echo -e "\r\nDone!"
exit $SUCCESS
}
prep_local_env() {
if [ "$DEBUG" = true ]; then
echo -e "Generating Secrets..."
make secrets
echo -e "Setting Env Variables..."
make env
echo -e "Adding Hostfile Entries..."
make hosts
echo -e "Creating Data Directories..."
make dirs
else
echo -e "Generating Secrets..."
make secrets > /dev/null 2>&1
echo -e "Setting Env Variables..."
make env > /dev/null 2>&1
echo -e "Adding Hostfile Entries..."
make hosts > /dev/null 2>&1
echo -e "Creating Data Directories..."
make dirs > /dev/null 2>&1
fi
}
prep_config() {
echo -e "Creating config files (if necessary)..."
for d in crates/* ; do
[ -L "${d%/}" ] && continue # ignore symlinked directories (not that there should be any)
test -f $d/config-local.toml || (test -f $d/config-local.toml.tmpl && cp $d/config-local.toml.tmpl $d/config-local.toml)
done
}
prep_docker() {
if [ "$DEBUG" = true ]; then
echo -e "Creating Rust Builder Docker Image..."
make rust-builder
echo -e "Building Rust Applications..."
make cargo-build-docker
echo -e "Packing Docker Images..."
make pack-rust-docker-omnibus
else
echo -e "Creating Rust Builder Docker Image..."
make rust-builder > /dev/null 2>&1
echo -e "Building Rust Applications..."
make cargo-build-docker > /dev/null 2>&1
echo -e "Packing Docker Images..."
make pack-rust-docker-omnibus > /dev/null 2>&1
fi
}
main
| 0 |
mono | /mono/Tiltfile.test | # Tiltfile
update_settings(max_parallel_updates=8, k8s_upsert_timeout_secs=120)
load('ext://min_tilt_version', 'min_tilt_version')
load('ext://min_k8s_version', 'min_k8s_version')
load('ext://helm_remote', 'helm_remote')
load('ext://helm_resource', 'helm_resource', 'helm_repo')
load('scripts/tilt/port_forward.py', 'fdr_port_forward')
load('scripts/tilt/docker_build.py', 'fdr_docker_build')
min_tilt_version('0.33.5')
min_k8s_version('1.27.0')
###################################################################################################
# Local Preparation
###################################################################################################
local_resource(
'cargo_build_docker',
'./scripts/docker-build-for-k8s.sh -o',
labels=['Build'],
allow_parallel = True
)
local_resource(
'make-secrets',
'make secrets',
allow_parallel = True,
labels=['Build']
)
local_resource(
'helm-dep-build',
'./scripts/helm-dep-build.sh',
allow_parallel = True,
labels=['Build']
)
helm_repo('bitnami', 'https://charts.bitnami.com/bitnami')
helm_repo('vectorized', 'https://charts.vectorized.io')
###################################################################################################
# PostgreSQL
###################################################################################################
k8s_yaml(helm(
'./helm/postgresql-test',
name='postgresql-test',
values=[
'helm/postgresql-test/values-local.yaml',
]
))
k8s_resource(
workload='postgresql-test',
resource_deps=[
'helm-dep-build',
],
port_forwards=[
port_forward(5432, 5432, name='PostgreSQL'),
],
labels=['PostgreSQL']
)
fdr_docker_build(
'sqlx-cli', '.',
dockerfile='docker/rust/sqlx-cli.Dockerfile',
extra_tags=['registry.gitlab.com/fdr-group/mono/sqlx-cli:latest']
)
helm_resource(
'postgresql-migrate',
'./helm/postgresql-migrate',
release_name='postgresql-migrate',
flags=['--values=./helm/postgresql-migrate/values/local.yaml'],
resource_deps=[
'postgresql',
'docker_build::sqlx-cli',
'kind_load::sqlx-cli',
],
auto_init=False,
labels=['PostgreSQL'],
)
###################################################################################################
# Grafana / Prometheus / Tempo
###################################################################################################
values_prometheus=['helm/prometheus/values/local.yaml']
helm_resource(
'prometheus',
'./helm/prometheus',
release_name='prometheus',
deps=values_prometheus,
flags=["--values={0}".format(values_file) for values_file in values_prometheus],
resource_deps=[
'helm-dep-build',
],
port_forwards=[
port_forward(9090, 9090, name='Prometheus'),
],
labels=['Observability']
)
values_grafana=['helm/grafana/values/local.yaml']
helm_resource(
'grafana',
'./helm/grafana',
release_name='grafana',
deps=values_grafana,
flags=["--values={0}".format(values_file) for values_file in values_grafana],
resource_deps=[
'helm-dep-build',
],
port_forwards=[
port_forward(3000, 3000, name='Grafana'),
],
labels=['Observability']
)
values_tempo=['helm/grafana-tempo/values/local.yaml']
helm_resource(
'tempo',
'./helm/grafana-tempo',
release_name='tempo',
deps=values_tempo,
flags=["--values={0}".format(values_file) for values_file in values_tempo],
resource_deps=[
'helm-dep-build',
],
port_forwards=[
port_forward(3100, 3100, name='Tempo'),
port_forward(4317, 4317, name='OTLP GRPC'),
port_forward(4318, 4318, name='OTLP HTTP'),
],
labels=['Observability']
)
helm_remote(
'promtail',
'https://grafana.github.io/helm-charts',
'grafana',
values=[
'helm/promtail/values.yaml',
'helm/promtail/values-local.yaml'
]
)
k8s_resource(
workload='promtail',
port_forwards=[],
labels=['Observability']
)
helm_remote(
'loki-stack',
'https://grafana.github.io/helm-charts',
'grafana',
values=[
'helm/grafana-loki/values.yaml',
'helm/grafana-loki/values-local.yaml'
]
)
k8s_resource(
workload='loki-stack',
port_forwards=[],
labels=['Observability']
)
###################################################################################################
# Strat Market Maker
###################################################################################################
k8s_yaml(helm(
'helm/back-testing-service',
name='bts-90d99ddfba11480e9a31792670745053',
values=['helm/back-testing-service/90d99ddfba11480e9a31792670745053/values.yaml']
))
k8s_resource(
resource_deps=['cargo_build_docker', 'update-helm', 'make-secrets', 'postgresql-test', 'tempo'],
labels=['BackTestingService'],
trigger_mode=TRIGGER_MODE_MANUAL,
auto_init=False,
workload='bts-90d99ddfba11480e9a31792670745053'
)
###################################################################################################
# END
###################################################################################################
| 0 |
mono | /mono/Tiltfile | # Tiltfile
update_settings(max_parallel_updates=8, k8s_upsert_timeout_secs=120)
load('ext://min_tilt_version', 'min_tilt_version')
load('ext://min_k8s_version', 'min_k8s_version')
load('ext://helm_remote', 'helm_remote')
load('ext://helm_resource', 'helm_resource', 'helm_repo')
load('scripts/tilt/port_forward.py', 'fdr_port_forward')
load('scripts/tilt/docker_build.py', 'fdr_docker_build')
min_tilt_version('0.33.5')
min_k8s_version('1.27.0')
###################################################################################################
# Local Preparation
###################################################################################################
local_resource(
'cargo_build_docker',
'./scripts/docker-build-for-k8s.sh -o',
labels=['Build'],
allow_parallel = True
)
local_resource(
'make-secrets',
'make secrets',
allow_parallel = True,
labels=['Build']
)
local_resource(
'helm-dep-build',
'./scripts/helm-dep-build.sh',
allow_parallel = True,
labels=['Build']
)
helm_repo('bitnami', 'https://charts.bitnami.com/bitnami')
helm_repo('vectorized', 'https://charts.vectorized.io')
###################################################################################################
# PostgreSQL
###################################################################################################
k8s_yaml(helm(
'./helm/postgresql',
name='postgresql',
values=[
'helm/postgresql/values/local.yaml',
]
))
k8s_resource(
workload='postgresql',
resource_deps=[
'helm-dep-build',
],
port_forwards=[
port_forward(5432, 5432, name='PostgreSQL'),
],
labels=['PostgreSQL']
)
fdr_docker_build(
'sqlx-cli', '.',
dockerfile='docker/rust/sqlx-cli.Dockerfile',
extra_tags=['registry.gitlab.com/fdr-group/mono/sqlx-cli:latest']
)
helm_resource(
'postgresql-migrate',
'./helm/postgresql-migrate',
release_name='postgresql-migrate',
flags=['--values=./helm/postgresql-migrate/values/local.yaml'],
resource_deps=[
'postgresql',
'docker_build::sqlx-cli',
'kind_load::sqlx-cli',
],
auto_init=False,
labels=['PostgreSQL'],
)
###################################################################################################
# Redpanda
###################################################################################################
values_redpanda=[
'helm/redpanda/values/local.yaml',
]
helm_resource(
'redpanda',
'./helm/redpanda',
release_name='redpanda',
deps=values_redpanda,
flags=["--values={0}".format(values_file) for values_file in values_redpanda],
resource_deps=[
'helm-dep-build',
'pf:redpanda-console',
'pf:redpanda',
],
labels=['Redpanda']
)
k8s_resource('redpanda', links=[link('http://localhost:8080', 'Redpanda Console')])
fdr_port_forward('deployment/redpanda-console', 8080, 8080, labels=['Redpanda'])
fdr_port_forward('statefulset/redpanda', 9094, 9094, labels=['Redpanda'])
###################################################################################################
# Grafana / Prometheus / Tempo
###################################################################################################
values_prometheus=['helm/prometheus/values/local.yaml']
helm_resource(
'prometheus',
'./helm/prometheus',
release_name='prometheus',
deps=values_prometheus,
flags=["--values={0}".format(values_file) for values_file in values_prometheus],
resource_deps=[
'helm-dep-build',
],
port_forwards=[
port_forward(9090, 9090, name='Prometheus'),
],
labels=['Observability']
)
values_grafana=['helm/grafana/values/local.yaml']
helm_resource(
'grafana',
'./helm/grafana',
release_name='grafana',
deps=values_grafana,
flags=["--values={0}".format(values_file) for values_file in values_grafana],
resource_deps=[
'helm-dep-build',
],
port_forwards=[
port_forward(3000, 3000, name='Grafana'),
],
labels=['Observability']
)
values_tempo=['helm/grafana-tempo/values/local.yaml']
helm_resource(
'tempo',
'./helm/grafana-tempo',
release_name='tempo',
deps=values_tempo,
flags=["--values={0}".format(values_file) for values_file in values_tempo],
resource_deps=[
'helm-dep-build',
],
port_forwards=[
port_forward(3100, 3100, name='Tempo'),
port_forward(4317, 4317, name='OTLP GRPC'),
port_forward(4318, 4318, name='OTLP HTTP'),
],
labels=['Observability']
)
helm_remote(
'promtail',
'https://grafana.github.io/helm-charts',
'grafana',
values=[
'helm/promtail/values.yaml',
'helm/promtail/values-local.yaml'
]
)
k8s_resource(
workload='promtail',
port_forwards=[],
labels=['Observability']
)
helm_remote(
'loki-stack',
'https://grafana.github.io/helm-charts',
'grafana',
values=[
'helm/grafana-loki/values.yaml',
'helm/grafana-loki/values-local.yaml'
]
)
k8s_resource(
workload='loki-stack',
port_forwards=[],
labels=['Observability']
)
###################################################################################################
# Kraken Proxy
###################################################################################################
helm_resource(
'proxy-kraken',
'./helm/proxy-kraken',
release_name='proxy-kraken',
deps=[
'helm/proxy-kraken/values.yaml',
'helm/proxy-kraken/values/local.yaml',
'helm/proxy-kraken/config/local.toml',
],
flags=['--values=helm/proxy-kraken/values/local.yaml'],
resource_deps=[
'cargo_build_docker',
'make-secrets',
'postgresql',
'redpanda',
'tempo',
],
port_forwards=[
port_forward(3001, 3000, name='Kraken Proxy'),
],
auto_init=False,
labels=['Proxies']
)
###################################################################################################
# Poloniex Proxy
###################################################################################################
k8s_yaml(helm(
'./helm/proxy-poloniex',
name='proxy-poloniex',
values=[
'helm/proxy-poloniex/values.yaml',
'helm/proxy-poloniex/values-local.yaml'
]
))
k8s_resource(
workload='proxy-poloniex',
resource_deps=[
'cargo_build_docker',
'make-secrets',
'postgresql',
'redpanda',
'tempo',
],
port_forwards=[
port_forward(3002, 3000, name='Poloniex Proxy'),
],
trigger_mode=TRIGGER_MODE_MANUAL,
auto_init=False,
labels=['Proxies']
)
###################################################################################################
# Strat Market Maker
###################################################################################################
k8s_yaml(helm(
'./helm/strat-market-maker',
name='strat-market-maker',
values=[
'helm/strat-market-maker/values.yaml',
'helm/strat-market-maker/values-local.yaml'
]
))
k8s_resource(
workload='strat-market-maker',
resource_deps=[
'cargo_build_docker',
'make-secrets',
'postgresql',
'redpanda',
'tempo',
'proxy-kraken'
],
port_forwards=[],
trigger_mode=TRIGGER_MODE_MANUAL,
auto_init=False,
labels=['Strategies']
)
###################################################################################################
# Strat Arbitrage
###################################################################################################
helm_resource(
'strat-arbitrage',
'./helm/strat-triangular-arbitrage',
release_name='strat-arbitrage',
deps=[
'helm/strat-trianguler-arbitrage/values.yaml',
'helm/strat-trianguler-arbitrage/values/local.yaml',
'helm/strat-trianguler-arbitrage/config/local-k8s.yaml',
],
flags=['--values=helm/strat-triangular-arbitrage/values/local.yaml'],
resource_deps=[
'cargo_build_docker',
'make-secrets',
'postgresql',
'redpanda',
'tempo',
'proxy-kraken',
],
auto_init=False,
labels=['Strategies']
)
###################################################################################################
# Archive Service
###################################################################################################
helm_resource(
'archive-service',
'./helm/archive-service',
release_name='archive-service',
deps=[
'helm/archive-service/values.yaml',
'helm/archive-service/values/local.yaml',
'helm/archive-service/config/local-k8s.toml',
],
flags=['--values=helm/archive-service/values/local.yaml'],
resource_deps=[
'cargo_build_docker',
'make-secrets',
'postgresql',
'redpanda',
'tempo',
],
port_forwards=[
port_forward(3004, 3000, name='Archive Service'),
],
auto_init=False,
labels=['Services']
)
###################################################################################################
# Indicator Service
###################################################################################################
helm_resource(
'indicator-service',
'./helm/indicator-service',
release_name='indicator-service',
deps=[
'helm/indicator-service/values.yaml',
'helm/indicator-service/values/local.yaml',
'helm/indicator-service/config/local-k8s.toml',
],
flags=['--values=helm/indicator-service/values/local.yaml'],
resource_deps=[
'cargo_build_docker',
'make-secrets',
'postgresql',
'redpanda',
'tempo',
],
port_forwards=[
port_forward(3005, 3000, name='Indicator Service'),
],
auto_init=False,
labels=['Services']
)
###################################################################################################
# END
################################################################################################### | 0 |
mono | /mono/Cargo.toml | [workspace]
members = [
"crates/*",
]
resolver = "2"
[workspace.package]
version = "0.1.0"
edition = "2021"
[workspace.dependencies]
anyhow = "1.0.75"
arc-swap = "1.6.0"
async-channel = "2.2.1"
async-trait = "0.1.74"
axum = "0.7.4"
axum-tracing-opentelemetry = "0.18.0"
base64 = "0.22.0"
chrono = "0.4.0"
clap = { version = "4.4.10", features = ["derive", "env", "cargo"] }
derive_more = "0.99.16"
digest = "0.10.6"
futures = "0.3.27"
futures-util = "0.3.26"
http = "1.1.0"
http-body = "1.0.0"
hmac = "0.12.1"
hyper = { version = "1.2.0", features = ["full"] }
indexmap = "2.2.1"
lazy_static = "1.4.0"
prometheus = "0.13.3"
rdkafka = "0.36.0"
regex = "1.10.2"
reqwest = { version = "0.12.3", features = ["json"] }
rust_decimal = { version = "1.33.1", features = ["serde", "db-postgres"] }
rust_decimal_macros = "1.33.1"
serde = { version = "1.0.193", features = ["derive"] }
serde_json = "1.0.108"
serde_urlencoded = "0.7.1"
sha2 = "0.10.6"
slog = { version = "2.7.0", features = ["max_level_trace"] }
slog-async = "2.7.0"
slog-term = "2.9.0"
slog-envlogger = "2.2.0"
slog-scope = "4.4.0"
sqlx = { version = "0.7.4", features = ["runtime-tokio-native-tls", "postgres", "json", "migrate", "time", "uuid", "chrono", "sqlite", "sqlx-sqlite"] }
thiserror = "1.0.50"
time = { version = "0.3.30", features = [] }
tokio = { version = "1.36.0", features = ["full", "tracing"] }
tokio-util = "0.7.10"
toml = "0.8.8"
tower = { version = "0.4.13", features = ["full"] }
tower-http = { version = "0.5.2", features = ["full"] }
tokio-tungstenite = { version = "0.21.0", features = ["native-tls"] }
url = { version = "2.3.1", features = ["serde"] }
uuid = { version = "1.6.1", features = ["v4", "fast-rng", "serde"] }
tracing = { version = "0.1.37", default-features = false, features = ["std", "attributes"] }
tracing-subscriber = { version = "0.3.17", default-features = false, features = ["json", "env-filter", "serde"] }
tracing-opentelemetry = { version = "0.23.0", default-features = true }
opentelemetry = { version = "0.22.0", default-features = false, features = ["trace"] }
opentelemetry_sdk = { version = "0.22.1", default-features = false, features = ["rt-tokio"] }
opentelemetry-otlp = { version = "0.15.0", default-features = false, features = ["trace", "grpc-tonic"] }
tracing-attributes = "0.1.24"
tracing-core = { version = "0.1.31" }
strum = "0.26.2"
strum_macros = "0.26.2" | 0 |
mono | /mono/.envrc | #!/usr/bin/env bash
GIT_ROOT="$(git rev-parse --show-toplevel)"
# AWS
export AWS_PROFILE=fdr-dev # default, but can be overridden
export AWS_CONFIG_FILE="${GIT_ROOT}/.aws"
# Python
export PYTHONWARNINGS=ignore
# Kubernetes
export KUBECONFIG="$HOME/.kube/config:${GIT_ROOT}/kubeconfig.yaml"
# Support overriding values with a local only envrc file
if [ -f "${GIT_ROOT}/.envrc.local" ]; then
source "${GIT_ROOT}/.envrc.local"
fi
| 0 |
mono | /mono/.gitlab-ci.yml | include:
# todo: this file depends on arm builders which we no longer have
# - local: "/.gitlab/.gitlab-makedeb-ci.yml"
# - local: "/.gitlab/.gitlab-general-ci.yml"
- local: "/.gitlab/.gitlab-rust-ci.yml"
- local: "/.gitlab/.gitlab-docker-ci.yml"
- local: "/.gitlab/.gitlab-terraform-ci.yml"
- local: "/.gitlab/.gitlab-change-rules-ci.yml"
stages:
- check
- install
- lint
- test
- build
- release
workflow:
rules:
- if: !reference [ .is, default-branch ]
- if: !reference [ .is, merge-request ]
- if: !reference [ .is, tag ]
# since successful pipeline is required for merge, if no changes are detected, we run a dummy job
# later on, I'm hoping we have at least one legit job we can indiscriminately run on every pipeline.
# an alternative is to create a `if: !reference [ .is, no-ci-change ]` rule for the dummy job
# but maintaining the conditions for it seems messy
check::null:
stage: check
script:
- echo "Dummy Job Ran Successfully" | 0 |
mono | /mono/.gitignore | .DS_Store
# Editor files
.idea
# Local config
**/.cargo_docker_cache
**/.secrets
**/sym-secrets
# Local environment
.env
.envrc.local
# Rust
**/target
**/config-local.toml
# Terraform
.terraform
*.tfstate
*.tfstate.backup
docs/mermaid.min.js
docs/mermaid-init.js
opportunities.csv
success.csv
trades.csv
services/**/config.yml
coverage
# WSL Kernel
.kernel
.data/
# Helm
helm/**/Chart.state
helm/**/charts/*.tgz
helm/**/secrets.yaml
helm/**/*.secrets.yaml
helm/*/manifests/*.yaml
logs | 0 |
mono | /mono/Cargo.lock | # This file is automatically @generated by Cargo.
# It is not intended for manual editing.
version = 3
[[package]]
name = "addr2line"
version = "0.21.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8a30b2e23b9e17a9f90641c7ab1549cd9b44f296d3ccbf309d2863cfe398a0cb"
dependencies = [
"gimli",
]
[[package]]
name = "adler"
version = "1.0.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f26201604c87b1e01bd3d98f8d5d9a8fcbb815e8cedb41ffccbeb4bf593a35fe"
[[package]]
name = "ahash"
version = "0.7.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "891477e0c6a8957309ee5c45a6368af3ae14bb510732d2684ffa19af310920f9"
dependencies = [
"getrandom",
"once_cell",
"version_check",
]
[[package]]
name = "ahash"
version = "0.8.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e89da841a80418a9b391ebaea17f5c112ffaaa96f621d2c285b5174da76b9011"
dependencies = [
"cfg-if",
"getrandom",
"once_cell",
"version_check",
"zerocopy",
]
[[package]]
name = "aho-corasick"
version = "1.1.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8e60d3430d3a69478ad0993f19238d2df97c507009a52b3c10addcd7f6bcb916"
dependencies = [
"memchr",
]
[[package]]
name = "alloc-no-stdlib"
version = "2.0.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cc7bb162ec39d46ab1ca8c77bf72e890535becd1751bb45f64c597edb4c8c6b3"
[[package]]
name = "alloc-stdlib"
version = "0.2.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "94fb8275041c72129eb51b7d0322c29b8387a0386127718b096429201a5d6ece"
dependencies = [
"alloc-no-stdlib",
]
[[package]]
name = "allocator-api2"
version = "0.2.18"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5c6cb57a04249c6480766f7f7cef5467412af1490f8d1e243141daddada3264f"
[[package]]
name = "android-tzdata"
version = "0.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e999941b234f3131b00bc13c22d06e8c5ff726d1b6318ac7eb276997bbb4fef0"
[[package]]
name = "android_system_properties"
version = "0.1.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "819e7219dbd41043ac279b19830f2efc897156490d7fd6ea916720117ee66311"
dependencies = [
"libc",
]
[[package]]
name = "anstream"
version = "0.6.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d96bd03f33fe50a863e394ee9718a706f988b9079b20c3784fb726e7678b62fb"
dependencies = [
"anstyle",
"anstyle-parse",
"anstyle-query",
"anstyle-wincon",
"colorchoice",
"utf8parse",
]
[[package]]
name = "anstyle"
version = "1.0.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8901269c6307e8d93993578286ac0edf7f195079ffff5ebdeea6a59ffb7e36bc"
[[package]]
name = "anstyle-parse"
version = "0.2.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c75ac65da39e5fe5ab759307499ddad880d724eed2f6ce5b5e8a26f4f387928c"
dependencies = [
"utf8parse",
]
[[package]]
name = "anstyle-query"
version = "1.0.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e28923312444cdd728e4738b3f9c9cac739500909bb3d3c94b43551b16517648"
dependencies = [
"windows-sys 0.52.0",
]
[[package]]
name = "anstyle-wincon"
version = "3.0.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1cd54b81ec8d6180e24654d0b371ad22fc3dd083b6ff8ba325b72e00c87660a7"
dependencies = [
"anstyle",
"windows-sys 0.52.0",
]
[[package]]
name = "anyhow"
version = "1.0.82"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f538837af36e6f6a9be0faa67f9a314f8119e4e4b5867c6ab40ed60360142519"
[[package]]
name = "arc-swap"
version = "1.7.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "69f7f8c3906b62b754cd5326047894316021dcfe5a194c8ea52bdd94934a3457"
[[package]]
name = "archive-service"
version = "0.1.0"
dependencies = [
"async-trait",
"axum 0.7.5",
"chrono",
"clap",
"csv",
"derive_more",
"fdr-common",
"fdr-event",
"fdr-http",
"fdr-store",
"http 1.1.0",
"http-body 1.0.0",
"hyper 1.3.1",
"prometheus",
"rust_decimal",
"serde",
"serde_json",
"slog",
"sqlx",
"thiserror",
"tokio",
"toml",
"tracing",
"tracing-opentelemetry",
"url",
"uuid",
]
[[package]]
name = "arrayvec"
version = "0.7.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "96d30a06541fbafbc7f82ed10c06164cfbd2c401138f6addd8404629c4b16711"
[[package]]
name = "async-channel"
version = "2.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "136d4d23bcc79e27423727b36823d86233aad06dfea531837b038394d11e9928"
dependencies = [
"concurrent-queue",
"event-listener 5.3.0",
"event-listener-strategy",
"futures-core",
"pin-project-lite",
]
[[package]]
name = "async-compression"
version = "0.4.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "07dbbf24db18d609b1462965249abdf49129ccad073ec257da372adc83259c60"
dependencies = [
"brotli",
"flate2",
"futures-core",
"memchr",
"pin-project-lite",
"tokio",
"zstd",
"zstd-safe",
]
[[package]]
name = "async-stream"
version = "0.3.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cd56dd203fef61ac097dd65721a419ddccb106b2d2b70ba60a6b529f03961a51"
dependencies = [
"async-stream-impl",
"futures-core",
"pin-project-lite",
]
[[package]]
name = "async-stream-impl"
version = "0.3.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "16e62a023e7c117e27523144c5d2459f4397fcc3cab0085af8e2224f643a0193"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.58",
]
[[package]]
name = "async-trait"
version = "0.1.80"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c6fa2087f2753a7da8cc1c0dbfcf89579dd57458e36769de5ac750b4671737ca"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.58",
]
[[package]]
name = "atoi"
version = "2.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f28d99ec8bfea296261ca1af174f24225171fea9664ba9003cbebee704810528"
dependencies = [
"num-traits",
]
[[package]]
name = "autocfg"
version = "1.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f1fdabc7756949593fe60f30ec81974b613357de856987752631dea1e3394c80"
[[package]]
name = "axum"
version = "0.6.20"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3b829e4e32b91e643de6eafe82b1d90675f5874230191a4ffbc1b336dec4d6bf"
dependencies = [
"async-trait",
"axum-core 0.3.4",
"bitflags 1.3.2",
"bytes",
"futures-util",
"http 0.2.12",
"http-body 0.4.6",
"hyper 0.14.28",
"itoa",
"matchit",
"memchr",
"mime",
"percent-encoding",
"pin-project-lite",
"rustversion",
"serde",
"sync_wrapper 0.1.2",
"tower",
"tower-layer",
"tower-service",
]
[[package]]
name = "axum"
version = "0.7.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3a6c9af12842a67734c9a2e355436e5d03b22383ed60cf13cd0c18fbfe3dcbcf"
dependencies = [
"async-trait",
"axum-core 0.4.3",
"base64 0.21.7",
"bytes",
"futures-util",
"http 1.1.0",
"http-body 1.0.0",
"http-body-util",
"hyper 1.3.1",
"hyper-util",
"itoa",
"matchit",
"memchr",
"mime",
"percent-encoding",
"pin-project-lite",
"rustversion",
"serde",
"serde_json",
"serde_path_to_error",
"serde_urlencoded",
"sha1",
"sync_wrapper 1.0.1",
"tokio",
"tokio-tungstenite",
"tower",
"tower-layer",
"tower-service",
"tracing",
]
[[package]]
name = "axum-core"
version = "0.3.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "759fa577a247914fd3f7f76d62972792636412fbfd634cd452f6a385a74d2d2c"
dependencies = [
"async-trait",
"bytes",
"futures-util",
"http 0.2.12",
"http-body 0.4.6",
"mime",
"rustversion",
"tower-layer",
"tower-service",
]
[[package]]
name = "axum-core"
version = "0.4.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a15c63fd72d41492dc4f497196f5da1fb04fb7529e631d73630d1b491e47a2e3"
dependencies = [
"async-trait",
"bytes",
"futures-util",
"http 1.1.0",
"http-body 1.0.0",
"http-body-util",
"mime",
"pin-project-lite",
"rustversion",
"sync_wrapper 0.1.2",
"tower-layer",
"tower-service",
"tracing",
]
[[package]]
name = "axum-tracing-opentelemetry"
version = "0.18.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6672eee77fec7036fe83cf2111e25c4f9ef06b35b50d656d8d8127c2347e3b4a"
dependencies = [
"axum 0.7.5",
"futures-core",
"futures-util",
"http 1.1.0",
"opentelemetry",
"pin-project-lite",
"tower",
"tracing",
"tracing-opentelemetry",
"tracing-opentelemetry-instrumentation-sdk",
]
[[package]]
name = "back-testing-service"
version = "0.1.0"
dependencies = [
"async-trait",
"axum 0.7.5",
"catalog",
"chrono",
"clap",
"config-generator",
"derive_more",
"exchange-client",
"exchange-proxy",
"fdr-common",
"fdr-event",
"fdr-http",
"fdr-store",
"futures-util",
"http 1.1.0",
"http-body 1.0.0",
"hyper 1.3.1",
"prometheus",
"rand",
"reqwest",
"rust_decimal",
"serde",
"serde_json",
"slog",
"sqlx",
"strat-common",
"strategies",
"strategy-manager",
"thiserror",
"time",
"tokio",
"tokio-util",
"toml",
"tower",
"tower-http",
"tracing",
"tracing-opentelemetry",
"url",
"uuid",
]
[[package]]
name = "backtrace"
version = "0.3.71"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "26b05800d2e817c8b3b4b54abd461726265fa9789ae34330622f2db9ee696f9d"
dependencies = [
"addr2line",
"cc",
"cfg-if",
"libc",
"miniz_oxide",
"object",
"rustc-demangle",
]
[[package]]
name = "base64"
version = "0.21.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9d297deb1925b89f2ccc13d7635fa0714f12c87adce1c75356b39ca9b7178567"
[[package]]
name = "base64"
version = "0.22.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9475866fec1451be56a3c2400fd081ff546538961565ccb5b7142cbd22bc7a51"
[[package]]
name = "base64ct"
version = "1.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8c3c1a368f70d6cf7302d78f8f7093da241fb8e8807c05cc9e51a125895a6d5b"
[[package]]
name = "bitflags"
version = "1.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a"
[[package]]
name = "bitflags"
version = "2.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cf4b9d6a944f767f8e5e0db018570623c85f3d925ac718db4e06d0187adb21c1"
dependencies = [
"serde",
]
[[package]]
name = "bitvec"
version = "1.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1bc2832c24239b0141d5674bb9174f9d68a8b5b3f2753311927c172ca46f7e9c"
dependencies = [
"funty",
"radium",
"tap",
"wyz",
]
[[package]]
name = "block-buffer"
version = "0.10.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3078c7629b62d3f0439517fa394996acacc5cbc91c5a20d8c658e77abd503a71"
dependencies = [
"generic-array",
]
[[package]]
name = "borsh"
version = "1.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0901fc8eb0aca4c83be0106d6f2db17d86a08dfc2c25f0e84464bf381158add6"
dependencies = [
"borsh-derive",
"cfg_aliases",
]
[[package]]
name = "borsh-derive"
version = "1.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "51670c3aa053938b0ee3bd67c3817e471e626151131b934038e83c5bf8de48f5"
dependencies = [
"once_cell",
"proc-macro-crate 3.1.0",
"proc-macro2",
"quote",
"syn 2.0.58",
"syn_derive",
]
[[package]]
name = "brotli"
version = "4.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "125740193d7fee5cc63ab9e16c2fdc4e07c74ba755cc53b327d6ea029e9fc569"
dependencies = [
"alloc-no-stdlib",
"alloc-stdlib",
"brotli-decompressor",
]
[[package]]
name = "brotli-decompressor"
version = "3.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "65622a320492e09b5e0ac436b14c54ff68199bac392d0e89a6832c4518eea525"
dependencies = [
"alloc-no-stdlib",
"alloc-stdlib",
]
[[package]]
name = "bumpalo"
version = "3.16.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "79296716171880943b8470b5f8d03aa55eb2e645a4874bdbb28adb49162e012c"
[[package]]
name = "bytecheck"
version = "0.6.12"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "23cdc57ce23ac53c931e88a43d06d070a6fd142f2617be5855eb75efc9beb1c2"
dependencies = [
"bytecheck_derive",
"ptr_meta",
"simdutf8",
]
[[package]]
name = "bytecheck_derive"
version = "0.6.12"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3db406d29fbcd95542e92559bed4d8ad92636d1ca8b3b72ede10b4bcc010e659"
dependencies = [
"proc-macro2",
"quote",
"syn 1.0.109",
]
[[package]]
name = "byteorder"
version = "1.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b"
[[package]]
name = "bytes"
version = "1.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "514de17de45fdb8dc022b1a7975556c53c86f9f0aa5f534b98977b171857c2c9"
[[package]]
name = "catalog"
version = "0.1.0"
dependencies = [
"fdr-common",
"indexmap 2.2.6",
"lazy_static",
"rust_decimal",
"serde",
"serde_json",
"uuid",
]
[[package]]
name = "cc"
version = "1.0.92"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2678b2e3449475e95b0aa6f9b506a28e61b3dc8996592b983695e8ebb58a8b41"
dependencies = [
"jobserver",
"libc",
]
[[package]]
name = "cfg-if"
version = "1.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
[[package]]
name = "cfg_aliases"
version = "0.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fd16c4719339c4530435d38e511904438d07cce7950afa3718a84ac36c10e89e"
[[package]]
name = "chrono"
version = "0.4.37"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8a0d04d43504c61aa6c7531f1871dd0d418d91130162063b789da00fd7057a5e"
dependencies = [
"android-tzdata",
"iana-time-zone",
"js-sys",
"num-traits",
"serde",
"wasm-bindgen",
"windows-targets 0.52.5",
]
[[package]]
name = "clap"
version = "4.5.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "90bc066a67923782aa8515dbaea16946c5bcc5addbd668bb80af688e53e548a0"
dependencies = [
"clap_builder",
"clap_derive",
]
[[package]]
name = "clap_builder"
version = "4.5.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ae129e2e766ae0ec03484e609954119f123cc1fe650337e155d03b022f24f7b4"
dependencies = [
"anstream",
"anstyle",
"clap_lex",
"strsim",
]
[[package]]
name = "clap_derive"
version = "4.5.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "528131438037fd55894f62d6e9f068b8f45ac57ffa77517819645d10aed04f64"
dependencies = [
"heck 0.5.0",
"proc-macro2",
"quote",
"syn 2.0.58",
]
[[package]]
name = "clap_lex"
version = "0.7.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "98cc8fbded0c607b7ba9dd60cd98df59af97e84d24e49c8557331cfc26d301ce"
[[package]]
name = "colorchoice"
version = "1.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "acbf1af155f9b9ef647e42cdc158db4b64a1b61f743629225fde6f3e0be2a7c7"
[[package]]
name = "concurrent-queue"
version = "2.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4ca0197aee26d1ae37445ee532fefce43251d24cc7c166799f4d46817f1d3973"
dependencies = [
"crossbeam-utils",
]
[[package]]
name = "config-generator"
version = "0.1.0"
dependencies = [
"anyhow",
"chrono",
"derive_more",
"fdr-balances",
"fdr-common",
"fdr-http",
"fdr-store",
"price_guard",
"rand",
"rust_decimal",
"serde",
"serde_json",
"serde_yaml",
"strat-common",
"strategies",
"strategy-manager",
"thiserror",
"tokio",
"toml",
"uuid",
]
[[package]]
name = "const-oid"
version = "0.9.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c2459377285ad874054d797f3ccebf984978aa39129f6eafde5cdc8315b612f8"
[[package]]
name = "convert_case"
version = "0.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6245d59a3e82a7fc217c5828a6692dbc6dfb63a0c8c90495621f7b9d79704a0e"
[[package]]
name = "core-foundation"
version = "0.9.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "91e195e091a93c46f7102ec7818a2aa394e1e1771c3ab4825963fa03e45afb8f"
dependencies = [
"core-foundation-sys",
"libc",
]
[[package]]
name = "core-foundation-sys"
version = "0.8.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "06ea2b9bc92be3c2baa9334a323ebca2d6f074ff852cd1d7b11064035cd3868f"
[[package]]
name = "cpufeatures"
version = "0.2.12"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "53fe5e26ff1b7aef8bca9c6080520cfb8d9333c7568e1829cef191a9723e5504"
dependencies = [
"libc",
]
[[package]]
name = "crc"
version = "3.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "69e6e4d7b33a94f0991c26729976b10ebde1d34c3ee82408fb536164fa10d636"
dependencies = [
"crc-catalog",
]
[[package]]
name = "crc-catalog"
version = "2.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "19d374276b40fb8bbdee95aef7c7fa6b5316ec764510eb64b8dd0e2ed0d7e7f5"
[[package]]
name = "crc32fast"
version = "1.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b3855a8a784b474f333699ef2bbca9db2c4a1f6d9088a90a2d25b1eb53111eaa"
dependencies = [
"cfg-if",
]
[[package]]
name = "crossbeam-channel"
version = "0.5.12"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ab3db02a9c5b5121e1e42fbdb1aeb65f5e02624cc58c43f2884c6ccac0b82f95"
dependencies = [
"crossbeam-utils",
]
[[package]]
name = "crossbeam-queue"
version = "0.3.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "df0346b5d5e76ac2fe4e327c5fd1118d6be7c51dfb18f9b7922923f287471e35"
dependencies = [
"crossbeam-utils",
]
[[package]]
name = "crossbeam-utils"
version = "0.8.19"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "248e3bacc7dc6baa3b21e405ee045c3047101a49145e7e9eca583ab4c2ca5345"
[[package]]
name = "crypto-common"
version = "0.1.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1bfb12502f3fc46cca1bb51ac28df9d618d813cdc3d2f25b9fe775a34af26bb3"
dependencies = [
"generic-array",
"typenum",
]
[[package]]
name = "csv"
version = "1.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ac574ff4d437a7b5ad237ef331c17ccca63c46479e5b5453eb8e10bb99a759fe"
dependencies = [
"csv-core",
"itoa",
"ryu",
"serde",
]
[[package]]
name = "csv-core"
version = "0.1.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5efa2b3d7902f4b634a20cae3c9c4e6209dc4779feb6863329607560143efa70"
dependencies = [
"memchr",
]
[[package]]
name = "data-encoding"
version = "2.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7e962a19be5cfc3f3bf6dd8f61eb50107f356ad6270fbb3ed41476571db78be5"
[[package]]
name = "der"
version = "0.7.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f55bf8e7b65898637379c1b74eb1551107c8294ed26d855ceb9fd1a09cfc9bc0"
dependencies = [
"const-oid",
"pem-rfc7468",
"zeroize",
]
[[package]]
name = "deranged"
version = "0.3.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b42b6fa04a440b495c8b04d0e71b707c585f83cb9cb28cf8cd0d976c315e31b4"
dependencies = [
"powerfmt",
]
[[package]]
name = "derive_more"
version = "0.99.17"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4fb810d30a7c1953f91334de7244731fc3f3c10d7fe163338a35b9f640960321"
dependencies = [
"convert_case",
"proc-macro2",
"quote",
"rustc_version",
"syn 1.0.109",
]
[[package]]
name = "digest"
version = "0.10.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292"
dependencies = [
"block-buffer",
"const-oid",
"crypto-common",
"subtle",
]
[[package]]
name = "dirs-next"
version = "2.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b98cf8ebf19c3d1b223e151f99a4f9f0690dca41414773390fc824184ac833e1"
dependencies = [
"cfg-if",
"dirs-sys-next",
]
[[package]]
name = "dirs-sys-next"
version = "0.1.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4ebda144c4fe02d1f7ea1a7d9641b6fc6b580adcfa024ae48797ecdeb6825b4d"
dependencies = [
"libc",
"redox_users",
"winapi",
]
[[package]]
name = "dotenvy"
version = "0.15.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1aaf95b3e5c8f23aa320147307562d361db0ae0d51242340f558153b4eb2439b"
[[package]]
name = "either"
version = "1.10.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "11157ac094ffbdde99aa67b23417ebdd801842852b500e395a45a9c0aac03e4a"
dependencies = [
"serde",
]
[[package]]
name = "encoding_rs"
version = "0.8.34"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b45de904aa0b010bce2ab45264d0631681847fa7b6f2eaa7dab7619943bc4f59"
dependencies = [
"cfg-if",
]
[[package]]
name = "equivalent"
version = "1.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5443807d6dff69373d433ab9ef5378ad8df50ca6298caf15de6e52e24aaf54d5"
[[package]]
name = "errno"
version = "0.3.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a258e46cdc063eb8519c00b9fc845fc47bcfca4130e2f08e88665ceda8474245"
dependencies = [
"libc",
"windows-sys 0.52.0",
]
[[package]]
name = "etcetera"
version = "0.8.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "136d1b5283a1ab77bd9257427ffd09d8667ced0570b6f938942bc7568ed5b943"
dependencies = [
"cfg-if",
"home",
"windows-sys 0.48.0",
]
[[package]]
name = "event-listener"
version = "2.5.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0206175f82b8d6bf6652ff7d71a1e27fd2e4efde587fd368662814d6ec1d9ce0"
[[package]]
name = "event-listener"
version = "5.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6d9944b8ca13534cdfb2800775f8dd4902ff3fc75a50101466decadfdf322a24"
dependencies = [
"concurrent-queue",
"parking",
"pin-project-lite",
]
[[package]]
name = "event-listener-strategy"
version = "0.5.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "332f51cb23d20b0de8458b86580878211da09bcd4503cb579c225b3d124cabb3"
dependencies = [
"event-listener 5.3.0",
"pin-project-lite",
]
[[package]]
name = "exchange-client"
version = "0.1.0"
dependencies = [
"async-trait",
"axum 0.7.5",
"chrono",
"derive_more",
"fdr-common",
"http 1.1.0",
"indexmap 2.2.6",
"reqwest",
"rust_decimal",
"serde",
"serde_json",
"slog",
"thiserror",
"tracing",
"url",
"uuid",
]
[[package]]
name = "exchange-proxy"
version = "0.1.0"
dependencies = [
"async-trait",
"axum 0.7.5",
"axum-tracing-opentelemetry",
"base64 0.22.0",
"catalog",
"chrono",
"clap",
"derive_more",
"digest",
"exchange-client",
"fdr-common",
"fdr-event",
"fdr-http",
"fdr-store",
"futures-util",
"hmac",
"http 1.1.0",
"http-body 1.0.0",
"hyper 1.3.1",
"prometheus",
"regex",
"reqwest",
"rust_decimal",
"rust_decimal_macros",
"serde",
"serde_json",
"serde_urlencoded",
"sha2",
"slog",
"slog-scope",
"sqlx",
"thiserror",
"tokio",
"tokio-tungstenite",
"tokio-util",
"toml",
"tower",
"tower-http",
"tracing",
"tracing-opentelemetry",
"url",
"uuid",
]
[[package]]
name = "fallible-iterator"
version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4443176a9f2c162692bd3d352d745ef9413eec5782a80d8fd6f8a1ac692a07f7"
[[package]]
name = "fastrand"
version = "2.0.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "658bd65b1cf4c852a3cc96f18a8ce7b5640f6b703f905c7d74532294c2a63984"
[[package]]
name = "fdr-balances"
version = "0.1.0"
dependencies = [
"async-trait",
"chrono",
"derive_more",
"fdr-common",
"fdr-event",
"fdr-store",
"rust_decimal",
"serde",
"serde_json",
"sqlx",
"thiserror",
"tokio",
"url",
"uuid",
]
[[package]]
name = "fdr-common"
version = "0.1.0"
dependencies = [
"anyhow",
"async-trait",
"chrono",
"clap",
"derive_more",
"http 1.1.0",
"hyper 1.3.1",
"indexmap 2.2.6",
"lazy_static",
"opentelemetry",
"opentelemetry-otlp",
"opentelemetry_sdk",
"prometheus",
"regex",
"rust_decimal",
"rust_decimal_macros",
"serde",
"serde_json",
"slog",
"slog-async",
"slog-envlogger",
"slog-scope",
"slog-term",
"sqlx",
"thiserror",
"tokio",
"tokio-util",
"toml",
"tower",
"tracing",
"tracing-attributes",
"tracing-core",
"tracing-opentelemetry",
"tracing-subscriber",
"url",
"uuid",
]
[[package]]
name = "fdr-event"
version = "0.1.0"
dependencies = [
"anyhow",
"async-channel",
"async-trait",
"chrono",
"derive_more",
"fdr-common",
"rdkafka",
"regex",
"rust_decimal",
"serde",
"serde_json",
"slog",
"technical_analysis",
"thiserror",
"tokio",
"tracing",
"uuid",
]
[[package]]
name = "fdr-http"
version = "0.1.0"
dependencies = [
"async-trait",
"axum 0.7.5",
"axum-tracing-opentelemetry",
"chrono",
"clap",
"derive_more",
"fdr-common",
"http 1.1.0",
"http-body 1.0.0",
"hyper 1.3.1",
"indexmap 2.2.6",
"lazy_static",
"opentelemetry",
"opentelemetry-otlp",
"opentelemetry_sdk",
"prometheus",
"regex",
"rust_decimal",
"serde",
"serde_json",
"slog",
"sqlx",
"thiserror",
"tokio",
"tokio-util",
"toml",
"tower",
"tower-http",
"tracing",
"tracing-attributes",
"tracing-core",
"tracing-opentelemetry",
"tracing-subscriber",
"url",
"uuid",
]
[[package]]
name = "fdr-store"
version = "0.1.0"
dependencies = [
"async-trait",
"chrono",
"derive_more",
"fdr-common",
"fdr-event",
"lazy_static",
"rust_decimal",
"serde",
"serde_json",
"sqlx",
"technical_analysis",
"thiserror",
"tokio",
"tracing",
"tracing-attributes",
"tracing-opentelemetry",
"url",
"uuid",
]
[[package]]
name = "finl_unicode"
version = "1.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8fcfdc7a0362c9f4444381a9e697c79d435fe65b52a37466fc2c1184cee9edc6"
[[package]]
name = "flate2"
version = "1.0.28"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "46303f565772937ffe1d394a4fac6f411c6013172fadde9dcdb1e147a086940e"
dependencies = [
"crc32fast",
"miniz_oxide",
]
[[package]]
name = "flume"
version = "0.11.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "55ac459de2512911e4b674ce33cf20befaba382d05b62b008afc1c8b57cbf181"
dependencies = [
"futures-core",
"futures-sink",
"spin 0.9.8",
]
[[package]]
name = "fnv"
version = "1.0.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1"
[[package]]
name = "foreign-types"
version = "0.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f6f339eb8adc052cd2ca78910fda869aefa38d22d5cb648e6485e4d3fc06f3b1"
dependencies = [
"foreign-types-shared",
]
[[package]]
name = "foreign-types-shared"
version = "0.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "00b0228411908ca8685dba7fc2cdd70ec9990a6e753e89b6ac91a84c40fbaf4b"
[[package]]
name = "form_urlencoded"
version = "1.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e13624c2627564efccf4934284bdd98cbaa14e79b0b5a141218e507b3a823456"
dependencies = [
"percent-encoding",
]
[[package]]
name = "funty"
version = "2.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e6d5a32815ae3f33302d95fdcb2ce17862f8c65363dcfd29360480ba1001fc9c"
[[package]]
name = "futures-channel"
version = "0.3.30"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "eac8f7d7865dcb88bd4373ab671c8cf4508703796caa2b1985a9ca867b3fcb78"
dependencies = [
"futures-core",
"futures-sink",
]
[[package]]
name = "futures-core"
version = "0.3.30"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "dfc6580bb841c5a68e9ef15c77ccc837b40a7504914d52e47b8b0e9bbda25a1d"
[[package]]
name = "futures-executor"
version = "0.3.30"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a576fc72ae164fca6b9db127eaa9a9dda0d61316034f33a0a0d4eda41f02b01d"
dependencies = [
"futures-core",
"futures-task",
"futures-util",
]
[[package]]
name = "futures-intrusive"
version = "0.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1d930c203dd0b6ff06e0201a4a2fe9149b43c684fd4420555b26d21b1a02956f"
dependencies = [
"futures-core",
"lock_api",
"parking_lot",
]
[[package]]
name = "futures-io"
version = "0.3.30"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a44623e20b9681a318efdd71c299b6b222ed6f231972bfe2f224ebad6311f0c1"
[[package]]
name = "futures-macro"
version = "0.3.30"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "87750cf4b7a4c0625b1529e4c543c2182106e4dedc60a2a6455e00d212c489ac"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.58",
]
[[package]]
name = "futures-sink"
version = "0.3.30"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9fb8e00e87438d937621c1c6269e53f536c14d3fbd6a042bb24879e57d474fb5"
[[package]]
name = "futures-task"
version = "0.3.30"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "38d84fa142264698cdce1a9f9172cf383a0c82de1bddcf3092901442c4097004"
[[package]]
name = "futures-util"
version = "0.3.30"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3d6401deb83407ab3da39eba7e33987a73c3df0c82b4bb5813ee871c19c41d48"
dependencies = [
"futures-core",
"futures-io",
"futures-macro",
"futures-sink",
"futures-task",
"memchr",
"pin-project-lite",
"pin-utils",
"slab",
]
[[package]]
name = "generic-array"
version = "0.14.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "85649ca51fd72272d7821adaf274ad91c288277713d9c18820d8499a7ff69e9a"
dependencies = [
"typenum",
"version_check",
]
[[package]]
name = "getrandom"
version = "0.2.14"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "94b22e06ecb0110981051723910cbf0b5f5e09a2062dd7663334ee79a9d1286c"
dependencies = [
"cfg-if",
"libc",
"wasi",
]
[[package]]
name = "gimli"
version = "0.28.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4271d37baee1b8c7e4b708028c57d816cf9d2434acb33a549475f78c181f6253"
[[package]]
name = "glob"
version = "0.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d2fabcfbdc87f4758337ca535fb41a6d701b65693ce38287d856d1674551ec9b"
[[package]]
name = "h2"
version = "0.3.26"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "81fe527a889e1532da5c525686d96d4c2e74cdd345badf8dfef9f6b39dd5f5e8"
dependencies = [
"bytes",
"fnv",
"futures-core",
"futures-sink",
"futures-util",
"http 0.2.12",
"indexmap 2.2.6",
"slab",
"tokio",
"tokio-util",
"tracing",
]
[[package]]
name = "h2"
version = "0.4.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "816ec7294445779408f36fe57bc5b7fc1cf59664059096c65f905c1c61f58069"
dependencies = [
"bytes",
"fnv",
"futures-core",
"futures-sink",
"futures-util",
"http 1.1.0",
"indexmap 2.2.6",
"slab",
"tokio",
"tokio-util",
"tracing",
]
[[package]]
name = "hashbrown"
version = "0.12.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888"
dependencies = [
"ahash 0.7.8",
]
[[package]]
name = "hashbrown"
version = "0.14.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "290f1a1d9242c78d09ce40a5e87e7554ee637af1351968159f4952f028f75604"
dependencies = [
"ahash 0.8.11",
"allocator-api2",
]
[[package]]
name = "hashlink"
version = "0.8.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e8094feaf31ff591f651a2664fb9cfd92bba7a60ce3197265e9482ebe753c8f7"
dependencies = [
"hashbrown 0.14.3",
]
[[package]]
name = "hdrhistogram"
version = "7.5.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "765c9198f173dd59ce26ff9f95ef0aafd0a0fe01fb9d72841bc5066a4c06511d"
dependencies = [
"byteorder",
"num-traits",
]
[[package]]
name = "heck"
version = "0.4.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "95505c38b4572b2d910cecb0281560f54b440a19336cbbcb27bf6ce6adc6f5a8"
dependencies = [
"unicode-segmentation",
]
[[package]]
name = "heck"
version = "0.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
[[package]]
name = "hermit-abi"
version = "0.3.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d231dfb89cfffdbc30e7fc41579ed6066ad03abda9e567ccafae602b97ec5024"
[[package]]
name = "hex"
version = "0.4.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70"
[[package]]
name = "hkdf"
version = "0.12.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7b5f8eb2ad728638ea2c7d47a21db23b7b58a72ed6a38256b8a1849f15fbbdf7"
dependencies = [
"hmac",
]
[[package]]
name = "hmac"
version = "0.12.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6c49c37c09c17a53d937dfbb742eb3a961d65a994e6bcdcf37e7399d0cc8ab5e"
dependencies = [
"digest",
]
[[package]]
name = "home"
version = "0.5.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e3d1354bf6b7235cb4a0576c2619fd4ed18183f689b12b006a0ee7329eeff9a5"
dependencies = [
"windows-sys 0.52.0",
]
[[package]]
name = "http"
version = "0.2.12"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "601cbb57e577e2f5ef5be8e7b83f0f63994f25aa94d673e54a92d5c516d101f1"
dependencies = [
"bytes",
"fnv",
"itoa",
]
[[package]]
name = "http"
version = "1.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "21b9ddb458710bc376481b842f5da65cdf31522de232c1ca8146abce2a358258"
dependencies = [
"bytes",
"fnv",
"itoa",
]
[[package]]
name = "http-body"
version = "0.4.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7ceab25649e9960c0311ea418d17bee82c0dcec1bd053b5f9a66e265a693bed2"
dependencies = [
"bytes",
"http 0.2.12",
"pin-project-lite",
]
[[package]]
name = "http-body"
version = "1.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1cac85db508abc24a2e48553ba12a996e87244a0395ce011e62b37158745d643"
dependencies = [
"bytes",
"http 1.1.0",
]
[[package]]
name = "http-body-util"
version = "0.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0475f8b2ac86659c21b64320d5d653f9efe42acd2a4e560073ec61a155a34f1d"
dependencies = [
"bytes",
"futures-core",
"http 1.1.0",
"http-body 1.0.0",
"pin-project-lite",
]
[[package]]
name = "http-range-header"
version = "0.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3ce4ef31cda248bbdb6e6820603b82dfcd9e833db65a43e997a0ccec777d11fe"
[[package]]
name = "httparse"
version = "1.8.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d897f394bad6a705d5f4104762e116a75639e470d80901eed05a860a95cb1904"
[[package]]
name = "httpdate"
version = "1.0.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "df3b46402a9d5adb4c86a0cf463f42e19994e3ee891101b1841f30a545cb49a9"
[[package]]
name = "hyper"
version = "0.14.28"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bf96e135eb83a2a8ddf766e426a841d8ddd7449d5f00d34ea02b41d2f19eef80"
dependencies = [
"bytes",
"futures-channel",
"futures-core",
"futures-util",
"h2 0.3.26",
"http 0.2.12",
"http-body 0.4.6",
"httparse",
"httpdate",
"itoa",
"pin-project-lite",
"socket2",
"tokio",
"tower-service",
"tracing",
"want",
]
[[package]]
name = "hyper"
version = "1.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fe575dd17d0862a9a33781c8c4696a55c320909004a67a00fb286ba8b1bc496d"
dependencies = [
"bytes",
"futures-channel",
"futures-util",
"h2 0.4.4",
"http 1.1.0",
"http-body 1.0.0",
"httparse",
"httpdate",
"itoa",
"pin-project-lite",
"smallvec",
"tokio",
"want",
]
[[package]]
name = "hyper-timeout"
version = "0.4.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bbb958482e8c7be4bc3cf272a766a2b0bf1a6755e7a6ae777f017a31d11b13b1"
dependencies = [
"hyper 0.14.28",
"pin-project-lite",
"tokio",
"tokio-io-timeout",
]
[[package]]
name = "hyper-tls"
version = "0.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "70206fc6890eaca9fde8a0bf71caa2ddfc9fe045ac9e5c70df101a7dbde866e0"
dependencies = [
"bytes",
"http-body-util",
"hyper 1.3.1",
"hyper-util",
"native-tls",
"tokio",
"tokio-native-tls",
"tower-service",
]
[[package]]
name = "hyper-util"
version = "0.1.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ca38ef113da30126bbff9cd1705f9273e15d45498615d138b0c20279ac7a76aa"
dependencies = [
"bytes",
"futures-channel",
"futures-util",
"http 1.1.0",
"http-body 1.0.0",
"hyper 1.3.1",
"pin-project-lite",
"socket2",
"tokio",
"tower",
"tower-service",
"tracing",
]
[[package]]
name = "iana-time-zone"
version = "0.1.60"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e7ffbb5a1b541ea2561f8c41c087286cc091e21e556a4f09a8f6cbf17b69b141"
dependencies = [
"android_system_properties",
"core-foundation-sys",
"iana-time-zone-haiku",
"js-sys",
"wasm-bindgen",
"windows-core",
]
[[package]]
name = "iana-time-zone-haiku"
version = "0.1.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f31827a206f56af32e590ba56d5d2d085f558508192593743f16b2306495269f"
dependencies = [
"cc",
]
[[package]]
name = "idna"
version = "0.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "634d9b1461af396cad843f47fdba5597a4f9e6ddd4bfb6ff5d85028c25cb12f6"
dependencies = [
"unicode-bidi",
"unicode-normalization",
]
[[package]]
name = "indexmap"
version = "1.9.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bd070e393353796e801d209ad339e89596eb4c8d430d18ede6a1cced8fafbd99"
dependencies = [
"autocfg",
"hashbrown 0.12.3",
]
[[package]]
name = "indexmap"
version = "2.2.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "168fb715dda47215e360912c096649d23d58bf392ac62f73919e831745e40f26"
dependencies = [
"equivalent",
"hashbrown 0.14.3",
]
[[package]]
name = "indicator-service"
version = "0.1.0"
dependencies = [
"async-trait",
"axum 0.7.5",
"chrono",
"clap",
"derive_more",
"fdr-common",
"fdr-event",
"fdr-http",
"fdr-store",
"http 1.1.0",
"http-body 1.0.0",
"hyper 1.3.1",
"prometheus",
"rust_decimal",
"serde",
"serde_json",
"slog",
"sqlx",
"strum",
"strum_macros",
"technical_analysis",
"thiserror",
"tokio",
"toml",
"tracing",
"tracing-opentelemetry",
"url",
"uuid",
]
[[package]]
name = "ipnet"
version = "2.9.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8f518f335dce6725a761382244631d86cf0ccb2863413590b31338feb467f9c3"
[[package]]
name = "iri-string"
version = "0.7.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "81669f3b77acd397a241a988f05190b1785cb83f0287d8fb3a05f0648405d65f"
dependencies = [
"memchr",
"serde",
]
[[package]]
name = "is-terminal"
version = "0.4.12"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f23ff5ef2b80d608d61efee834934d862cd92461afc0560dedf493e4c033738b"
dependencies = [
"hermit-abi",
"libc",
"windows-sys 0.52.0",
]
[[package]]
name = "itertools"
version = "0.12.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ba291022dbbd398a455acf126c1e341954079855bc60dfdda641363bd6922569"
dependencies = [
"either",
]
[[package]]
name = "itoa"
version = "1.0.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "49f1f14873335454500d59611f1cf4a4b0f786f9ac11f4312a78e4cf2566695b"
[[package]]
name = "jobserver"
version = "0.1.30"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "685a7d121ee3f65ae4fddd72b25a04bb36b6af81bc0828f7d5434c0fe60fa3a2"
dependencies = [
"libc",
]
[[package]]
name = "js-sys"
version = "0.3.69"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "29c15563dc2726973df627357ce0c9ddddbea194836909d655df6a75d2cf296d"
dependencies = [
"wasm-bindgen",
]
[[package]]
name = "lazy_static"
version = "1.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646"
dependencies = [
"spin 0.5.2",
]
[[package]]
name = "libc"
version = "0.2.153"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9c198f91728a82281a64e1f4f9eeb25d82cb32a5de251c6bd1b5154d63a8e7bd"
[[package]]
name = "libm"
version = "0.2.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4ec2a862134d2a7d32d7983ddcdd1c4923530833c9f2ea1a44fc5fa473989058"
[[package]]
name = "libredox"
version = "0.1.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c0ff37bd590ca25063e35af745c343cb7a0271906fb7b37e4813e8f79f00268d"
dependencies = [
"bitflags 2.5.0",
"libc",
]
[[package]]
name = "libsqlite3-sys"
version = "0.27.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cf4e226dcd58b4be396f7bd3c20da8fdee2911400705297ba7d2d7cc2c30f716"
dependencies = [
"cc",
"pkg-config",
"vcpkg",
]
[[package]]
name = "libz-sys"
version = "1.1.16"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5e143b5e666b2695d28f6bca6497720813f699c9602dd7f5cac91008b8ada7f9"
dependencies = [
"cc",
"libc",
"pkg-config",
"vcpkg",
]
[[package]]
name = "linux-raw-sys"
version = "0.4.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "01cda141df6706de531b6c46c3a33ecca755538219bd484262fa09410c13539c"
[[package]]
name = "lock_api"
version = "0.4.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3c168f8615b12bc01f9c17e2eb0cc07dcae1940121185446edc3744920e8ef45"
dependencies = [
"autocfg",
"scopeguard",
]
[[package]]
name = "log"
version = "0.4.21"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "90ed8c1e510134f979dbc4f070f87d4313098b704861a105fe34231c70a3901c"
[[package]]
name = "matchers"
version = "0.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8263075bb86c5a1b1427b5ae862e8889656f126e9f77c484496e8b47cf5c5558"
dependencies = [
"regex-automata 0.1.10",
]
[[package]]
name = "matchit"
version = "0.7.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0e7465ac9959cc2b1404e8e2367b43684a6d13790fe23056cc8c6c5a6b7bcb94"
[[package]]
name = "md-5"
version = "0.10.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d89e7ee0cfbedfc4da3340218492196241d89eefb6dab27de5df917a6d2e78cf"
dependencies = [
"cfg-if",
"digest",
]
[[package]]
name = "memchr"
version = "2.7.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6c8640c5d730cb13ebd907d8d04b52f55ac9a2eec55b440c8892f40d56c76c1d"
[[package]]
name = "mime"
version = "0.3.17"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6877bb514081ee2a7ff5ef9de3281f14a4dd4bceac4c09388074a6b5df8a139a"
[[package]]
name = "mime_guess"
version = "2.0.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4192263c238a5f0d0c6bfd21f336a313a4ce1c450542449ca191bb657b4642ef"
dependencies = [
"mime",
"unicase",
]
[[package]]
name = "minimal-lexical"
version = "0.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a"
[[package]]
name = "miniz_oxide"
version = "0.7.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9d811f3e15f28568be3407c8e7fdb6514c1cda3cb30683f15b6a1a1dc4ea14a7"
dependencies = [
"adler",
]
[[package]]
name = "mio"
version = "0.8.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a4a650543ca06a924e8b371db273b2756685faae30f8487da1b56505a8f78b0c"
dependencies = [
"libc",
"wasi",
"windows-sys 0.48.0",
]
[[package]]
name = "native-tls"
version = "0.2.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "07226173c32f2926027b63cce4bcd8076c3552846cbe7925f3aaffeac0a3b92e"
dependencies = [
"lazy_static",
"libc",
"log",
"openssl",
"openssl-probe",
"openssl-sys",
"schannel",
"security-framework",
"security-framework-sys",
"tempfile",
]
[[package]]
name = "nom"
version = "7.1.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d273983c5a657a70a3e8f2a01329822f3b8c8172b73826411a55751e404a0a4a"
dependencies = [
"memchr",
"minimal-lexical",
]
[[package]]
name = "num-bigint-dig"
version = "0.8.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "dc84195820f291c7697304f3cbdadd1cb7199c0efc917ff5eafd71225c136151"
dependencies = [
"byteorder",
"lazy_static",
"libm",
"num-integer",
"num-iter",
"num-traits",
"rand",
"smallvec",
"zeroize",
]
[[package]]
name = "num-conv"
version = "0.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "51d515d32fb182ee37cda2ccdcb92950d6a3c2893aa280e540671c2cd0f3b1d9"
[[package]]
name = "num-integer"
version = "0.1.46"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7969661fd2958a5cb096e56c8e1ad0444ac2bbcd0061bd28660485a44879858f"
dependencies = [
"num-traits",
]
[[package]]
name = "num-iter"
version = "0.1.44"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d869c01cc0c455284163fd0092f1f93835385ccab5a98a0dcc497b2f8bf055a9"
dependencies = [
"autocfg",
"num-integer",
"num-traits",
]
[[package]]
name = "num-traits"
version = "0.2.18"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "da0df0e5185db44f69b44f26786fe401b6c293d1907744beaa7fa62b2e5a517a"
dependencies = [
"autocfg",
"libm",
]
[[package]]
name = "num_cpus"
version = "1.16.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4161fcb6d602d4d2081af7c3a45852d875a03dd337a6bfdd6e06407b61342a43"
dependencies = [
"hermit-abi",
"libc",
]
[[package]]
name = "num_enum"
version = "0.5.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1f646caf906c20226733ed5b1374287eb97e3c2a5c227ce668c1f2ce20ae57c9"
dependencies = [
"num_enum_derive",
]
[[package]]
name = "num_enum_derive"
version = "0.5.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "dcbff9bc912032c62bf65ef1d5aea88983b420f4f839db1e9b0c281a25c9c799"
dependencies = [
"proc-macro-crate 1.3.1",
"proc-macro2",
"quote",
"syn 1.0.109",
]
[[package]]
name = "object"
version = "0.32.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a6a622008b6e321afc04970976f62ee297fdbaa6f95318ca343e3eebb9648441"
dependencies = [
"memchr",
]
[[package]]
name = "once_cell"
version = "1.19.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3fdb12b2476b595f9358c5161aa467c2438859caa136dec86c26fdd2efe17b92"
[[package]]
name = "openssl"
version = "0.10.64"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "95a0481286a310808298130d22dd1fef0fa571e05a8f44ec801801e84b216b1f"
dependencies = [
"bitflags 2.5.0",
"cfg-if",
"foreign-types",
"libc",
"once_cell",
"openssl-macros",
"openssl-sys",
]
[[package]]
name = "openssl-macros"
version = "0.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a948666b637a0f465e8564c73e89d4dde00d72d4d473cc972f390fc3dcee7d9c"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.58",
]
[[package]]
name = "openssl-probe"
version = "0.1.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ff011a302c396a5197692431fc1948019154afc178baf7d8e37367442a4601cf"
[[package]]
name = "openssl-sys"
version = "0.9.102"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c597637d56fbc83893a35eb0dd04b2b8e7a50c91e64e9493e398b5df4fb45fa2"
dependencies = [
"cc",
"libc",
"pkg-config",
"vcpkg",
]
[[package]]
name = "opentelemetry"
version = "0.22.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "900d57987be3f2aeb70d385fff9b27fb74c5723cc9a52d904d4f9c807a0667bf"
dependencies = [
"futures-core",
"futures-sink",
"js-sys",
"once_cell",
"pin-project-lite",
"thiserror",
"urlencoding",
]
[[package]]
name = "opentelemetry-otlp"
version = "0.15.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1a016b8d9495c639af2145ac22387dcb88e44118e45320d9238fbf4e7889abcb"
dependencies = [
"async-trait",
"futures-core",
"http 0.2.12",
"opentelemetry",
"opentelemetry-proto",
"opentelemetry-semantic-conventions",
"opentelemetry_sdk",
"prost",
"thiserror",
"tokio",
"tonic",
]
[[package]]
name = "opentelemetry-proto"
version = "0.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3a8fddc9b68f5b80dae9d6f510b88e02396f006ad48cac349411fbecc80caae4"
dependencies = [
"opentelemetry",
"opentelemetry_sdk",
"prost",
"tonic",
]
[[package]]
name = "opentelemetry-semantic-conventions"
version = "0.14.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f9ab5bd6c42fb9349dcf28af2ba9a0667f697f9bdcca045d39f2cec5543e2910"
[[package]]
name = "opentelemetry_sdk"
version = "0.22.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9e90c7113be649e31e9a0f8b5ee24ed7a16923b322c3c5ab6367469c049d6b7e"
dependencies = [
"async-trait",
"crossbeam-channel",
"futures-channel",
"futures-executor",
"futures-util",
"glob",
"once_cell",
"opentelemetry",
"ordered-float",
"percent-encoding",
"rand",
"thiserror",
"tokio",
"tokio-stream",
]
[[package]]
name = "ordered-float"
version = "4.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a76df7075c7d4d01fdcb46c912dd17fba5b60c78ea480b475f2b6ab6f666584e"
dependencies = [
"num-traits",
]
[[package]]
name = "parking"
version = "2.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bb813b8af86854136c6922af0598d719255ecb2179515e6e7730d468f05c9cae"
[[package]]
name = "parking_lot"
version = "0.12.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3742b2c103b9f06bc9fff0a37ff4912935851bee6d36f3c02bcc755bcfec228f"
dependencies = [
"lock_api",
"parking_lot_core",
]
[[package]]
name = "parking_lot_core"
version = "0.9.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4c42a9226546d68acdd9c0a280d17ce19bfe27a46bf68784e4066115788d008e"
dependencies = [
"cfg-if",
"libc",
"redox_syscall",
"smallvec",
"windows-targets 0.48.5",
]
[[package]]
name = "paste"
version = "1.0.14"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "de3145af08024dea9fa9914f381a17b8fc6034dfb00f3a84013f7ff43f29ed4c"
[[package]]
name = "pem-rfc7468"
version = "0.7.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "88b39c9bfcfc231068454382784bb460aae594343fb030d46e9f50a645418412"
dependencies = [
"base64ct",
]
[[package]]
name = "percent-encoding"
version = "2.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e3148f5046208a5d56bcfc03053e3ca6334e51da8dfb19b6cdc8b306fae3283e"
[[package]]
name = "permute"
version = "0.1.0"
dependencies = [
"serde",
]
[[package]]
name = "pin-project"
version = "1.1.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b6bf43b791c5b9e34c3d182969b4abb522f9343702850a2e57f460d00d09b4b3"
dependencies = [
"pin-project-internal",
]
[[package]]
name = "pin-project-internal"
version = "1.1.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2f38a4412a78282e09a2cf38d195ea5420d15ba0602cb375210efbc877243965"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.58",
]
[[package]]
name = "pin-project-lite"
version = "0.2.14"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bda66fc9667c18cb2758a2ac84d1167245054bcf85d5d1aaa6923f45801bdd02"
[[package]]
name = "pin-utils"
version = "0.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184"
[[package]]
name = "pkcs1"
version = "0.7.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c8ffb9f10fa047879315e6625af03c164b16962a5368d724ed16323b68ace47f"
dependencies = [
"der",
"pkcs8",
"spki",
]
[[package]]
name = "pkcs8"
version = "0.10.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f950b2377845cebe5cf8b5165cb3cc1a5e0fa5cfa3e1f7f55707d8fd82e0a7b7"
dependencies = [
"der",
"spki",
]
[[package]]
name = "pkg-config"
version = "0.3.30"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d231b230927b5e4ad203db57bbcbee2802f6bce620b1e4a9024a07d94e2907ec"
[[package]]
name = "postgres-protocol"
version = "0.6.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "49b6c5ef183cd3ab4ba005f1ca64c21e8bd97ce4699cfea9e8d9a2c4958ca520"
dependencies = [
"base64 0.21.7",
"byteorder",
"bytes",
"fallible-iterator",
"hmac",
"md-5",
"memchr",
"rand",
"sha2",
"stringprep",
]
[[package]]
name = "postgres-types"
version = "0.2.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8d2234cdee9408b523530a9b6d2d6b373d1db34f6a8e51dc03ded1828d7fb67c"
dependencies = [
"bytes",
"fallible-iterator",
"postgres-protocol",
]
[[package]]
name = "powerfmt"
version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "439ee305def115ba05938db6eb1644ff94165c5ab5e9420d1c1bcedbba909391"
[[package]]
name = "ppv-lite86"
version = "0.2.17"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5b40af805b3121feab8a3c29f04d8ad262fa8e0561883e7653e024ae4479e6de"
[[package]]
name = "price_guard"
version = "0.1.0"
dependencies = [
"async-trait",
"chrono",
"fdr-common",
"fdr-store",
"rust_decimal",
"serde",
"thiserror",
"uuid",
]
[[package]]
name = "proc-macro-crate"
version = "1.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7f4c021e1093a56626774e81216a4ce732a735e5bad4868a03f3ed65ca0c3919"
dependencies = [
"once_cell",
"toml_edit 0.19.15",
]
[[package]]
name = "proc-macro-crate"
version = "3.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6d37c51ca738a55da99dc0c4a34860fd675453b8b36209178c2249bb13651284"
dependencies = [
"toml_edit 0.21.1",
]
[[package]]
name = "proc-macro-error"
version = "1.0.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "da25490ff9892aab3fcf7c36f08cfb902dd3e71ca0f9f9517bea02a73a5ce38c"
dependencies = [
"proc-macro-error-attr",
"proc-macro2",
"quote",
"version_check",
]
[[package]]
name = "proc-macro-error-attr"
version = "1.0.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a1be40180e52ecc98ad80b184934baf3d0d29f979574e439af5a55274b35f869"
dependencies = [
"proc-macro2",
"quote",
"version_check",
]
[[package]]
name = "proc-macro2"
version = "1.0.79"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e835ff2298f5721608eb1a980ecaee1aef2c132bf95ecc026a11b7bf3c01c02e"
dependencies = [
"unicode-ident",
]
[[package]]
name = "prometheus"
version = "0.13.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3d33c28a30771f7f96db69893f78b857f7450d7e0237e9c8fc6427a81bae7ed1"
dependencies = [
"cfg-if",
"fnv",
"lazy_static",
"memchr",
"parking_lot",
"protobuf",
"thiserror",
]
[[package]]
name = "prost"
version = "0.12.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d0f5d036824e4761737860779c906171497f6d55681139d8312388f8fe398922"
dependencies = [
"bytes",
"prost-derive",
]
[[package]]
name = "prost-derive"
version = "0.12.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "19de2de2a00075bf566bee3bd4db014b11587e84184d3f7a791bc17f1a8e9e48"
dependencies = [
"anyhow",
"itertools",
"proc-macro2",
"quote",
"syn 2.0.58",
]
[[package]]
name = "protobuf"
version = "2.28.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "106dd99e98437432fed6519dedecfade6a06a73bb7b2a1e019fdd2bee5778d94"
[[package]]
name = "ptr_meta"
version = "0.1.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0738ccf7ea06b608c10564b31debd4f5bc5e197fc8bfe088f68ae5ce81e7a4f1"
dependencies = [
"ptr_meta_derive",
]
[[package]]
name = "ptr_meta_derive"
version = "0.1.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "16b845dbfca988fa33db069c0e230574d15a3088f147a87b64c7589eb662c9ac"
dependencies = [
"proc-macro2",
"quote",
"syn 1.0.109",
]
[[package]]
name = "quote"
version = "1.0.36"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0fa76aaf39101c457836aec0ce2316dbdc3ab723cdda1c6bd4e6ad4208acaca7"
dependencies = [
"proc-macro2",
]
[[package]]
name = "radium"
version = "0.7.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "dc33ff2d4973d518d823d61aa239014831e521c75da58e3df4840d3f47749d09"
[[package]]
name = "rand"
version = "0.8.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404"
dependencies = [
"libc",
"rand_chacha",
"rand_core",
]
[[package]]
name = "rand_chacha"
version = "0.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88"
dependencies = [
"ppv-lite86",
"rand_core",
]
[[package]]
name = "rand_core"
version = "0.6.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c"
dependencies = [
"getrandom",
]
[[package]]
name = "rdkafka"
version = "0.36.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1beea247b9a7600a81d4cc33f659ce1a77e1988323d7d2809c7ed1c21f4c316d"
dependencies = [
"futures-channel",
"futures-util",
"libc",
"log",
"rdkafka-sys",
"serde",
"serde_derive",
"serde_json",
"slab",
"tokio",
]
[[package]]
name = "rdkafka-sys"
version = "4.7.0+2.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "55e0d2f9ba6253f6ec72385e453294f8618e9e15c2c6aba2a5c01ccf9622d615"
dependencies = [
"libc",
"libz-sys",
"num_enum",
"pkg-config",
]
[[package]]
name = "redox_syscall"
version = "0.4.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4722d768eff46b75989dd134e5c353f0d6296e5aaa3132e776cbdb56be7731aa"
dependencies = [
"bitflags 1.3.2",
]
[[package]]
name = "redox_users"
version = "0.4.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bd283d9651eeda4b2a83a43c1c91b266c40fd76ecd39a50a8c630ae69dc72891"
dependencies = [
"getrandom",
"libredox",
"thiserror",
]
[[package]]
name = "regex"
version = "1.10.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c117dbdfde9c8308975b6a18d71f3f385c89461f7b3fb054288ecf2a2058ba4c"
dependencies = [
"aho-corasick",
"memchr",
"regex-automata 0.4.6",
"regex-syntax 0.8.3",
]
[[package]]
name = "regex-automata"
version = "0.1.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6c230d73fb8d8c1b9c0b3135c5142a8acee3a0558fb8db5cf1cb65f8d7862132"
dependencies = [
"regex-syntax 0.6.29",
]
[[package]]
name = "regex-automata"
version = "0.4.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "86b83b8b9847f9bf95ef68afb0b8e6cdb80f498442f5179a29fad448fcc1eaea"
dependencies = [
"aho-corasick",
"memchr",
"regex-syntax 0.8.3",
]
[[package]]
name = "regex-syntax"
version = "0.6.29"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f162c6dd7b008981e4d40210aca20b4bd0f9b60ca9271061b07f78537722f2e1"
[[package]]
name = "regex-syntax"
version = "0.8.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "adad44e29e4c806119491a7f06f03de4d1af22c3a680dd47f1e6e179439d1f56"
[[package]]
name = "rend"
version = "0.4.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "71fe3824f5629716b1589be05dacd749f6aa084c87e00e016714a8cdfccc997c"
dependencies = [
"bytecheck",
]
[[package]]
name = "reqwest"
version = "0.12.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3e6cc1e89e689536eb5aeede61520e874df5a4707df811cd5da4aa5fbb2aae19"
dependencies = [
"base64 0.22.0",
"bytes",
"encoding_rs",
"futures-core",
"futures-util",
"h2 0.4.4",
"http 1.1.0",
"http-body 1.0.0",
"http-body-util",
"hyper 1.3.1",
"hyper-tls",
"hyper-util",
"ipnet",
"js-sys",
"log",
"mime",
"native-tls",
"once_cell",
"percent-encoding",
"pin-project-lite",
"rustls-pemfile",
"serde",
"serde_json",
"serde_urlencoded",
"sync_wrapper 0.1.2",
"system-configuration",
"tokio",
"tokio-native-tls",
"tower-service",
"url",
"wasm-bindgen",
"wasm-bindgen-futures",
"web-sys",
"winreg",
]
[[package]]
name = "rkyv"
version = "0.7.44"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5cba464629b3394fc4dbc6f940ff8f5b4ff5c7aef40f29166fd4ad12acbc99c0"
dependencies = [
"bitvec",
"bytecheck",
"bytes",
"hashbrown 0.12.3",
"ptr_meta",
"rend",
"rkyv_derive",
"seahash",
"tinyvec",
"uuid",
]
[[package]]
name = "rkyv_derive"
version = "0.7.44"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a7dddfff8de25e6f62b9d64e6e432bf1c6736c57d20323e15ee10435fbda7c65"
dependencies = [
"proc-macro2",
"quote",
"syn 1.0.109",
]
[[package]]
name = "rsa"
version = "0.9.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5d0e5124fcb30e76a7e79bfee683a2746db83784b86289f6251b54b7950a0dfc"
dependencies = [
"const-oid",
"digest",
"num-bigint-dig",
"num-integer",
"num-traits",
"pkcs1",
"pkcs8",
"rand_core",
"signature",
"spki",
"subtle",
"zeroize",
]
[[package]]
name = "rust_decimal"
version = "1.35.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1790d1c4c0ca81211399e0e0af16333276f375209e71a37b67698a373db5b47a"
dependencies = [
"arrayvec",
"borsh",
"bytes",
"num-traits",
"postgres-types",
"rand",
"rkyv",
"serde",
"serde_json",
]
[[package]]
name = "rust_decimal_macros"
version = "1.34.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e418701588729bef95e7a655f2b483ad64bb97c46e8e79fde83efd92aaab6d82"
dependencies = [
"quote",
"rust_decimal",
]
[[package]]
name = "rustc-demangle"
version = "0.1.23"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d626bb9dae77e28219937af045c257c28bfd3f69333c512553507f5f9798cb76"
[[package]]
name = "rustc_version"
version = "0.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bfa0f585226d2e68097d4f95d113b15b83a82e819ab25717ec0590d9584ef366"
dependencies = [
"semver",
]
[[package]]
name = "rustix"
version = "0.38.32"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "65e04861e65f21776e67888bfbea442b3642beaa0138fdb1dd7a84a52dffdb89"
dependencies = [
"bitflags 2.5.0",
"errno",
"libc",
"linux-raw-sys",
"windows-sys 0.52.0",
]
[[package]]
name = "rustls-pemfile"
version = "2.1.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "29993a25686778eb88d4189742cd713c9bce943bc54251a33509dc63cbacf73d"
dependencies = [
"base64 0.22.0",
"rustls-pki-types",
]
[[package]]
name = "rustls-pki-types"
version = "1.4.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ecd36cc4259e3e4514335c4a138c6b43171a8d61d8f5c9348f9fc7529416f247"
[[package]]
name = "rustversion"
version = "1.0.15"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "80af6f9131f277a45a3fba6ce8e2258037bb0477a67e610d3c1fe046ab31de47"
[[package]]
name = "ryu"
version = "1.0.17"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e86697c916019a8588c99b5fac3cead74ec0b4b819707a682fd4d23fa0ce1ba1"
[[package]]
name = "schannel"
version = "0.1.23"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fbc91545643bcf3a0bbb6569265615222618bdf33ce4ffbbd13c4bbd4c093534"
dependencies = [
"windows-sys 0.52.0",
]
[[package]]
name = "scopeguard"
version = "1.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49"
[[package]]
name = "seahash"
version = "4.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1c107b6f4780854c8b126e228ea8869f4d7b71260f962fefb57b996b8959ba6b"
[[package]]
name = "security-framework"
version = "2.10.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "770452e37cad93e0a50d5abc3990d2bc351c36d0328f86cefec2f2fb206eaef6"
dependencies = [
"bitflags 1.3.2",
"core-foundation",
"core-foundation-sys",
"libc",
"security-framework-sys",
]
[[package]]
name = "security-framework-sys"
version = "2.10.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "41f3cc463c0ef97e11c3461a9d3787412d30e8e7eb907c79180c4a57bf7c04ef"
dependencies = [
"core-foundation-sys",
"libc",
]
[[package]]
name = "semver"
version = "1.0.22"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "92d43fe69e652f3df9bdc2b85b2854a0825b86e4fb76bc44d945137d053639ca"
[[package]]
name = "serde"
version = "1.0.197"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3fb1c873e1b9b056a4dc4c0c198b24c3ffa059243875552b2bd0933b1aee4ce2"
dependencies = [
"serde_derive",
]
[[package]]
name = "serde_derive"
version = "1.0.197"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7eb0b34b42edc17f6b7cac84a52a1c5f0e1bb2227e997ca9011ea3dd34e8610b"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.58",
]
[[package]]
name = "serde_json"
version = "1.0.117"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "455182ea6142b14f93f4bc5320a2b31c1f266b66a4a5c858b013302a5d8cbfc3"
dependencies = [
"itoa",
"ryu",
"serde",
]
[[package]]
name = "serde_path_to_error"
version = "0.1.16"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "af99884400da37c88f5e9146b7f1fd0fbcae8f6eec4e9da38b67d05486f814a6"
dependencies = [
"itoa",
"serde",
]
[[package]]
name = "serde_spanned"
version = "0.6.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "eb3622f419d1296904700073ea6cc23ad690adbd66f13ea683df73298736f0c1"
dependencies = [
"serde",
]
[[package]]
name = "serde_urlencoded"
version = "0.7.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d3491c14715ca2294c4d6a88f15e84739788c1d030eed8c110436aafdaa2f3fd"
dependencies = [
"form_urlencoded",
"itoa",
"ryu",
"serde",
]
[[package]]
name = "serde_yaml"
version = "0.9.34+deprecated"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6a8b1a1a2ebf674015cc02edccce75287f1a0130d394307b36743c2f5d504b47"
dependencies = [
"indexmap 2.2.6",
"itoa",
"ryu",
"serde",
"unsafe-libyaml",
]
[[package]]
name = "sha1"
version = "0.10.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e3bf829a2d51ab4a5ddf1352d8470c140cadc8301b2ae1789db023f01cedd6ba"
dependencies = [
"cfg-if",
"cpufeatures",
"digest",
]
[[package]]
name = "sha2"
version = "0.10.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "793db75ad2bcafc3ffa7c68b215fee268f537982cd901d132f89c6343f3a3dc8"
dependencies = [
"cfg-if",
"cpufeatures",
"digest",
]
[[package]]
name = "sharded-slab"
version = "0.1.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f40ca3c46823713e0d4209592e8d6e826aa57e928f09752619fc696c499637f6"
dependencies = [
"lazy_static",
]
[[package]]
name = "signal-hook-registry"
version = "1.4.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d8229b473baa5980ac72ef434c4415e70c4b5e71b423043adb4ba059f89c99a1"
dependencies = [
"libc",
]
[[package]]
name = "signature"
version = "2.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "77549399552de45a898a580c1b41d445bf730df867cc44e6c0233bbc4b8329de"
dependencies = [
"digest",
"rand_core",
]
[[package]]
name = "simdutf8"
version = "0.1.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f27f6278552951f1f2b8cf9da965d10969b2efdea95a6ec47987ab46edfe263a"
[[package]]
name = "slab"
version = "0.4.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8f92a496fb766b417c996b9c5e57daf2f7ad3b0bebe1ccfca4856390e3d3bb67"
dependencies = [
"autocfg",
]
[[package]]
name = "slog"
version = "2.7.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8347046d4ebd943127157b94d63abb990fcf729dc4e9978927fdf4ac3c998d06"
[[package]]
name = "slog-async"
version = "2.8.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "72c8038f898a2c79507940990f05386455b3a317d8f18d4caea7cbc3d5096b84"
dependencies = [
"crossbeam-channel",
"slog",
"take_mut",
"thread_local",
]
[[package]]
name = "slog-envlogger"
version = "2.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "906a1a0bc43fed692df4b82a5e2fbfc3733db8dad8bb514ab27a4f23ad04f5c0"
dependencies = [
"log",
"regex",
"slog",
"slog-async",
"slog-scope",
"slog-stdlog",
"slog-term",
]
[[package]]
name = "slog-scope"
version = "4.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2f95a4b4c3274cd2869549da82b57ccc930859bdbf5bcea0424bc5f140b3c786"
dependencies = [
"arc-swap",
"lazy_static",
"slog",
]
[[package]]
name = "slog-stdlog"
version = "4.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6706b2ace5bbae7291d3f8d2473e2bfab073ccd7d03670946197aec98471fa3e"
dependencies = [
"log",
"slog",
"slog-scope",
]
[[package]]
name = "slog-term"
version = "2.9.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b6e022d0b998abfe5c3782c1f03551a596269450ccd677ea51c56f8b214610e8"
dependencies = [
"is-terminal",
"slog",
"term",
"thread_local",
"time",
]
[[package]]
name = "smallvec"
version = "1.13.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3c5e1a9a646d36c3599cd173a41282daf47c44583ad367b8e6837255952e5c67"
[[package]]
name = "socket2"
version = "0.5.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "05ffd9c0a93b7543e062e759284fcf5f5e3b098501104bfbdde4d404db792871"
dependencies = [
"libc",
"windows-sys 0.52.0",
]
[[package]]
name = "spin"
version = "0.5.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6e63cff320ae2c57904679ba7cb63280a3dc4613885beafb148ee7bf9aa9042d"
[[package]]
name = "spin"
version = "0.9.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6980e8d7511241f8acf4aebddbb1ff938df5eebe98691418c4468d0b72a96a67"
dependencies = [
"lock_api",
]
[[package]]
name = "spki"
version = "0.7.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d91ed6c858b01f942cd56b37a94b3e0a1798290327d1236e4d9cf4eaca44d29d"
dependencies = [
"base64ct",
"der",
]
[[package]]
name = "sqlformat"
version = "0.2.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ce81b7bd7c4493975347ef60d8c7e8b742d4694f4c49f93e0a12ea263938176c"
dependencies = [
"itertools",
"nom",
"unicode_categories",
]
[[package]]
name = "sqlx"
version = "0.7.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c9a2ccff1a000a5a59cd33da541d9f2fdcd9e6e8229cc200565942bff36d0aaa"
dependencies = [
"sqlx-core",
"sqlx-macros",
"sqlx-mysql",
"sqlx-postgres",
"sqlx-sqlite",
]
[[package]]
name = "sqlx-core"
version = "0.7.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "24ba59a9342a3d9bab6c56c118be528b27c9b60e490080e9711a04dccac83ef6"
dependencies = [
"ahash 0.8.11",
"atoi",
"byteorder",
"bytes",
"chrono",
"crc",
"crossbeam-queue",
"either",
"event-listener 2.5.3",
"futures-channel",
"futures-core",
"futures-intrusive",
"futures-io",
"futures-util",
"hashlink",
"hex",
"indexmap 2.2.6",
"log",
"memchr",
"native-tls",
"once_cell",
"paste",
"percent-encoding",
"rust_decimal",
"serde",
"serde_json",
"sha2",
"smallvec",
"sqlformat",
"thiserror",
"time",
"tokio",
"tokio-stream",
"tracing",
"url",
"uuid",
]
[[package]]
name = "sqlx-macros"
version = "0.7.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4ea40e2345eb2faa9e1e5e326db8c34711317d2b5e08d0d5741619048a803127"
dependencies = [
"proc-macro2",
"quote",
"sqlx-core",
"sqlx-macros-core",
"syn 1.0.109",
]
[[package]]
name = "sqlx-macros-core"
version = "0.7.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5833ef53aaa16d860e92123292f1f6a3d53c34ba8b1969f152ef1a7bb803f3c8"
dependencies = [
"dotenvy",
"either",
"heck 0.4.1",
"hex",
"once_cell",
"proc-macro2",
"quote",
"serde",
"serde_json",
"sha2",
"sqlx-core",
"sqlx-mysql",
"sqlx-postgres",
"sqlx-sqlite",
"syn 1.0.109",
"tempfile",
"tokio",
"url",
]
[[package]]
name = "sqlx-mysql"
version = "0.7.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1ed31390216d20e538e447a7a9b959e06ed9fc51c37b514b46eb758016ecd418"
dependencies = [
"atoi",
"base64 0.21.7",
"bitflags 2.5.0",
"byteorder",
"bytes",
"chrono",
"crc",
"digest",
"dotenvy",
"either",
"futures-channel",
"futures-core",
"futures-io",
"futures-util",
"generic-array",
"hex",
"hkdf",
"hmac",
"itoa",
"log",
"md-5",
"memchr",
"once_cell",
"percent-encoding",
"rand",
"rsa",
"rust_decimal",
"serde",
"sha1",
"sha2",
"smallvec",
"sqlx-core",
"stringprep",
"thiserror",
"time",
"tracing",
"uuid",
"whoami",
]
[[package]]
name = "sqlx-postgres"
version = "0.7.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7c824eb80b894f926f89a0b9da0c7f435d27cdd35b8c655b114e58223918577e"
dependencies = [
"atoi",
"base64 0.21.7",
"bitflags 2.5.0",
"byteorder",
"chrono",
"crc",
"dotenvy",
"etcetera",
"futures-channel",
"futures-core",
"futures-io",
"futures-util",
"hex",
"hkdf",
"hmac",
"home",
"itoa",
"log",
"md-5",
"memchr",
"once_cell",
"rand",
"rust_decimal",
"serde",
"serde_json",
"sha2",
"smallvec",
"sqlx-core",
"stringprep",
"thiserror",
"time",
"tracing",
"uuid",
"whoami",
]
[[package]]
name = "sqlx-sqlite"
version = "0.7.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b244ef0a8414da0bed4bb1910426e890b19e5e9bccc27ada6b797d05c55ae0aa"
dependencies = [
"atoi",
"chrono",
"flume",
"futures-channel",
"futures-core",
"futures-executor",
"futures-intrusive",
"futures-util",
"libsqlite3-sys",
"log",
"percent-encoding",
"serde",
"sqlx-core",
"time",
"tracing",
"url",
"urlencoding",
"uuid",
]
[[package]]
name = "strat-common"
version = "0.1.0"
dependencies = [
"arc-swap",
"async-trait",
"chrono",
"clap",
"derive_more",
"digest",
"fdr-common",
"fdr-event",
"fdr-store",
"futures-util",
"hmac",
"http 1.1.0",
"http-body 1.0.0",
"hyper 1.3.1",
"price_guard",
"prometheus",
"regex",
"rust_decimal",
"rust_decimal_macros",
"serde",
"serde_json",
"sha2",
"slog",
"sqlx",
"thiserror",
"tokio",
"toml",
"tower",
"tracing",
"tracing-opentelemetry",
"url",
"uuid",
]
[[package]]
name = "strategies"
version = "0.1.0"
dependencies = [
"async-trait",
"chrono",
"clap",
"derive_more",
"fdr-balances",
"fdr-common",
"fdr-event",
"fdr-store",
"http 1.1.0",
"http-body 1.0.0",
"hyper 1.3.1",
"indexmap 2.2.6",
"price_guard",
"prometheus",
"rust_decimal",
"rust_decimal_macros",
"serde",
"serde_json",
"slog",
"sqlx",
"strat-common",
"thiserror",
"tokio",
"toml",
"tower",
"tracing",
"tracing-opentelemetry",
"url",
"uuid",
]
[[package]]
name = "strategy-manager"
version = "0.1.0"
dependencies = [
"anyhow",
"async-trait",
"axum 0.7.5",
"chrono",
"clap",
"derive_more",
"exchange-client",
"fdr-common",
"fdr-event",
"fdr-http",
"fdr-store",
"http 1.1.0",
"http-body 1.0.0",
"hyper 1.3.1",
"indexmap 2.2.6",
"prometheus",
"rdkafka",
"rust_decimal",
"rust_decimal_macros",
"serde",
"serde_json",
"slog",
"sqlx",
"strat-common",
"strategies",
"thiserror",
"tokio",
"toml",
"tower",
"tower-http",
"tracing",
"tracing-opentelemetry",
"url",
"uuid",
]
[[package]]
name = "stringprep"
version = "0.1.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bb41d74e231a107a1b4ee36bd1214b11285b77768d2e3824aedafa988fd36ee6"
dependencies = [
"finl_unicode",
"unicode-bidi",
"unicode-normalization",
]
[[package]]
name = "strsim"
version = "0.11.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f"
[[package]]
name = "strum"
version = "0.26.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5d8cec3501a5194c432b2b7976db6b7d10ec95c253208b45f83f7136aa985e29"
dependencies = [
"strum_macros",
]
[[package]]
name = "strum_macros"
version = "0.26.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c6cf59daf282c0a494ba14fd21610a0325f9f90ec9d1231dea26bcb1d696c946"
dependencies = [
"heck 0.4.1",
"proc-macro2",
"quote",
"rustversion",
"syn 2.0.58",
]
[[package]]
name = "subtle"
version = "2.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "81cdd64d312baedb58e21336b31bc043b77e01cc99033ce76ef539f78e965ebc"
[[package]]
name = "syn"
version = "1.0.109"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "72b64191b275b66ffe2469e8af2c1cfe3bafa67b529ead792a6d0160888b4237"
dependencies = [
"proc-macro2",
"quote",
"unicode-ident",
]
[[package]]
name = "syn"
version = "2.0.58"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "44cfb93f38070beee36b3fef7d4f5a16f27751d94b187b666a5cc5e9b0d30687"
dependencies = [
"proc-macro2",
"quote",
"unicode-ident",
]
[[package]]
name = "syn_derive"
version = "0.1.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1329189c02ff984e9736652b1631330da25eaa6bc639089ed4915d25446cbe7b"
dependencies = [
"proc-macro-error",
"proc-macro2",
"quote",
"syn 2.0.58",
]
[[package]]
name = "sync_wrapper"
version = "0.1.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2047c6ded9c721764247e62cd3b03c09ffc529b2ba5b10ec482ae507a4a70160"
[[package]]
name = "sync_wrapper"
version = "1.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a7065abeca94b6a8a577f9bd45aa0867a2238b74e8eb67cf10d492bc39351394"
[[package]]
name = "system-configuration"
version = "0.5.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ba3a3adc5c275d719af8cb4272ea1c4a6d668a777f37e115f6d11ddbc1c8e0e7"
dependencies = [
"bitflags 1.3.2",
"core-foundation",
"system-configuration-sys",
]
[[package]]
name = "system-configuration-sys"
version = "0.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a75fb188eb626b924683e3b95e3a48e63551fcfb51949de2f06a9d91dbee93c9"
dependencies = [
"core-foundation-sys",
"libc",
]
[[package]]
name = "take_mut"
version = "0.2.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f764005d11ee5f36500a149ace24e00e3da98b0158b3e2d53a7495660d3f4d60"
[[package]]
name = "tap"
version = "1.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "55937e1799185b12863d447f42597ed69d9928686b8d88a1df17376a097d8369"
[[package]]
name = "technical_analysis"
version = "0.1.0"
dependencies = [
"async-trait",
"chrono",
"clap",
"derive_more",
"fdr-common",
"http 1.1.0",
"http-body 1.0.0",
"hyper 1.3.1",
"lazy_static",
"prometheus",
"rust_decimal",
"rust_decimal_macros",
"serde",
"serde_json",
"slog",
"sqlx",
"strum",
"strum_macros",
"thiserror",
"tokio",
"toml",
"tracing",
"tracing-opentelemetry",
"url",
"uuid",
]
[[package]]
name = "tempfile"
version = "3.10.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "85b77fafb263dd9d05cbeac119526425676db3784113aa9295c88498cbf8bff1"
dependencies = [
"cfg-if",
"fastrand",
"rustix",
"windows-sys 0.52.0",
]
[[package]]
name = "term"
version = "0.7.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c59df8ac95d96ff9bede18eb7300b0fda5e5d8d90960e76f8e14ae765eedbf1f"
dependencies = [
"dirs-next",
"rustversion",
"winapi",
]
[[package]]
name = "thiserror"
version = "1.0.61"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c546c80d6be4bc6a00c0f01730c08df82eaa7a7a61f11d656526506112cc1709"
dependencies = [
"thiserror-impl",
]
[[package]]
name = "thiserror-impl"
version = "1.0.61"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "46c3384250002a6d5af4d114f2845d37b57521033f30d5c3f46c4d70e1197533"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.58",
]
[[package]]
name = "thread_local"
version = "1.1.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8b9ef9bad013ada3808854ceac7b46812a6465ba368859a37e2100283d2d719c"
dependencies = [
"cfg-if",
"once_cell",
]
[[package]]
name = "time"
version = "0.3.36"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5dfd88e563464686c916c7e46e623e520ddc6d79fa6641390f2e3fa86e83e885"
dependencies = [
"deranged",
"itoa",
"num-conv",
"powerfmt",
"serde",
"time-core",
"time-macros",
]
[[package]]
name = "time-core"
version = "0.1.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ef927ca75afb808a4d64dd374f00a2adf8d0fcff8e7b184af886c3c87ec4a3f3"
[[package]]
name = "time-macros"
version = "0.2.18"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3f252a68540fde3a3877aeea552b832b40ab9a69e318efd078774a01ddee1ccf"
dependencies = [
"num-conv",
"time-core",
]
[[package]]
name = "tinyvec"
version = "1.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "87cc5ceb3875bb20c2890005a4e226a4651264a5c75edb2421b52861a0a0cb50"
dependencies = [
"tinyvec_macros",
]
[[package]]
name = "tinyvec_macros"
version = "0.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20"
[[package]]
name = "tokio"
version = "1.37.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1adbebffeca75fcfd058afa480fb6c0b81e165a0323f9c9d39c9697e37c46787"
dependencies = [
"backtrace",
"bytes",
"libc",
"mio",
"num_cpus",
"parking_lot",
"pin-project-lite",
"signal-hook-registry",
"socket2",
"tokio-macros",
"tracing",
"windows-sys 0.48.0",
]
[[package]]
name = "tokio-io-timeout"
version = "1.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "30b74022ada614a1b4834de765f9bb43877f910cc8ce4be40e89042c9223a8bf"
dependencies = [
"pin-project-lite",
"tokio",
]
[[package]]
name = "tokio-macros"
version = "2.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5b8a1e28f2deaa14e508979454cb3a223b10b938b45af148bc0986de36f1923b"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.58",
]
[[package]]
name = "tokio-native-tls"
version = "0.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bbae76ab933c85776efabc971569dd6119c580d8f5d448769dec1764bf796ef2"
dependencies = [
"native-tls",
"tokio",
]
[[package]]
name = "tokio-stream"
version = "0.1.15"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "267ac89e0bec6e691e5813911606935d77c476ff49024f98abcea3e7b15e37af"
dependencies = [
"futures-core",
"pin-project-lite",
"tokio",
]
[[package]]
name = "tokio-tungstenite"
version = "0.21.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c83b561d025642014097b66e6c1bb422783339e0909e4429cde4749d1990bc38"
dependencies = [
"futures-util",
"log",
"native-tls",
"tokio",
"tokio-native-tls",
"tungstenite",
]
[[package]]
name = "tokio-util"
version = "0.7.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5419f34732d9eb6ee4c3578b7989078579b7f039cbbb9ca2c4da015749371e15"
dependencies = [
"bytes",
"futures-core",
"futures-sink",
"pin-project-lite",
"tokio",
"tracing",
]
[[package]]
name = "toml"
version = "0.8.12"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e9dd1545e8208b4a5af1aa9bbd0b4cf7e9ea08fabc5d0a5c67fcaafa17433aa3"
dependencies = [
"serde",
"serde_spanned",
"toml_datetime",
"toml_edit 0.22.9",
]
[[package]]
name = "toml_datetime"
version = "0.6.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3550f4e9685620ac18a50ed434eb3aec30db8ba93b0287467bca5826ea25baf1"
dependencies = [
"serde",
]
[[package]]
name = "toml_edit"
version = "0.19.15"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1b5bb770da30e5cbfde35a2d7b9b8a2c4b8ef89548a7a6aeab5c9a576e3e7421"
dependencies = [
"indexmap 2.2.6",
"toml_datetime",
"winnow 0.5.40",
]
[[package]]
name = "toml_edit"
version = "0.21.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6a8534fd7f78b5405e860340ad6575217ce99f38d4d5c8f2442cb5ecb50090e1"
dependencies = [
"indexmap 2.2.6",
"toml_datetime",
"winnow 0.5.40",
]
[[package]]
name = "toml_edit"
version = "0.22.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8e40bb779c5187258fd7aad0eb68cb8706a0a81fa712fbea808ab43c4b8374c4"
dependencies = [
"indexmap 2.2.6",
"serde",
"serde_spanned",
"toml_datetime",
"winnow 0.6.6",
]
[[package]]
name = "tonic"
version = "0.11.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "76c4eb7a4e9ef9d4763600161f12f5070b92a578e1b634db88a6887844c91a13"
dependencies = [
"async-stream",
"async-trait",
"axum 0.6.20",
"base64 0.21.7",
"bytes",
"h2 0.3.26",
"http 0.2.12",
"http-body 0.4.6",
"hyper 0.14.28",
"hyper-timeout",
"percent-encoding",
"pin-project",
"prost",
"tokio",
"tokio-stream",
"tower",
"tower-layer",
"tower-service",
"tracing",
]
[[package]]
name = "tower"
version = "0.4.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b8fa9be0de6cf49e536ce1851f987bd21a43b771b09473c3549a6c853db37c1c"
dependencies = [
"futures-core",
"futures-util",
"hdrhistogram",
"indexmap 1.9.3",
"pin-project",
"pin-project-lite",
"rand",
"slab",
"tokio",
"tokio-util",
"tower-layer",
"tower-service",
"tracing",
]
[[package]]
name = "tower-http"
version = "0.5.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1e9cd434a998747dd2c4276bc96ee2e0c7a2eadf3cae88e52be55a05fa9053f5"
dependencies = [
"async-compression",
"base64 0.21.7",
"bitflags 2.5.0",
"bytes",
"futures-core",
"futures-util",
"http 1.1.0",
"http-body 1.0.0",
"http-body-util",
"http-range-header",
"httpdate",
"iri-string",
"mime",
"mime_guess",
"percent-encoding",
"pin-project-lite",
"tokio",
"tokio-util",
"tower",
"tower-layer",
"tower-service",
"tracing",
"uuid",
]
[[package]]
name = "tower-layer"
version = "0.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c20c8dbed6283a09604c3e69b4b7eeb54e298b8a600d4d5ecb5ad39de609f1d0"
[[package]]
name = "tower-service"
version = "0.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b6bc1c9ce2b5135ac7f93c72918fc37feb872bdc6a5533a8b85eb4b86bfdae52"
[[package]]
name = "tracing"
version = "0.1.40"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c3523ab5a71916ccf420eebdf5521fcef02141234bbc0b8a49f2fdc4544364ef"
dependencies = [
"log",
"pin-project-lite",
"tracing-attributes",
"tracing-core",
]
[[package]]
name = "tracing-attributes"
version = "0.1.27"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "34704c8d6ebcbc939824180af020566b01a7c01f80641264eba0999f6c2b6be7"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.58",
]
[[package]]
name = "tracing-core"
version = "0.1.32"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c06d3da6113f116aaee68e4d601191614c9053067f9ab7f6edbcb161237daa54"
dependencies = [
"once_cell",
"valuable",
]
[[package]]
name = "tracing-log"
version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ee855f1f400bd0e5c02d150ae5de3840039a3f54b025156404e34c23c03f47c3"
dependencies = [
"log",
"once_cell",
"tracing-core",
]
[[package]]
name = "tracing-opentelemetry"
version = "0.23.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a9be14ba1bbe4ab79e9229f7f89fab8d120b865859f10527f31c033e599d2284"
dependencies = [
"js-sys",
"once_cell",
"opentelemetry",
"opentelemetry_sdk",
"smallvec",
"tracing",
"tracing-core",
"tracing-log",
"tracing-subscriber",
"web-time",
]
[[package]]
name = "tracing-opentelemetry-instrumentation-sdk"
version = "0.18.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "36785b61526c60c97c5aaa3e588d07099e1fb7b51dc96ff1508d4abe80389b36"
dependencies = [
"http 1.1.0",
"opentelemetry",
"tracing",
"tracing-opentelemetry",
]
[[package]]
name = "tracing-serde"
version = "0.1.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bc6b213177105856957181934e4920de57730fc69bf42c37ee5bb664d406d9e1"
dependencies = [
"serde",
"tracing-core",
]
[[package]]
name = "tracing-subscriber"
version = "0.3.18"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ad0f048c97dbd9faa9b7df56362b8ebcaa52adb06b498c050d2f4e32f90a7a8b"
dependencies = [
"matchers",
"once_cell",
"regex",
"serde",
"serde_json",
"sharded-slab",
"thread_local",
"tracing",
"tracing-core",
"tracing-serde",
]
[[package]]
name = "try-lock"
version = "0.2.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b"
[[package]]
name = "tungstenite"
version = "0.21.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9ef1a641ea34f399a848dea702823bbecfb4c486f911735368f1f137cb8257e1"
dependencies = [
"byteorder",
"bytes",
"data-encoding",
"http 1.1.0",
"httparse",
"log",
"native-tls",
"rand",
"sha1",
"thiserror",
"url",
"utf-8",
]
[[package]]
name = "typenum"
version = "1.17.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "42ff0bf0c66b8238c6f3b578df37d0b7848e55df8577b3f74f92a69acceeb825"
[[package]]
name = "unicase"
version = "2.7.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f7d2d4dafb69621809a81864c9c1b864479e1235c0dd4e199924b9742439ed89"
dependencies = [
"version_check",
]
[[package]]
name = "unicode-bidi"
version = "0.3.15"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "08f95100a766bf4f8f28f90d77e0a5461bbdb219042e7679bebe79004fed8d75"
[[package]]
name = "unicode-ident"
version = "1.0.12"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3354b9ac3fae1ff6755cb6db53683adb661634f67557942dea4facebec0fee4b"
[[package]]
name = "unicode-normalization"
version = "0.1.23"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a56d1686db2308d901306f92a263857ef59ea39678a5458e7cb17f01415101f5"
dependencies = [
"tinyvec",
]
[[package]]
name = "unicode-segmentation"
version = "1.11.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d4c87d22b6e3f4a18d4d40ef354e97c90fcb14dd91d7dc0aa9d8a1172ebf7202"
[[package]]
name = "unicode_categories"
version = "0.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "39ec24b3121d976906ece63c9daad25b85969647682eee313cb5779fdd69e14e"
[[package]]
name = "unsafe-libyaml"
version = "0.2.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "673aac59facbab8a9007c7f6108d11f63b603f7cabff99fabf650fea5c32b861"
[[package]]
name = "url"
version = "2.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "31e6302e3bb753d46e83516cae55ae196fc0c309407cf11ab35cc51a4c2a4633"
dependencies = [
"form_urlencoded",
"idna",
"percent-encoding",
"serde",
]
[[package]]
name = "urlencoding"
version = "2.1.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "daf8dba3b7eb870caf1ddeed7bc9d2a049f3cfdfae7cb521b087cc33ae4c49da"
[[package]]
name = "utf-8"
version = "0.7.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "09cc8ee72d2a9becf2f2febe0205bbed8fc6615b7cb429ad062dc7b7ddd036a9"
[[package]]
name = "utf8parse"
version = "0.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "711b9620af191e0cdc7468a8d14e709c3dcdb115b36f838e601583af800a370a"
[[package]]
name = "uuid"
version = "1.8.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a183cf7feeba97b4dd1c0d46788634f6221d87fa961b305bed08c851829efcc0"
dependencies = [
"getrandom",
"rand",
"serde",
]
[[package]]
name = "valuable"
version = "0.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "830b7e5d4d90034032940e4ace0d9a9a057e7a45cd94e6c007832e39edb82f6d"
[[package]]
name = "vcpkg"
version = "0.2.15"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "accd4ea62f7bb7a82fe23066fb0957d48ef677f6eeb8215f372f52e48bb32426"
[[package]]
name = "version_check"
version = "0.9.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f"
[[package]]
name = "want"
version = "0.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bfa7760aed19e106de2c7c0b581b509f2f25d3dacaf737cb82ac61bc6d760b0e"
dependencies = [
"try-lock",
]
[[package]]
name = "wasi"
version = "0.11.0+wasi-snapshot-preview1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423"
[[package]]
name = "wasite"
version = "0.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b8dad83b4f25e74f184f64c43b150b91efe7647395b42289f38e50566d82855b"
[[package]]
name = "wasm-bindgen"
version = "0.2.92"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4be2531df63900aeb2bca0daaaddec08491ee64ceecbee5076636a3b026795a8"
dependencies = [
"cfg-if",
"wasm-bindgen-macro",
]
[[package]]
name = "wasm-bindgen-backend"
version = "0.2.92"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "614d787b966d3989fa7bb98a654e369c762374fd3213d212cfc0251257e747da"
dependencies = [
"bumpalo",
"log",
"once_cell",
"proc-macro2",
"quote",
"syn 2.0.58",
"wasm-bindgen-shared",
]
[[package]]
name = "wasm-bindgen-futures"
version = "0.4.42"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "76bc14366121efc8dbb487ab05bcc9d346b3b5ec0eaa76e46594cabbe51762c0"
dependencies = [
"cfg-if",
"js-sys",
"wasm-bindgen",
"web-sys",
]
[[package]]
name = "wasm-bindgen-macro"
version = "0.2.92"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a1f8823de937b71b9460c0c34e25f3da88250760bec0ebac694b49997550d726"
dependencies = [
"quote",
"wasm-bindgen-macro-support",
]
[[package]]
name = "wasm-bindgen-macro-support"
version = "0.2.92"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e94f17b526d0a461a191c78ea52bbce64071ed5c04c9ffe424dcb38f74171bb7"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.58",
"wasm-bindgen-backend",
"wasm-bindgen-shared",
]
[[package]]
name = "wasm-bindgen-shared"
version = "0.2.92"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "af190c94f2773fdb3729c55b007a722abb5384da03bc0986df4c289bf5567e96"
[[package]]
name = "web-sys"
version = "0.3.69"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "77afa9a11836342370f4817622a2f0f418b134426d91a82dfb48f532d2ec13ef"
dependencies = [
"js-sys",
"wasm-bindgen",
]
[[package]]
name = "web-time"
version = "1.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5a6580f308b1fad9207618087a65c04e7a10bc77e02c8e84e9b00dd4b12fa0bb"
dependencies = [
"js-sys",
"wasm-bindgen",
]
[[package]]
name = "whoami"
version = "1.5.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a44ab49fad634e88f55bf8f9bb3abd2f27d7204172a112c7c9987e01c1c94ea9"
dependencies = [
"redox_syscall",
"wasite",
]
[[package]]
name = "winapi"
version = "0.3.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419"
dependencies = [
"winapi-i686-pc-windows-gnu",
"winapi-x86_64-pc-windows-gnu",
]
[[package]]
name = "winapi-i686-pc-windows-gnu"
version = "0.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6"
[[package]]
name = "winapi-x86_64-pc-windows-gnu"
version = "0.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
[[package]]
name = "windows-core"
version = "0.52.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "33ab640c8d7e35bf8ba19b884ba838ceb4fba93a4e8c65a9059d08afcfc683d9"
dependencies = [
"windows-targets 0.52.5",
]
[[package]]
name = "windows-sys"
version = "0.48.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "677d2418bec65e3338edb076e806bc1ec15693c5d0104683f2efe857f61056a9"
dependencies = [
"windows-targets 0.48.5",
]
[[package]]
name = "windows-sys"
version = "0.52.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d"
dependencies = [
"windows-targets 0.52.5",
]
[[package]]
name = "windows-targets"
version = "0.48.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9a2fa6e2155d7247be68c096456083145c183cbbbc2764150dda45a87197940c"
dependencies = [
"windows_aarch64_gnullvm 0.48.5",
"windows_aarch64_msvc 0.48.5",
"windows_i686_gnu 0.48.5",
"windows_i686_msvc 0.48.5",
"windows_x86_64_gnu 0.48.5",
"windows_x86_64_gnullvm 0.48.5",
"windows_x86_64_msvc 0.48.5",
]
[[package]]
name = "windows-targets"
version = "0.52.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6f0713a46559409d202e70e28227288446bf7841d3211583a4b53e3f6d96e7eb"
dependencies = [
"windows_aarch64_gnullvm 0.52.5",
"windows_aarch64_msvc 0.52.5",
"windows_i686_gnu 0.52.5",
"windows_i686_gnullvm",
"windows_i686_msvc 0.52.5",
"windows_x86_64_gnu 0.52.5",
"windows_x86_64_gnullvm 0.52.5",
"windows_x86_64_msvc 0.52.5",
]
[[package]]
name = "windows_aarch64_gnullvm"
version = "0.48.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2b38e32f0abccf9987a4e3079dfb67dcd799fb61361e53e2882c3cbaf0d905d8"
[[package]]
name = "windows_aarch64_gnullvm"
version = "0.52.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7088eed71e8b8dda258ecc8bac5fb1153c5cffaf2578fc8ff5d61e23578d3263"
[[package]]
name = "windows_aarch64_msvc"
version = "0.48.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "dc35310971f3b2dbbf3f0690a219f40e2d9afcf64f9ab7cc1be722937c26b4bc"
[[package]]
name = "windows_aarch64_msvc"
version = "0.52.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9985fd1504e250c615ca5f281c3f7a6da76213ebd5ccc9561496568a2752afb6"
[[package]]
name = "windows_i686_gnu"
version = "0.48.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a75915e7def60c94dcef72200b9a8e58e5091744960da64ec734a6c6e9b3743e"
[[package]]
name = "windows_i686_gnu"
version = "0.52.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "88ba073cf16d5372720ec942a8ccbf61626074c6d4dd2e745299726ce8b89670"
[[package]]
name = "windows_i686_gnullvm"
version = "0.52.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "87f4261229030a858f36b459e748ae97545d6f1ec60e5e0d6a3d32e0dc232ee9"
[[package]]
name = "windows_i686_msvc"
version = "0.48.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8f55c233f70c4b27f66c523580f78f1004e8b5a8b659e05a4eb49d4166cca406"
[[package]]
name = "windows_i686_msvc"
version = "0.52.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "db3c2bf3d13d5b658be73463284eaf12830ac9a26a90c717b7f771dfe97487bf"
[[package]]
name = "windows_x86_64_gnu"
version = "0.48.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "53d40abd2583d23e4718fddf1ebec84dbff8381c07cae67ff7768bbf19c6718e"
[[package]]
name = "windows_x86_64_gnu"
version = "0.52.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4e4246f76bdeff09eb48875a0fd3e2af6aada79d409d33011886d3e1581517d9"
[[package]]
name = "windows_x86_64_gnullvm"
version = "0.48.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0b7b52767868a23d5bab768e390dc5f5c55825b6d30b86c844ff2dc7414044cc"
[[package]]
name = "windows_x86_64_gnullvm"
version = "0.52.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "852298e482cd67c356ddd9570386e2862b5673c85bd5f88df9ab6802b334c596"
[[package]]
name = "windows_x86_64_msvc"
version = "0.48.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ed94fce61571a4006852b7389a063ab983c02eb1bb37b47f8272ce92d06d9538"
[[package]]
name = "windows_x86_64_msvc"
version = "0.52.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bec47e5bfd1bff0eeaf6d8b485cc1074891a197ab4225d504cb7a1ab88b02bf0"
[[package]]
name = "winnow"
version = "0.5.40"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f593a95398737aeed53e489c785df13f3618e41dbcd6718c6addbf1395aa6876"
dependencies = [
"memchr",
]
[[package]]
name = "winnow"
version = "0.6.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f0c976aaaa0e1f90dbb21e9587cdaf1d9679a1cde8875c0d6bd83ab96a208352"
dependencies = [
"memchr",
]
[[package]]
name = "winreg"
version = "0.52.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a277a57398d4bfa075df44f501a17cfdf8542d224f0d36095a2adc7aee4ef0a5"
dependencies = [
"cfg-if",
"windows-sys 0.48.0",
]
[[package]]
name = "wyz"
version = "0.5.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "05f360fc0b24296329c78fda852a1e9ae82de9cf7b27dae4b7f62f118f77b9ed"
dependencies = [
"tap",
]
[[package]]
name = "zerocopy"
version = "0.7.32"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "74d4d3961e53fa4c9a25a8637fc2bfaf2595b3d3ae34875568a5cf64787716be"
dependencies = [
"zerocopy-derive",
]
[[package]]
name = "zerocopy-derive"
version = "0.7.32"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9ce1b18ccd8e73a9321186f97e46f9f04b778851177567b1975109d26a08d2a6"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.58",
]
[[package]]
name = "zeroize"
version = "1.7.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "525b4ec142c6b68a2d10f01f7bbf6755599ca3f81ea53b8431b7dd348f5fdb2d"
[[package]]
name = "zstd"
version = "0.13.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2d789b1514203a1120ad2429eae43a7bd32b90976a7bb8a05f7ec02fa88cc23a"
dependencies = [
"zstd-safe",
]
[[package]]
name = "zstd-safe"
version = "7.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1cd99b45c6bc03a018c8b8a86025678c87e55526064e38f9df301989dce7ec0a"
dependencies = [
"zstd-sys",
]
[[package]]
name = "zstd-sys"
version = "2.0.10+zstd.1.5.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c253a4914af5bafc8fa8c86ee400827e83cf6ec01195ec1f1ed8441bf00d65aa"
dependencies = [
"cc",
"pkg-config",
]
| 0 |
mono | /mono/kubeconfig.yaml | apiVersion: v1
kind: Config
preferences: { }
contexts:
- name: fdr-dev
context:
cluster: fdr-dev
user: aws-developer
namespace: default
- name: fdr-dev-admin
context:
cluster: fdr-dev
user: aws-admin
namespace: default
clusters:
- name: fdr-dev
cluster:
certificate-authority-data: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURCVENDQWUyZ0F3SUJBZ0lJZXhqSGw4VXl1Tll3RFFZSktvWklodmNOQVFFTEJRQXdGVEVUTUJFR0ExVUUKQXhNS2EzVmlaWEp1WlhSbGN6QWVGdzB5TkRBME1EZ3dOREUwTkRCYUZ3MHpOREEwTURZd05ERTVOREJhTUJVeApFekFSQmdOVkJBTVRDbXQxWW1WeWJtVjBaWE13Z2dFaU1BMEdDU3FHU0liM0RRRUJBUVVBQTRJQkR3QXdnZ0VLCkFvSUJBUURNUzZMNWtjM3RXbjVtLzhKelFCT2phWmpZSDgvalhEYzgvb1lUZ2lacHFMOEg3YjRWTThHVndJRU4KR3BnL3hITmRJMTFKQVl3Q01JeUlxY21GSFYwQVcxLzZTTW53OWpFejlubW1FTUsxdHp4OWwzVWNpY29JVkMwSwp2S203RkZxYVJiT2lvNVhwRHpvb3VZRndNTHJvdVkvTTB4OE1aQytjWXR6ZnRHd0xFeEVZU3FaT01zS0VqdWNWCkdhbFJBcnNrVENqSTNrU2hKUXArelAyK2dTNGRFcFRXT0VMV3BzWWJlWmJYSjg3eklmSnJDaVdRSndTSTZDRUgKZm05TGV0bkZPbTcrMVNmN3dWL0VHeWdnVkZCdWNNand4QnZBS25Nb2ZLbUtpbzdYWkRGWklza2xGV0h3MmYvVQp0YVQzTk1pdVFLU1BST09EMW1vZVI3QXE5aURyQWdNQkFBR2pXVEJYTUE0R0ExVWREd0VCL3dRRUF3SUNwREFQCkJnTlZIUk1CQWY4RUJUQURBUUgvTUIwR0ExVWREZ1FXQkJTdWhPQVZjdWlPZkNJeHBPOVJMZ1RQSVJZeEhEQVYKQmdOVkhSRUVEakFNZ2dwcmRXSmxjbTVsZEdWek1BMEdDU3FHU0liM0RRRUJDd1VBQTRJQkFRQnl5ZDZIMXkzeApqQVZQVURNaWxGZE1scWpKL2NQbjkySGxsZEpxN254WU9NZnNLNk00c251enZzMDg0NVF1YTY4eUNOMzZjOVMyCmFVcVdNOW5QdTZyQm1yc2JPd1hIdkR4ak9WQjdhQnRVTHJGS3BVY1J6RlJWOFRnVy93eWt5ajZkN0o3d01kdGoKWFREMGVkY1lqUk9DaWZKMytkL3R0a0R0aGpPTUpDMW5RajhjczV1K1JHNFE0OE9BcHJhVVpNK3NrQTllOWF0VwpUTnpoTmZWQlhjazRHL0cvV29vK0VSU2lWaUtKMHA5dUxmcitmSEpRYmxNbjZQYlpveFdmTWYwdC9YWVEySHJECnlXbEhoZVpOajZQWkxTVGFlSUs5dUtOOVBEMXE1TXJpRFFleE1xMmt2eFhIR3Y3WW9WT1JpZEJkUkZOcXZ0UTUKVFlVZVZyVXVIUURmCi0tLS0tRU5EIENFUlRJRklDQVRFLS0tLS0K
server: https://373E4EEE2395EA766C34D0254A46441D.gr7.us-east-2.eks.amazonaws.com
users:
- name: aws-developer
user:
exec:
apiVersion: client.authentication.k8s.io/v1beta1
args:
- --region
- us-east-2
- eks
- get-token
- --cluster-name
- fdr_dev_eks_cluster
- --output
- json
command: aws
env:
- name: AWS_PROFILE
value: fdr-dev
- name: aws-admin
user:
exec:
apiVersion: client.authentication.k8s.io/v1beta1
args:
- --region
- us-east-2
- eks
- get-token
- --cluster-name
- fdr_dev_eks_cluster
- --output
- json
command: aws
env:
- name: AWS_PROFILE
value: fdr-dev-admin
current-context: docker-desktop | 0 |
mono | /mono/Makefile | .PHONY: up down secrets env sqlx-check migrations rust-builder helm-update
ROOT_DIR:=$(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
# ----------------------------------------
# Bring Localstack Up
# ----------------------------------------
up:
tilt up
# ----------------------------------------
# Bring Localstack Down
# ----------------------------------------
down:
tilt down
# ----------------------------------------
# Generate Secrets
# ----------------------------------------
secrets:
mkdir -p .secrets
test -f ./.secrets/postgresql_username || echo 'trading' > ./.secrets/postgresql_username
test -f ./.secrets/postgresql_password || echo 'trading' > ./.secrets/postgresql_password
test -f ./.secrets/postgresql_test_username || echo 'trading-test' > ./.secrets/postgresql_test_username
test -f ./.secrets/postgresql_test_password || echo 'trading-test' > ./.secrets/postgresql_test_password
test -f ./.secrets/kraken_api_key || echo 'fillinfromkrakenaccount' > ./.secrets/kraken_api_key
test -f ./.secrets/kraken_api_secret || echo 'fillinfromkrakenaccount' > ./.secrets/kraken_api_secret
test -f ./.secrets/poloniex_api_key || echo 'fillinfrompoloaccount' > ./.secrets/poloniex_api_key
test -f ./.secrets/poloniex_api_secret || echo 'fillinfrompoloaccount' > ./.secrets/poloniex_api_secret
test -L helm/fdr-common/sym-secrets || ln -s ../../.secrets helm/fdr-common/sym-secrets
test -L helm/back-testing-service/sym-secrets || ln -s ../fdr-common/sym-secrets helm/back-testing-service/sym-secrets
test -L helm/proxy-poloniex/sym-secrets || ln -s ../fdr-common/sym-secrets helm/proxy-poloniex/sym-secrets
test -L helm/strat-triangular-arbitrage/sym-secrets || ln -s ../fdr-common/sym-secrets helm/strat-triangular-arbitrage/sym-secrets
test -L helm/proxy-kraken/sym-secrets || ln -s ../fdr-common/sym-secrets helm/proxy-kraken/sym-secrets
test -L helm/archive-service/sym-secrets || ln -s ../fdr-common/sym-secrets helm/archive-service/sym-secrets
test -L helm/indicator-service/sym-secrets || ln -s ../fdr-common/sym-secrets helm/indicator-service/sym-secrets
test -L helm/strat-market-maker/sym-secrets || ln -s ../fdr-common/sym-secrets helm/strat-market-maker/sym-secrets
test -L helm/postgresql-migrate/sym-secrets || ln -s ../fdr-common/sym-secrets helm/postgresql-migrate/sym-secrets
# ----------------------------------------
# Update Asset Catalog
# ----------------------------------------
catalog:
cd crates/catalog/resources && ./update_catalog.sh
# ----------------------------------------
# Generate Env File
# ----------------------------------------
define _script
ARCH=$(uname -m)
if [ "$ARCH" == "x86_64" ]; then
ARCH="amd64"
elif [ "$ARCH" == "arm64" ]; then
ARCH="aarch64"
else
echo "Unsupported architecture: $ARCH"
fi
cat <<EOF > .env
DATABASE_URL=postgres://trading:trading@localhost/trading
SQLX_OFFLINE=true
ARCH=$ARCH
EOF
endef
export script = $(value _script)
#run:; @ eval "$$script"
env:
test -f .env || eval "$$script"
test -f .envrc || cp .env .envrc
dirs:
mkdir -p .data/docker
mkdir -p .data/grafana
mkdir -p .data/prometheus
mkdir -p .data/redpanda
mkdir -p .data/postgresql
# ----------------------------------------
# Run Database Migrations
# ----------------------------------------
migrations:
sqlx migrate run --source migrations
# ----------------------------------------
# Validate SQLX Queries
# ----------------------------------------
sqlx-check:
cargo sqlx prepare --workspace --
# -------------------------------------------
# Build the sqlx-cli Docker image
# -------------------------------------------
docker-build-sqlx-cli:
DOCKER_BUILDKIT=1 docker buildx build -f docker/rust/sqlx-cli.Dockerfile . -t registry.gitlab.com/fdr-group/mono/sqlx-cli:latest
# -------------------------------------------
# Make docker builder for rust applications
# -------------------------------------------
rust-builder:
DOCKER_BUILDKIT=1 docker buildx build -f docker/rust/ci-builder.Dockerfile . -t registry.gitlab.com/fdr-group/mono/rust-builder:latest
# ----------------------------------------
# Compile Rust Applications in Docker
# ----------------------------------------
cargo-clean-docker:
DOCKER_BUILDKIT=1 docker builder prune --all --force
# ----------------------------------------
# Compile Rust Applications in Docker
# ----------------------------------------
pack-rust-docker-omnibus:
./scripts/docker-build-for-k8s.sh -o
# ----------------------------------------
# Compile Rust Applications in Docker
# ----------------------------------------
pack-rust-docker:
./scripts/docker-build-for-k8s.sh -p -b $(BINARY_NAME)
# ----------------------------------------
# Update Helm Charts
# ----------------------------------------
helm-update:
./scripts/helm-dep-build.sh
# ----------------------------------------
# Make Necessary Changes to Hosts File
# ----------------------------------------
hosts:
echo "127.0.0.1 redpanda-0" | sudo tee -a /etc/hosts > /dev/null
| 0 |
mono | /mono/rustfmt.toml | # Maximum width of each line.
# Default: 100
max_width = 120 | 0 |
mono | /mono/.dockerignore | **/node_modules
.env
./target/debug
./target/sqlx-tmp
| 0 |
mono | /mono/.aws | # TODO: Update to use a DevOps role once it is created
[profile state]
sso_start_url = https://fdrgroup.awsapps.com/start
sso_region = us-east-1
sso_account_id = 806085365067
sso_role_name = AdministratorAccess
region = us-east-2
output = json
[profile fdr-dev]
sso_start_url = https://fdrgroup.awsapps.com/start
sso_region = us-east-1
sso_account_id = 806085365067
sso_role_name = Developer
region = us-east-1
output = json
[profile fdr-dev-admin]
sso_start_url = https://fdrgroup.awsapps.com/start
sso_region = us-east-1
sso_account_id = 806085365067
sso_role_name = AdministratorAccess
region = us-east-1
output = json
| 0 |
mono | /mono/README.md | # Monorepo
---
The FDR monorepo contains a set of modules and services that work together to execute trading strategies.
## Getting started
### Prerequisites
- [Docker](https://docs.docker.com/get-docker/)
- [Tilt](https://docs.tilt.dev/install.html)
- [Kubectl](https://kubernetes.io/docs/tasks/tools/install-kubectl/)
- [Helm](https://helm.sh/docs/intro/install/)
- [K9S](https://k9scli.io/topics/install/)
- [kubectx](https://github.com/ahmetb/kubectx#manual-installation-macos-and-linux)
- [Postgresql-client](https://www.postgresql.org/download/)
You will also need a Kubernetes runtime... You can use:
- [Minikube](https://minikube.sigs.k8s.io/docs/start/)
- [Docker Desktop](https://docs.docker.com/desktop/kubernetes/).
If you are using Docker Desktop, you will need to enable Kubernetes in the settings.
- Make sure you are signed in to your docker account in the docker desktop client
- Click the settings cog icon in the top right corner of the client
- Click the "Kubernetes" tab on the left hand menu
- Check the "Enable Kubernetes" checkbox and wait for docker to do its thing.
If you are using Minikube, you will need to start it with `minikube start --driver=docker`.
### WSL
If you are using Windows Subsystem for Linux (WSL), you need to load a custom kernel with the `xt_recent` module.
Otherwise, services within k8s will be unreachable.
To do this, simply run:
```shell
./scripts/wsl-kernel.sh
```
This will build the kernel within docker (the output will persist in the directory: `.kernel`), and will copy it to the
Windows Host at: `C:\Users\All USers` (which is a symlink to `C:\ProgramData`).
Once it's complete, you need to tell WSL to use this kernel.
1. Copy the `.wslconfig` file manually from `./docker/wsl/.wslconfig` to your user's home directory in Windows
2. kill all WSL processes.
- Open Powershell and type: `wsl --shutdown`
- Type `wsl --list --running` to make sure all WSL processes are killed
3. open WSL again and run: `uname -ar`. You should now be running the FDR
kernel: `Linux DESKTOP-KQ29250 5.15.123.1-fdr-standard-WSL2+`
### Development Stack
---
The first thing you'll want to do is run:
```shell
make secrets
make hosts
make helm-update
```
and then populate the API keys for the exchanges you want to use. Simply open the files in: `./.secrets/` and fill
in your values, ensuring the files DO NOT end with a newline.
If you're using Minikube, you'll also have to bring that up:
```shell
minikube start --driver=docker --kubernetes-version=v1.27.0 --host-only-cidr="192.168.49.1/24 --memory 16384 --cpus 16"
```
With that out of the way, all that's needed to bring up the development stack is to run:
```shell
tilt up
```
The development stack will stand up the following services:
- Redpanda (a Kafka compatible message broker)
- Redpanda Console (a web UI for Redpanda)
- PostgreSQL (a relational database)
- Prometheus (a time series database)
- Grafana (a dashboard for Prometheus)
- Tempo (a distributed tracing system)
Grafana will be available at http://localhost:3000. The default username and password are both `fdr` and it will
be pre-provisioned with datasources and dashboards.
## Developing Against the Stack
1. Run: `make env` to create a `.env` file with the necessary environment variables
2. Run: `make secrets` to create a `.secrets` directory with the necessary secrets
3. Run: `tilt up` to bring up the core services
4. Create a run configuration in your IDE to launch your service
- Cargo Command: `run --bin proxy-jrajeb -- --config ./crates/exchange_proxy/src/bin/proxy-kraken/config-local.toml`
5. Run the service
6. Profit $$$
### Setting up test databases
1. Run the migrations if you haven't already `sqlx migrate run`
2. Run the import script `./test/database/import.sh`
This will set up some initial test balance accounts that are tied together. You can add additional accounts manually,
and adjust the balances of the existing accounts manually, as they are defaulted to zero balance.
### Checking Queries
I've used the `--merged` to keep a single `sqlx-data.json` in the root of the project. This seems easier
than `cd`'ing into each crate and running `cargo sqlx prepare -- --bin some-service` individually.
If you add queries and need to check them, run: `make sqlx-check`
### Dev Server Out of Space
1. SSH into the dev server
2. run `df -h` to see the disk usage for each volume
- `/data/redpanda` is likely to be full
- `/data/docker` is likely to be full
3. Stop the local stack (since we'll be deleting redpanda data)
- `cd ~/apps && docker-compose -f docker-compose.yaml -f docker-compose.ops.yaml --profile dev down`
4. For Redpanda:
- `sudo rm -rf /data/redpanda/data/*`
5. For Docker:
- `docker system prune -a`
| 0 |
.gitlab | /mono/.gitlab/.gitlab-docker-ci.yml | ###############################################################################
# BUILDER PIPELINE DEFINITION
###############################################################################
.ci-image-rules: &ci-image-rules
rules:
- if: !reference [ .is, scheduled ]
when: never
- if: !reference [ .is, tag ]
changes: !reference [ .is, ci-image ]
- if: !reference [ .is, default-branch ]
changes: !reference [ .is, ci-image ]
- if: !reference [ .is, merge-request ]
changes: !reference [ .is, ci-image ]
###############################################################################
# STAGE: RELEASE
###############################################################################
docker::release::builder:
<<: *ci-image-rules
stage: release
image:
name: gcr.io/kaniko-project/executor:v1.14.0-debug
entrypoint: [ "" ]
tags:
- rust
- amd64
needs: [ ]
script:
- /kaniko/executor
--context "${CI_PROJECT_DIR}"
--dockerfile "${CI_PROJECT_DIR}/docker/rust/ci-builder.Dockerfile"
--build-arg BINARY_LOCATION=apps/$SERVICE
--build-arg BINARY_NAME=$SERVICE
--destination $CI_REGISTRY_IMAGE/rust-builder:amd64-$CI_COMMIT_SHORT_SHA
--destination $CI_REGISTRY_IMAGE/rust-builder:latest
docker::release::base:
<<: *ci-image-rules
stage: release
image:
name: gcr.io/kaniko-project/executor:v1.14.0-debug
entrypoint: [ "" ]
tags:
- rust
- amd64
needs: [ ]
script:
- /kaniko/executor
--context "${CI_PROJECT_DIR}"
--dockerfile "${CI_PROJECT_DIR}/docker/rust/ci-base.Dockerfile"
--destination $CI_REGISTRY_IMAGE/fdr-service-base:amd64-$CI_COMMIT_SHORT_SHA
--destination $CI_REGISTRY_IMAGE/fdr-service-base:latest
docker::release::sqlx-cli:
<<: *ci-image-rules
stage: release
image:
name: gcr.io/kaniko-project/executor:v1.14.0-debug
entrypoint: [ "" ]
tags:
- rust
- amd64
needs: [ ]
script:
- /kaniko/executor
--context "${CI_PROJECT_DIR}"
--dockerfile "${CI_PROJECT_DIR}/docker/rust/sqlx-cli.Dockerfile"
--destination $CI_REGISTRY_IMAGE/sqlx-cli:amd64-$CI_COMMIT_SHORT_SHA
--destination $CI_REGISTRY_IMAGE/sqlx-cli:latest
| 0 |
.gitlab | /mono/.gitlab/.gitlab-change-rules-ci.yml | ###############################################################################
# DEFINE CHANGES AND RULES FOR CI PIPELINES
###############################################################################
.is:
default-branch: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
merge-request: $CI_PIPELINE_SOURCE == "merge_request_event"
tag: $CI_COMMIT_TAG =~ /^v\d+\.\d+\.\d+.*$/
source-change:
- ".cargo/**/*"
- ".sqlx/**/*"
- "crates/**/*"
- "docker/**/*"
- "migrations/**/*"
- "**/*.toml"
- "**/*.lock"
- "Makefile"
ci-image:
- "docker/rust/ci-base.Dockerfile"
- "docker/rust/ci-builder.Dockerfile"
scheduled: $CI_PIPELINE_SOURCE == "schedule"
infra-change:
- "**/*.tf"
- .terraform.lock.hcl | 0 |
.gitlab | /mono/.gitlab/.gitlab-general-ci.yml | stages:
- check
check::aws:
stage: check
image: docker
script:
- echo $ECR_REGISTRY_ADD
- printenv | grep AWS_ > aws.env
- docker login -p $CI_REGISTRY_PASSWORD -u $CI_REGISTRY_USER registry.gitlab.com
- docker run --rm --env-file ./aws.env amazon/aws-cli ecr get-login-password | 0 |
.gitlab | /mono/.gitlab/.gitlab-makedeb-ci.yml | stages:
build
.only-makedeb: &only-makedeb
rules:
- changes:
paths:
- "infra/debpkgs/**/*"
makedeb::build:
image: registry.gitlab.com/fdr-group/mono/ci/makedeb
stage: build
tags:
- aarch64
<<: *only-makedeb
needs: [ ]
parallel:
matrix:
- PKGDIR:
- infra/debpkgs/node_exporter
script:
- cd $PKGDIR
- makedeb
artifacts:
paths:
- $PKGDIR/*.deb
expire_in: 1 hour
# TODO: Push the compiled deb files to a distribution point like an S3 bucket | 0 |
.gitlab | /mono/.gitlab/.gitlab-rust-ci.yml | ###############################################################################
# RUST PIPELINE DEFINITION
###############################################################################
# jobs that use this anchor will always run on main / tag pipelines but will only run on merge request pipelines
# if there are changes in the source code
.source-code-rules: &source-code-rules
rules:
- if: !reference [ .is, scheduled ]
when: never
- if: !reference [ .is, tag ]
- if: !reference [ .is, default-branch ]
- if: !reference [ .is, merge-request ]
changes: !reference [ .is, source-change ]
.build-and-release-rules: &build-and-release-rules
rules:
- if: !reference [ .is, scheduled ]
when: never
- if: !reference [ .is, tag ]
- if: !reference [ .is, default-branch ]
- if: !reference [ .is, merge-request ]
when: manual
# special rules for audit to run it on source-code-rules + scheduled ($CI_PIPELINE_SOURCE == "schedule"
.audit-rules: &audit-rules
rules:
- if: !reference [ .is, scheduled ]
- if: !reference [ .is, tag ]
- if: !reference [ .is, default-branch ]
- if: !reference [ .is, merge-request ]
changes: !reference [ .is, source-change ]
###############################################################################
# STAGE: CHECK
###############################################################################
rust::check::fmt:
<<: *source-code-rules
image: registry.gitlab.com/fdr-group/mono/rust-builder:latest
stage: check
tags:
- rust
- amd64
needs: [ ]
script:
- cargo fmt -- --config imports_granularity=crate
rust::check::clippy:
<<: *source-code-rules
image: registry.gitlab.com/fdr-group/mono/rust-builder:latest
stage: check
tags:
- rust
- amd64
needs: [ ]
script:
- cargo clippy --all-targets --all-features -- -D warnings
rust::check::udeps:
<<: *source-code-rules
image: registry.gitlab.com/fdr-group/mono/rust-builder:latest
stage: check
tags:
- rust
- amd64
needs: [ ]
script:
- cargo +nightly udeps --all-targets --all-features
rust::check::audit:
<<: *audit-rules
image: registry.gitlab.com/fdr-group/mono/rust-builder:latest
stage: check
allow_failure: true
tags:
- rust
- amd64
needs: [ ]
script:
- cargo-audit audit --json > audit.json
after_script:
- >
cat audit.json | jq -c '.vulnerabilities.list[] | {id: .advisory.id, package: .advisory.package, title: .advisory.title, description: .advisory.description}' | while IFS= read -r data; do
id=$(echo "$data" | jq -r '.id')
curl -X POST -H 'Content-Type: application/json' -d "$data" "$ZAPIER_CARGO_AUDIT_WEBHOOK_URL"
echo "Posted data to Zapier for: #$id"
done
artifacts:
paths:
- audit.json
###############################################################################
# STAGE: TEST
###############################################################################
rust::test:
<<: *source-code-rules
image: registry.gitlab.com/fdr-group/mono/rust-builder:latest
stage: test
tags:
- rust
- amd64
needs: [ ]
script:
- cargo test --all-features --no-fail-fast
###############################################################################
# STAGE: BUILD
###############################################################################
rust::build::amd64:
<<: *build-and-release-rules
image: registry.gitlab.com/fdr-group/mono/rust-builder:latest
stage: build
allow_failure: true # required on optional jobs
tags:
- rust
- amd64
needs: [ ]
cache:
paths:
- .cargo
before_script:
- export CARGO_HOME="${PWD}/.cargo"
script:
- SQLX_OFFLINE=true cargo build --release
- mkdir -p apps
- cp target/release/proxy-kraken apps/proxy-kraken
- cp target/release/proxy-poloniex apps/proxy-poloniex
- cp target/release/strategy-manager apps/strategy-manager
- cp target/release/archive-service apps/archive-service
- cp target/release/indicator-service apps/indicator-service
artifacts:
paths:
- apps/strategy-manager
- apps/proxy-kraken
- apps/proxy-poloniex
- apps/archive-service
- apps/indicator-service
expire_in: 1 hour
###############################################################################
# STAGE: RELEASE
###############################################################################
rust::release::amd64:
<<: *build-and-release-rules
stage: release
allow_failure: true # required on optional jobs
image:
name: gcr.io/kaniko-project/executor:v1.14.0-debug
entrypoint: [ "" ]
tags:
- rust
- amd64
needs: [ rust::build::amd64 ]
dependencies:
- rust::build::amd64
parallel:
matrix:
- SERVICE: strategy-manager
- SERVICE: proxy-kraken
- SERVICE: proxy-poloniex
- SERVICE: archive-service
- SERVICE: indicator-service
script:
- /kaniko/executor
--context "${CI_PROJECT_DIR}"
--dockerfile "${CI_PROJECT_DIR}/docker/rust/ci-release.Dockerfile"
--build-arg BINARY_LOCATION=apps/$SERVICE
--build-arg BINARY_NAME=$SERVICE
--destination $CI_REGISTRY_IMAGE/rs/$SERVICE:amd64-$(date +"%y%m%d%H%M%S")-$CI_COMMIT_SHORT_SHA | 0 |
.gitlab | /mono/.gitlab/.gitlab-terraform-ci.yml | ###############################################################################
# INFRA PIPELINE DEFINITION
###############################################################################
# jobs that use this anchor will always run on main / tag pipelines but will only run on merge request pipelines
# if there are changes in the source code
.terraform-rules: &terraform-rules
rules:
- if: !reference [ .is, scheduled ]
when: never
- if: !reference [ .is, tag ]
- if: !reference [ .is, default-branch ]
- if: !reference [ .is, merge-request ]
changes: !reference [ .is, infra-change ]
###############################################################################
# STAGE: LINT
###############################################################################
terraform::validate:
image: "$CI_TEMPLATE_REGISTRY_HOST/gitlab-org/terraform-images/stable:latest"
stage: lint
needs: [ ]
script:
- terraform -chdir=infra/envs/dev init -backend=false
- terraform -chdir=infra/envs/dev validate
<<: *terraform-rules
terraform::fmt:
image: "$CI_TEMPLATE_REGISTRY_HOST/gitlab-org/terraform-images/stable:latest"
stage: lint
needs: [ ]
script:
- terraform -chdir=infra/envs/dev fmt --check
- 'find infra/modules/ -mindepth 1 -maxdepth 1 | xargs -I {} sh -c "echo \"Format check: {}\" && terraform -chdir={} fmt --check"'
<<: *terraform-rules
| 0 |
.secrets | /mono/.secrets/postgresql_username | trading
| 0 |
.secrets | /mono/.secrets/postgresql_test_password | trading-test
| 0 |
.secrets | /mono/.secrets/postgresql_test_username | trading-test
| 0 |
.secrets | /mono/.secrets/kraken_api_secret | fillinfromkrakenaccount
| 0 |
.secrets | /mono/.secrets/kraken_api_key | fillinfromkrakenaccount
| 0 |
.secrets | /mono/.secrets/poloniex_api_key | fillinfrompoloaccount
| 0 |
.secrets | /mono/.secrets/poloniex_api_secret | fillinfrompoloaccount
| 0 |
.secrets | /mono/.secrets/.gitkeep | 0 |
|
.secrets | /mono/.secrets/postgresql_password | trading
| 0 |
database | /mono/test/database/strat_runs.sql | INSERT INTO public.strat_runs (id, strat_id, name, meta) VALUES ('90d99ddf-ba11-480e-9a31-792670745053', '80e28dec-ba11-481f-1c32-792570742054', 'Market Maker DOTUSD', null);
INSERT INTO public.strat_runs (id, strat_id, name, meta) VALUES ('80d99ddf-ba11-480e-9a31-792670745053', '80e28dec-ba11-481f-1c32-792570742054', 'Market Maker ETHUSD', null);
INSERT INTO public.strat_runs (id, strat_id, name, meta) VALUES ('426688f0-387d-4293-8a74-030bd7707380', '5c6897f9-258f-4ae0-a044-ecd1db996493', 'Tri Arb', null);
| 0 |
database | /mono/test/database/strategies.sql | INSERT INTO public.strategies (id, name) VALUES ('80e28dec-ba11-481f-1c32-792570742054', 'MARKET_MAKER_ON_TICKER');
INSERT INTO public.strategies (id, name) VALUES ('5c6897f9-258f-4ae0-a044-ecd1db996493', 'TRIANGULAR_ARBITRAGE');
| 0 |
database | /mono/test/database/import.sh | #!/bin/bash
# Define variables
POSTGRES_USER="trading-test"
POSTGRES_PASSWORD="trading-test"
DATABASE_NAME="trading-test"
BALANCE_ACCOUNTS="test/database/balance_accounts.sql"
STRAT_BALANCE_ACCOUNTS="test/database/strat_balance_accounts.sql"
STRAT_RUNS="test/database/strat_runs.sql"
VIRTUAL_BALANCE_ACCOUNTS="test/database/virtual_balance_accounts.sql"
STRATEGIES="test/database/strategies.sql"
main() {
import_test_dbs
}
import_test_dbs() {
# Run the import command inside the PostgreSQL container
echo "Importing test databases..."
echo "Importing balance_accounts.sql..."
PGPASSWORD="$POSTGRES_PASSWORD" psql -h localhost -p 5432 -U "$POSTGRES_USER" -d "$DATABASE_NAME" -f "$BALANCE_ACCOUNTS"
echo "Importing virtual_balance_accounts.sql..."
PGPASSWORD="$POSTGRES_PASSWORD" psql -h localhost -p 5432 -U "$POSTGRES_USER" -d "$DATABASE_NAME" -f "$VIRTUAL_BALANCE_ACCOUNTS"
echo "Importing strat_balance_accounts.sql..."
PGPASSWORD="$POSTGRES_PASSWORD" psql -h localhost -p 5432 -U "$POSTGRES_USER" -d "$DATABASE_NAME" -f "$STRAT_BALANCE_ACCOUNTS"
echo "Importing strategies.sql..."
PGPASSWORD="$POSTGRES_PASSWORD" psql -h localhost -p 5432 -U "$POSTGRES_USER" -d "$DATABASE_NAME" -f "$STRATEGIES"
echo "Importing strat_runs.sql..."
PGPASSWORD="$POSTGRES_PASSWORD" psql -h localhost -p 5432 -U "$POSTGRES_USER" -d "$DATABASE_NAME" -f "$STRAT_RUNS"
}
main "$@"
| 0 |
database | /mono/test/database/virtual_balance_accounts.sql | INSERT INTO public.virtual_balance_accounts (id, account_id, account_status, asset, amount, available, created_at)
VALUES ('40e22dec-ba11-481f-1c32-982570742054', '23e28dec-ba11-481f-1c32-792570742054', 'ACTIVE', 'DOT', 0, 0,
'2024-03-27 15:52:59.196000 +00:00');
INSERT INTO public.virtual_balance_accounts (id, account_id, account_status, asset, amount, available, created_at)
VALUES ('50e32cec-ba11-481f-1c32-232570742054', '12e28dec-ba11-481f-1c32-322570742054', 'ACTIVE', 'USD', 0, 0,
'2024-03-27 15:55:16.985000 +00:00');
INSERT INTO public.virtual_balance_accounts (id, account_id, account_status, asset, amount, available, created_at)
VALUES ('70d42ddf-ca12-450f-7a32-892630744052', '23e28dec-ba11-481f-1c32-322570742043', 'ACTIVE', 'ETH', 0, 0,
'2024-03-28 17:47:13.739000 +00:00');
INSERT INTO public.virtual_balance_accounts (id, account_id, account_status, asset, amount, available, created_at)
VALUES ('24e28dec-cb12-541e-2d43-322570742034', '12e28dec-ba11-481f-1c32-322570742054', 'ACTIVE', 'USD', 0, 0,
'2024-03-28 17:55:21.257000 +00:00');
INSERT INTO public.virtual_balance_accounts (id, account_id, account_status, asset, amount, available, created_at)
VALUES ('0124dc63-4a75-401e-8e35-25f14fc51b0b', '12e28dec-ba11-481f-1c32-322570742054', 'ACTIVE', 'USD', 0, 0,
'2024-04-08 15:59:41.575000 +00:00');
| 0 |
database | /mono/test/database/strat_balance_accounts.sql | INSERT INTO public.strat_balance_accounts (strat_run_id, vba_id) VALUES ('90d99ddf-ba11-480e-9a31-792670745053', '40e22dec-ba11-481f-1c32-982570742054');
INSERT INTO public.strat_balance_accounts (strat_run_id, vba_id) VALUES ('90d99ddf-ba11-480e-9a31-792670745053', '50e32cec-ba11-481f-1c32-232570742054');
INSERT INTO public.strat_balance_accounts (strat_run_id, vba_id) VALUES ('80d99ddf-ba11-480e-9a31-792670745053', '24e28dec-cb12-541e-2d43-322570742034');
INSERT INTO public.strat_balance_accounts (strat_run_id, vba_id) VALUES ('80d99ddf-ba11-480e-9a31-792670745053', '70d42ddf-ca12-450f-7a32-892630744052');
INSERT INTO public.strat_balance_accounts (strat_run_id, vba_id) VALUES ('426688f0-387d-4293-8a74-030bd7707380', '0124dc63-4a75-401e-8e35-25f14fc51b0b');
| 0 |
database | /mono/test/database/balance_accounts.sql | INSERT INTO public.balance_accounts (id, asset, amount) VALUES ('23e28dec-ba11-481f-1c32-792570742054', 'DOT', 0);
INSERT INTO public.balance_accounts (id, asset, amount) VALUES ('12e28dec-ba11-481f-1c32-322570742054', 'USD', 0);
INSERT INTO public.balance_accounts (id, asset, amount) VALUES ('23e28dec-ba11-481f-1c32-322570742043', 'ETH', 0);
| 0 |
.cargo | /mono/.cargo/audit.toml | [advisories]
ignore = [
"RUSTSEC-2021-0145", # `rsa` no update path
"RUSTSEC-2023-0071", # `rsa` no update path
]
[output]
quiet = false
deny = ["warnings"] | 0 |
.cargo | /mono/.cargo/config | [alias]
ci-check = "check --all --all-targets --all-features"
ci-clippy = "clippy --all --all-targets --all-features -- -Dwarnings -Drust-2018-idioms"
ci-format = "fmt --all -- --config imports_granularity=crate --check"
[build]
rustflags = ["--cfg", "tokio_unstable"]
rustdocflags = ["--cfg", "tokio_unstable"]
# In case `~/.cargo/config` has `target.<triple>.rustflags` overrides.
[target.aarch64-apple-darwin]
rustflags = ["--cfg", "tokio_unstable"]
[target.x86_64-apple-darwin]
rustflags = ["--cfg", "tokio_unstable"]
[target.x86_64-unknown-linux-gnu]
rustflags = ["--cfg", "tokio_unstable"] | 0 |
infra | /mono/infra/.gitignore | # Local files used to track Makefile changes
.sync/
!.sync/READMD.md
# Ignore backup config files
*.backup.yaml
# Secrets
secrets/
!secrets/README.md | 0 |
infra | /mono/infra/Makefile |
.PHONY: clean docs sync
clean:
find .sync/* ! -name README.md -exec rm {} \;
docs:
find modules/ -name main.tf -printf '%h\n' | xargs -I {} sh -c "docker run --rm --volume \"${PWD}/{}:/terraform-docs\" quay.io/terraform-docs/terraform-docs:0.16.0 markdown /terraform-docs > {}/README.md"
###############################################################################
# Sync files to the remote dev server
###############################################################################
sync: .sync/docker-compose .sync/docker-compose-ops .sync/redpanda .sync/console .sync/prometheus .sync/promtail
.sync/docker-compose: docker-compose.yaml
rsync fdr-dev:~/apps/docker-compose.yaml docker-compose.backup.yaml || echo "Nothing to backup..."
rsync docker-compose.yaml fdr-dev:~/apps/docker-compose.yaml
date +%s > .sync/docker-compose
.sync/docker-compose-ops: docker-compose.ops.yaml
rsync fdr-dev:~/apps/docker-compose.ops.yaml docker-compose.ops.backup.yaml || echo "Nothing to backup..."
rsync docker-compose.ops.yaml fdr-dev:~/apps/docker-compose.ops.yaml
date +%s > .sync/docker-compose-ops
.sync/redpanda: services/redpanda/redpanda.yaml
rsync --rsync-path 'sudo -u redpanda rsync' services/redpanda/* fdr-dev:/etc/redpanda/
date +%s > .sync/redpanda
.sync/console: services/console/config.yaml
rsync --rsync-path 'sudo -u console rsync' services/console/* fdr-dev:/etc/redpanda-console/
date +%s > .sync/console
.sync/prometheus: services/prometheus/prometheus.dev.yml
rsync -az --mkpath services/prometheus/prometheus.dev.yml fdr-dev:~/apps/etc/prometheus/prometheus.yml
date +%s > .sync/prometheus
.sync/postgres: services/postgresql/init.sql
rsync -az services/postgresql/ fdr-dev:~/apps/etc/postgresql/
date +%s > .sync/postgresql
.sync/tempo: services/tempo/config.yaml
rsync -az services/tempo/ fdr-dev:~/apps/etc/tempo/
date +%s > .sync/tempo
.sync/grafana: services/grafana/*
rsync --rsync-path 'sudo -u grafana rsync' services/grafana/ fdr-dev:/etc/grafana/
date +%s > .sync/grafana
.sync/promtail: services/promtail/*
rsync -az --mkpath services/promtail/ fdr-dev:~/apps/etc/promtail/
date +%s > .sync/promtail
.sync/secrets: secrets/*
rsync -az secrets/ fdr-dev:~/apps/secrets/
date +%s > .sync/secrets | 0 |
infra | /mono/infra/docker-compose.yaml | version: "3.9"
services:
strat-market-makers:
profiles: ["dev"]
image: registry.gitlab.com/fdr-group/mono/rs/market-makers:aarch64-346737ea
labels:
"com.fdr.logging": promtail
environment:
- RUST_LOG=info
container_name: market-makers
volumes:
- type: bind
source: ${PWD}/etc/market-makers/config.toml
target: /app/config.toml
restart: unless-stopped
proxy-kraken:
profiles: ["dev"]
image: registry.gitlab.com/fdr-group/mono/rs/kraken-proxy:aarch64-346737ea
labels:
"com.fdr.logging": promtail
environment:
- RUST_LOG=info
volumes:
- type: bind
source: ${PWD}/etc/kraken-proxy/config.toml
target: /app/config.toml
- type: bind
source: ${PWD}/secrets
target: /app/.secrets
restart: unless-stopped
proxy-poloniex:
profiles: ["dev"]
image: registry.gitlab.com/fdr-group/mono/rs/poloniex-proxy:aarch64-346737ea
labels:
"com.fdr.logging": promtail
environment:
- RUST_LOG=info
volumes:
- type: bind
source: ${PWD}/etc/poloniex-proxy/config.toml
target: /app/config.toml
- type: bind
source: ${PWD}/secrets
target: /app/.secrets
restart: unless-stopped
| 0 |
infra | /mono/infra/README.md | # Infrastructure
This directory contains the configuration for the infrastructure and operational workloads that support the FDR system.
This include the provisioning of servers and networks, database configrations, and general tuning.
## Structure
```
infra/
βββ envs
β βββ Different infrastructure environments (dev, prod)
βββ modules
β βββ Reusable Terraform modules!
βββ pubkeys
β βββ Public keys for access to infra
βββ services
βββ Configuration for third party services we run
```
## Accessing Remote Service
To access remote service add the following to your `~/.ssh/config`
```
Host *
IdentityFile ~/.ssh/id_ed25519
ForwardAgent no
Host fdr-dev
HostName 18.235.23.97
User ubuntu
LocalForward 8080 localhost:8080 # Redpanda
```
Then open port forwards by connecting to the remote instance via `ssh fdr-dev`, or run
```bash
ssh \
-L 3000:localhost:3000 \
-L 8080:localhost:8080 \
-L 9090:localhost:9090 \
fdr-dev
```
### Links
- [Redpanda](http://localhost:8080)
- [Prometheus](http://localhost:9090) | 0 |
infra | /mono/infra/docker-compose.ops.yaml | version: "3.9"
secrets:
grafana_cloud_prometheus_api_key:
file: ./secrets/grafana_cloud_prometheus_api_key
grafana_cloud_loki_api_key:
file: ./secrets/grafana_cloud_loki_api_key
volumes:
# TODO: Create a mounted volume to store Prom data or move Prom to a managed DB
postgres_data: {}
services:
postgres:
profiles: [ "local" ]
image: postgres:15.1-alpine
container_name: postgres
restart: unless-stopped
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
- type: bind
source: ${PWD}/etc/postgresql/init.sql
target: /docker-entrypoint-initdb.d/init.sql
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U postgres" ]
interval: 5s
timeout: 5s
retries: 5
redpanda:
profiles: [ "dev" ]
image: docker.redpanda.com/vectorized/redpanda:v22.3.8
user: 201:201 # redpanda:redpanda
command:
- redpanda start
# Tells Seastar (the framework Redpanda uses under the hood)
# to use 1 core on the system.
- --smp 2
# The amount of memory to make available to Redpanda.
- --memory 500M
# The amount of memory that's left for the Seastar subsystem.
# For development purposes this is set to 0.
- --reserve-memory 0M
# Redpanda won't assume it has all of the provisioned CPU
# (to accommodate Docker resource limitations).
- --overprovisioned
ports:
- 18081:8081 # Schema registry port
- 18082:18082 # Pandaproxy port
- 19092:19092 # Kafka API port
- 19644:9644 # Prometheus and HTTP admin port
volumes:
- type: bind
source: /etc/redpanda/
target: /etc/redpanda/
- type: bind
source: /data/redpanda/
target: /data/redpanda/
console:
profiles: [ "dev" ]
image: docker.redpanda.com/vectorized/console:v2.1.1
user: 202:202 # console:console
environment:
CONFIG_FILEPATH: /etc/redpanda-console/config.yaml
ports:
- 8080:8080
depends_on:
- redpanda
volumes:
- type: bind
source: /etc/redpanda-console/
target: /etc/redpanda-console/
grafana:
profiles: [ "dev" ]
image: grafana/grafana-oss:9.3.2
user: 204:204 # grafana:grafana
labels:
"com.fdr.logging": promtail
volumes:
- type: bind
source: /data/grafana
target: /var/lib/grafana
environment:
- GF_AUTH_DISABLE_LOGIN_FORM=true
- GF_AUTH_ANONYMOUS_ENABLED=true
- GF_AUTH_ANONYMOUS_ORG_ROLE=Admin
expose:
- "3000"
ports:
- "3000:3000"
prometheus:
profiles: [ "dev" ]
image: prom/prometheus:v2.41.0
user: 203:203 # prometheus:prometheus
volumes:
- type: bind
source: ${PWD}/etc/prometheus
target: /etc/prometheus
- type: bind
source: /data/prometheus
target: /prometheus
secrets:
- grafana_cloud_prometheus_api_key
extra_hosts:
- "host.docker.internal:host-gateway"
ports:
- 9090:9090
promtail:
profiles: [ "dev" ]
image: grafana/promtail:2.8.2
command: -config.file=/etc/promtail/promtail.yml
#user: 205:205 # promtail:promtail
restart: always
volumes:
- ./etc/promtail:/etc/promtail
- /var/run/docker.sock:/var/run/docker.sock
- /data/docker/containers:/data/docker/containers:ro
secrets:
- grafana_cloud_loki_api_key
tempo:
profiles: [ "dev" ]
image: grafana/tempo:latest
container_name: tempo
restart: unless-stopped
command: [ "-config.file=/etc/tempo.yaml" ]
volumes:
- type: bind
source: ${PWD}/etc/tempo/config.yaml
target: /etc/tempo.yaml
ports:
- "14268:14268" # jaeger ingest
- "3200:3200" # tempo
- "4317:4317" # otlp grpc
- "4318:4318" # otlp http
- "9411:9411" # zipkin
| 0 |
.sync | /mono/infra/.sync/README.md | This directory contains temporary files to be used by make to track make targets and determine the last time a file was
synced. Make doesn't actually look at the contents of the file and only checks the last updated time. | 0 |
debpkgs | /mono/infra/debpkgs/README.md | # Deb Pkgs
This directory is used to manage and build custom Debian packages for tools that either don't distribute Debian
installers or that we would like to customize the installation of.
This directory user `makedeb` to build Debian package. Makedeb is based on Arch's makepkg and uses the same PKGBUILD
- https://docs.makedeb.org/makedeb/pkgbuild-syntax/
| 0 |
node_exporter | /mono/infra/debpkgs/node_exporter/PKGBUILD | # This PKGBUILD is used to build a deb for node_exporter. Based on
# https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=prometheus-node-exporter-bin
# Maintainer: Dawson <[email protected]>
pkgname=node_exporter
pkgver=1.5.0
pkgrel=1
pkgdesc='Exporter for machine metrics'
arch=('amd64' 'arm64')
depends=()
provides=('node_exporter')
conflicts=('node_exporter')
url='https://github.com/prometheus/node_exporter'
license=('Apache')
source_amd64=("${url}/releases/download/v${pkgver}/${pkgname}-${pkgver}.linux-amd64.tar.gz" 'node-exporter.service')
sha256sums_amd64=('af999fd31ab54ed3a34b9f0b10c28e9acee9ef5ac5a5d5edfdde85437db7acbb'
'548c6a29163d796b49c6a70144e6e9a73f1ba7698f7b884737f3c4b0abeab2be')
source_arm64=("${url}/releases/download/v${pkgver}/${pkgname}-${pkgver}.linux-arm64.tar.gz" 'node-exporter.service')
sha256sums_arm64=('e031a539af9a619c06774788b54c23fccc2a852d41437315725a086ccdb0ed16'
'548c6a29163d796b49c6a70144e6e9a73f1ba7698f7b884737f3c4b0abeab2be')
package() {
ARCH=$(uname -m)
if [ "$ARCH" == "x86_64" ]; then
ARCH="amd64"
elif [ "$ARCH" == "aarch64" ]; then
ARCH="arm64"
fi
cd "${srcdir}/${pkgname}-${pkgver}.linux-${ARCH}"
# Install the binary
install -D -m0755 "${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
# Install systemd service file
install -D -m0644 "${srcdir}/node-exporter.service" "${pkgdir}/usr/lib/systemd/system/node-exporter.service"
}
post_install() {
sudo useradd --system node_exporter
sudo chown node_exporter:node_exporter "${pkgdir}/usr/bin/${pkgname}"
}
| 0 |
node_exporter | /mono/infra/debpkgs/node_exporter/node-exporter.service | [Unit]
Description=Exporter for machine metrics
After=network.target
[Service]
User=node_exporter
Group=node_exporter
ExecStart=/usr/bin/node_exporter
[Install]
WantedBy=multi-user.target
| 0 |
ci-user | /mono/infra/modules/ci-user/main.tf |
variable "ecr_repository_arns" {
type = list(string)
description = "The ARN of the ECR repository images will be pushed to."
}
# TODO: Apply a permission boundary that limits this user to only be used as a service account
resource "aws_iam_user" "ci" {
name = "ci-user"
path = "/fdr/"
# Ignore tag changes that are used to keep track of IAM cred descriptions
lifecycle {
ignore_changes = [tags]
}
}
resource "aws_iam_user_policy" "ci" {
user = aws_iam_user.ci.name
policy = data.aws_iam_policy_document.ci.json
}
# https://docs.aws.amazon.com/AmazonECR/latest/userguide/security_iam_id-based-policy-examples.html#security_iam_id-based-policy-examples-access-one-bucket
data "aws_iam_policy_document" "ci" {
statement {
effect = "Allow"
actions = ["ecr:GetAuthorizationToken"]
resources = ["*"]
}
statement {
effect = "Allow"
actions = [
"ecr:ListImages",
"ecr:BatchCheckLayerAvailability",
"ecr:GetDownloadUrlForLayer",
"ecr:GetRepositoryPolicy",
"ecr:DescribeRepositories",
"ecr:ListImages",
"ecr:DescribeImages",
"ecr:BatchGetImage",
"ecr:InitiateLayerUpload",
"ecr:UploadLayerPart",
"ecr:CompleteLayerUpload",
"ecr:PutImage",
]
resources = var.ecr_repository_arns
}
}
| 0 |
ci-user | /mono/infra/modules/ci-user/README.md | ## Requirements
No requirements.
## Providers
| Name | Version |
|------|---------|
| <a name="provider_aws"></a> [aws](#provider\_aws) | n/a |
## Modules
No modules.
## Resources
| Name | Type |
|------|------|
| [aws_iam_user.ci](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_user) | resource |
| [aws_iam_user_policy.ci](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_user_policy) | resource |
| [aws_iam_policy_document.ci](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_policy_document) | data source |
## Inputs
| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| <a name="input_ecr_repository_arns"></a> [ecr\_repository\_arns](#input\_ecr\_repository\_arns) | The ARN of the ECR repository images will be pushed to. | `list(string)` | n/a | yes |
## Outputs
No outputs.
| 0 |
vpc | /mono/infra/modules/vpc/main.tf | terraform {
required_version = ">= 1.5.0"
required_providers {
aws = {
source = "hashicorp/aws"
version = ">= 4.0"
}
}
}
resource "aws_vpc" "vpc" {
cidr_block = var.cidr_block
tags = var.tags
lifecycle {
prevent_destroy = true
}
}
resource "aws_subnet" "default" {
vpc_id = aws_vpc.vpc.id
cidr_block = cidrsubnet(var.cidr_block, 8, 1)
tags = var.tags
}
resource "aws_internet_gateway" "default" {
vpc_id = aws_vpc.vpc.id
tags = var.tags
}
resource "aws_route_table" "default" {
vpc_id = aws_vpc.vpc.id
route {
cidr_block = "0.0.0.0/0"
gateway_id = aws_internet_gateway.default.id
}
tags = var.tags
}
resource "aws_route_table_association" "default" {
subnet_id = aws_subnet.default.id
route_table_id = aws_route_table.default.id
}
| 0 |
vpc | /mono/infra/modules/vpc/variables.tf |
variable "cidr_block" {
description = "The VPC CIDR block. All other internal blocks are derrived"
validation {
condition = can(regex("10\\.\\d+\\.0\\.0/16", var.cidr_block))
error_message = "The CIDR block must be a 10.x block allocating a \\16."
}
}
variable "tags" {
default = {}
type = map(string)
description = "Tags to apply to all resources created in the module"
} | 0 |
vpc | /mono/infra/modules/vpc/outputs.tf | output "vpc_id" {
value = aws_vpc.vpc.id
description = "The ID of the VPC created"
}
output "default_subnet_id" {
value = aws_subnet.default.id
description = "The default subnet ID"
} | 0 |
vpc | /mono/infra/modules/vpc/README.md | ## Requirements
| Name | Version |
|------|---------|
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | ~> 4.0 |
## Providers
| Name | Version |
|------|---------|
| <a name="provider_aws"></a> [aws](#provider\_aws) | ~> 4.0 |
## Modules
No modules.
## Resources
| Name | Type |
|------|------|
| [aws_internet_gateway.default](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/internet_gateway) | resource |
| [aws_route_table.default](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/route_table) | resource |
| [aws_route_table_association.default](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/route_table_association) | resource |
| [aws_subnet.default](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/subnet) | resource |
| [aws_vpc.vpc](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/vpc) | resource |
## Inputs
| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| <a name="input_cidr_block"></a> [cidr\_block](#input\_cidr\_block) | The VPC CIDR block. All other internal blocks are derrived | `any` | n/a | yes |
| <a name="input_tags"></a> [tags](#input\_tags) | Tags to apply to all resources created in the module | `map(string)` | `{}` | no |
## Outputs
| Name | Description |
|------|-------------|
| <a name="output_default_subnet_id"></a> [default\_subnet\_id](#output\_default\_subnet\_id) | The default subnet ID |
| <a name="output_vpc_id"></a> [vpc\_id](#output\_vpc\_id) | The ID of the VPC created |
| 0 |
tf-state | /mono/infra/modules/tf-state/main.tf | /**
This module creates an AWS S3 bucket, KMS key, and DynamoDB table used to manage the Terraform state and should be
used for all Terraform state. This module currently creates the basic resources required to store state, but in the
future this module can be extended to include role based access controls to state.
*/
terraform {
required_version = ">= 1.5.0"
required_providers {
aws = {
source = "hashicorp/aws"
version = ">= 4.0"
}
}
}
# A random string is used because AWS S3 bucket names must be globally unique. This ensure there are no collisions and
# any default DNS records created for interacting with the bucket do not imply it's usage.
resource "random_string" "state-name" {
length = 16
special = false
upper = false
}
locals {
state-name = "tf-${random_string.state-name.result}"
}
# TODO: Apply a resource policy to the S3 bucket to limit access to a specific set of users
resource "aws_s3_bucket" "state" {
bucket = local.state-name
tags = {
Name = var.name
}
}
resource "aws_s3_bucket_acl" "state" {
bucket = aws_s3_bucket.state.id
acl = "private"
}
# TODO: Apply a resource policy to the KMS key to limit access to a specific set of users
resource "aws_kms_key" "state" {
description = "This key is used to encrypt the FDR dev state bucket."
}
resource "aws_kms_alias" "state" {
name = "alias/${local.state-name}"
target_key_id = aws_kms_key.state.id
}
resource "aws_s3_bucket_server_side_encryption_configuration" "state" {
bucket = aws_s3_bucket.state.bucket
rule {
apply_server_side_encryption_by_default {
kms_master_key_id = aws_kms_key.state.arn
sse_algorithm = "aws:kms"
}
}
}
locals {
# The table must have a primary key named LockID
# https://www.terraform.io/docs/backends/types/s3.html#dynamodb_table
lock_key_id = "LockID"
}
resource "aws_dynamodb_table" "state" {
name = local.state-name
billing_mode = "PAY_PER_REQUEST"
hash_key = local.lock_key_id
attribute {
name = local.lock_key_id
type = "S"
}
server_side_encryption {
enabled = true
kms_key_arn = aws_kms_key.state.arn
}
}
| 0 |
End of preview. Expand
in Data Studio
- Downloads last month
- 15