buster/api/Cargo.toml

131 lines
3.7 KiB
TOML
Raw Normal View History

2025-02-15 04:44:21 +08:00
[workspace]
members = [
".",
2025-02-15 05:12:31 +08:00
"libs/handlers",
2025-02-18 23:17:43 +08:00
"libs/litellm",
2025-03-01 01:35:55 +08:00
"libs/database",
"libs/agents"
2025-02-15 04:44:21 +08:00
]
# Define shared dependencies for all workspace members
[workspace.dependencies]
anyhow = "1.0.86"
chrono = { version = "0.4.38", features = ["serde"] }
serde = { version = "1.0.117", features = ["derive"] }
serde_json = { version = "1.0.117", features = ["preserve_order"] }
2025-02-19 00:26:40 +08:00
serde_yaml = "0.9.34"
2025-02-15 04:44:21 +08:00
tokio = { version = "1.38.0", features = ["full"] }
tracing = "0.1.40"
uuid = { version = "1.8", features = ["serde", "v4"] }
diesel = { version = "2", features = ["uuid", "chrono", "serde_json", "postgres"] }
diesel-async = { version = "0.5.2", features = ["postgres", "bb8"] }
futures = "0.3.30"
2025-03-01 01:35:55 +08:00
async-trait = "0.1.85"
thiserror = "1.0.58"
tokio-test = "0.4.3"
futures-util = "0.3"
reqwest = { version = "0.12.4", features = ["json", "stream"] }
dotenv = "0.15.0"
mockito = "1.2.0"
bb8-redis = "0.18.0"
indexmap = { version = "2.2.6", features = ["serde"] }
once_cell = "1.20.2"
rustls = { version = "0.23", features = ["ring"] }
rustls-native-certs = "0.8"
sqlx = { version = "0.8", features = ["runtime-tokio", "tls-rustls", "postgres", "uuid", "chrono", "json"] }
tokio-postgres = "0.7"
tokio-postgres-rustls = "0.13"
regex = "1.10.6"
2025-02-15 04:44:21 +08:00
2025-01-04 05:32:54 +08:00
[package]
name = "bi_api"
version = "0.0.1"
edition = "2021"
default-run = "bi_api"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
2025-02-15 04:44:21 +08:00
# Use workspace dependencies
anyhow = { workspace = true }
chrono = { workspace = true }
serde = { workspace = true }
serde_json = { workspace = true }
tokio = { workspace = true }
tracing = { workspace = true }
uuid = { workspace = true }
diesel = { workspace = true }
diesel-async = { workspace = true }
2025-03-01 01:35:55 +08:00
futures = { workspace = true }
async-trait = { workspace = true }
futures-util = { workspace = true }
reqwest = { workspace = true }
dotenv = { workspace = true }
bb8-redis = { workspace = true }
indexmap = { workspace = true }
once_cell = { workspace = true }
rustls = { workspace = true }
rustls-native-certs = { workspace = true }
sqlx = { workspace = true }
tokio-postgres = { workspace = true }
tokio-postgres-rustls = { workspace = true }
serde_yaml = { workspace = true }
regex = { workspace = true }
2025-02-15 04:44:21 +08:00
# Local dependencies
handlers = { path = "libs/handlers" }
2025-02-15 05:12:31 +08:00
litellm = { path = "libs/litellm" }
2025-02-18 23:17:43 +08:00
database = { path = "libs/database" }
2025-03-01 01:35:55 +08:00
agents = { path = "libs/agents" }
2025-02-15 04:44:21 +08:00
# Other dependencies specific to the main app
2025-01-04 05:32:54 +08:00
arrow = { version = "54.0.0", features = ["json"] }
async-compression = { version = "0.4.11", features = ["tokio"] }
axum = { version = "0.7.5", features = ["ws"] }
base64 = "0.21"
2025-01-04 05:32:54 +08:00
cohere-rust = "0.6.0"
gcp-bigquery-client = "0.24.1"
jsonwebtoken = "9.3.0"
lazy_static = "1.4.0"
num-traits = "0.2.19"
rand = "0.8.5"
redis = { version = "0.27.5", features = [
"tokio-comp",
"tokio-rustls-comp",
"tls-rustls-webpki-roots",
] }
resend-rs = "0.10.0"
sentry = { version = "0.35.0", features = ["tokio", "sentry-tracing"] }
serde_urlencoded = "0.7.1"
snowflake-api = "0.11.0"
sqlparser = { version = "0.53.0", features = ["visitor"] }
tempfile = "3.10.1"
tiberius = { version = "0.12.2", default-features = false, features = [
"chrono",
"rust_decimal",
"tds73",
"time",
"rustls",
"sql-browser-tokio",
] }
tiktoken-rs = "0.6.0"
tokio-stream = "0.1.15"
tokio-util = { version = "0.7.11", features = ["compat"] }
tower-http = { version = "0.6.2", features = [
"cors",
"trace",
"compression-gzip",
] }
tracing-subscriber = { version = "0.3.18", features = ["env-filter"] }
url = "2.5.1"
rayon = "1.10.0"
diesel_migrations = "2.0.0"
html-escape = "0.2.13"
2025-01-04 05:32:54 +08:00
[dev-dependencies]
2025-03-01 01:35:55 +08:00
mockito = { workspace = true }
tokio-test = { workspace = true }
async-trait = { workspace = true }
2025-01-04 05:32:54 +08:00
[profile.release]
2025-02-14 07:15:09 +08:00
debug = false