[package]
name = "knowhub"
version = "0.11.0"
edition = "2024"

[lints.clippy]
unwrap_used = "deny"
expect_used = "deny"

[lib]
name = "knowhub"
path = "lib.rs"

[[bin]]
name = "knowhub"
path = "main.rs"

[dependencies]
argon2 = { version = "0.5", features = ["std"] }
async-stream = "0.3"
async-trait = "0.1"
axum = { version = "0.8", features = ["ws"] }
base64 = "0.22"
bytes = "1"
dioxus = { version = "0.7", default-features = false, features = ["macro", "html", "signals", "hooks"] }
dioxus-ssr = "0.7"
futures-util = "0.3"
jsonwebtoken = "9"
pingora-core = "0.9"
pingora-http = "0.9"
pingora-load-balancing = "0.9"
pingora-proxy = "0.9"
pulldown-cmark = "0.13"
rand = "0.9"
reqwest = { version = "0.12", default-features = false, features = ["json", "rustls-tls", "stream"] }
rustls = { version = "0.23", default-features = false, features = ["ring", "std", "tls12"] }
sea-orm = { version = "1.1", default-features = false, features = ["sqlx-sqlite", "runtime-tokio-rustls", "macros"] }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
sha2 = "0.10"
sqlx = { version = "0.8", default-features = false, features = ["runtime-tokio-rustls", "sqlite"] }
tantivy = "0.27"
tantivy-jieba = "0.19"
tokio = { version = "1", features = ["fs", "io-util", "macros", "net", "rt-multi-thread", "signal", "sync", "time"] }
tokio-metrics = "0.4"
tokio-rustls = "0.26"
tower = "0.5"
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter", "fmt", "json"] }

[dev-dependencies]
tempfile = "3"
tokio-tungstenite = "0.26"
