Cargo.toml
⎇
Raw
1[package]
2name = "server"
3version = "0.1.0"
4edition = "2021"
5
6[[bin]]
7name = "filebrowser-ng"
8path = "src/main.rs"
9
10[dependencies]
11anyhow = "1"
12argon2 = "0.5"
13axum = "0.8"
14chrono = { version = "0.4", features = ["serde"] }
15clap = { version = "4", features = ["derive"] }
16mime_guess = "2"
17multer = { version = "3", features = ["tokio-io"] }
18rand = "0.8"
19rusqlite = { version = "0.37", features = ["bundled"] }
20serde = { version = "1", features = ["derive"] }
21serde_json = "1"
22thiserror = "2"
23tokio = { version = "1", features = ["rt-multi-thread", "macros", "signal", "fs", "io-util"] }
24tower-http = { version = "0.6", features = ["trace"] }
25tracing = "0.1"
26tracing-subscriber = { version = "0.3", features = ["env-filter"] }
27
28[dependencies.rust-embed]
29version = "8"
30optional = true
31
32[features]
33# Embed the frontend (built into server/dist by `just build`).
34# Without this feature the server reads the frontend from disk at runtime
35# (Trunk's output directory, or $FBNG_DIST), which is the dev flow.
36embedded = ["dep:rust-embed"]
37