2024-05-30 01:55:13 +08:00

58 lines
1.6 KiB
TOML

[package]
name = "chat-signaling-server"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[[bin]]
name = "server"
[dependencies]
signaling = { path = "../signaling" }
futures = "0.3"
tokio = { version = "1", features = ["full"] }
axum = { version = "0.6", features = ["http2", "ws"] }
tonic = "0.11"
tonic-web = "0.11"
tracing = "0.1"
tracing-subscriber = "0.3"
tracing-opentelemetry = { version = "0.22", optional = true }
opentelemetry = { version = "0.21", optional = true }
opentelemetry_sdk = { version = "0.21", optional = true }
opentelemetry-stdout = { version = "0.2", features = ["trace"], optional = true }
fred = { version = "9", features = ["subscriber-client"] }
sea-orm = { version = "0", features = [ "sqlx-sqlite", "runtime-tokio-rustls", "macros", "mock", "with-chrono", "with-json", "with-uuid" ] }
tera = "1"
serde = "1"
serde_json = "1"
include_dir = { version = "0.7", features = ["metadata", "glob"], optional = true }
tower = { version = "0.4", optional = true }
tower-http = { version = "0.4", features = ["trace"] }
mime_guess = { version = "2", optional = true }
clap = { version = "4", features = ["derive", "env"] }
anyhow = "1"
itertools = "0.13"
names = "0.14"
lazy_static = "1"
[features]
default = [ "embed-templates", "serve-static" ]
otlp = [ "dep:tracing-opentelemetry", "dep:opentelemetry", "dep:opentelemetry_sdk" ]
debug = [ "dep:opentelemetry-stdout" ]
embed-templates = [ "dep:include_dir" ]
embed-static = [ ]
serve-static = ["embed-static", "dep:mime_guess", "dep:tower" ]
extract-static = ["embed-static"]