32 lines
No EOL
1.1 KiB
TOML
32 lines
No EOL
1.1 KiB
TOML
[package]
|
|
name = "pred"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
|
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
|
|
[dependencies]
|
|
axum = { version = "0.6.20", features = ["macros", "headers"] }
|
|
reqwest = "0.11"
|
|
tokio = { version = "1", features = ["full"] }
|
|
select = "0.5"
|
|
dotenvy = "~0"
|
|
cfg-if = "~1"
|
|
|
|
# -- Tracing
|
|
tracing-subscriber = { version = "0.3.16", features = ["env-filter", "json", "std"], optional = true }
|
|
tracing = { version = "~0", features = ["log", "log-always"] }
|
|
opentelemetry = {version ="0.20.0", features = ["rt-tokio"], optional = true }
|
|
opentelemetry-otlp = { version = "0.13.0", optional = true }
|
|
tracing-opentelemetry = { version = "0.21.0", optional = true }
|
|
tracing-log = { version = "~0", optional = true, features = ["env_logger"] }
|
|
tracing-bunyan-formatter = { version = "0.3.9", optional = true }
|
|
|
|
# Misc
|
|
thiserror = "~1"
|
|
log = "~0"
|
|
|
|
[features]
|
|
default = ["tracing", "bunyan"]
|
|
tracing = ["tracing-log", "tracing-subscriber", "tracing-opentelemetry", "opentelemetry", "opentelemetry-otlp"]
|
|
bunyan = ["tracing-bunyan-formatter"] |