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"
17rand = "0.8"
18rusqlite = { version = "0.37", features = ["bundled"] }
19serde = { version = "1", features = ["derive"] }
20serde_json = "1"
21thiserror = "2"
22tokio = { version = "1", features = ["rt-multi-thread", "macros", "signal", "fs"] }
23tower-http = { version = "0.6", features = ["trace"] }
24tracing = "0.1"
25tracing-subscriber = { version = "0.3", features = ["env-filter"] }
26
27[dependencies.rust-embed]
28version = "8"
29optional = true
30
31[features]
32# Embed the frontend (built into server/dist by `just build`).
33# Without this feature the server reads the frontend from disk at runtime
34# (Trunk's output directory, or $FBNG_DIST), which is the dev flow.
35embedded = ["dep:rust-embed"]
36