[package]
name = "knowhub"
version = "0.6.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"] }
axum = "0.8"
base64 = "0.22"
bytes = "1"
jsonwebtoken = "9"
pulldown-cmark = "0.13"
rand = "0.9"
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-rustls = "0.26"
tower = "0.5"
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter", "fmt"] }

[dev-dependencies]
reqwest = { version = "0.12", default-features = false, features = ["json", "rustls-tls"] }
tempfile = "3"
