Cargo.toml
⎇
Raw
1[package]
2name = "server"
3version = "0.1.0"
4edition = "2024"
5
6[[bin]]
7name = "filebrowser-ng"
8path = "src/main.rs"
9
10[dependencies]
11api-types = { path = "../api-types" }
12anyhow = "1"
13argon2 = "0.5"
14axum = "0.8"
15chrono = { version = "0.4", features = ["serde"] }
16clap = { version = "4", features = ["derive"] }
17mime_guess = "2"
18multer = { version = "3", features = ["tokio-io"] }
19rand = "0.8"
20rusqlite = { version = "0.37", features = ["bundled"] }
21serde = { version = "1", features = ["derive"] }
22serde_json = "1"
23thiserror = "2"
24tokio = { version = "1", features = ["rt-multi-thread", "macros", "fs", "io-util", "sync"] }
25tar = "0.4"
26flate2 = "1"
27zstd = "0.13"
28zip = "9.0.0-pre3"
29tower-http = { version = "0.6", features = ["trace", "set-header"] }
30futures-util = "0.3"
31tokio-stream = { version = "0.1", features = ["sync"] }
32tracing = "0.1"
33tracing-subscriber = { version = "0.3", features = ["env-filter"] }
34
35[dev-dependencies]
36tempfile = "3"
37tower = { version = "0.5", features = ["util"] }
38http-body-util = "0.1"
39bytes = "1"
40flate2 = "1"
41zstd = "0.13"
42tar = "0.4"
43zip = "9.0.0-pre3"
44
45[dependencies.rust-embed]
46version = "8"
47optional = true
48
49[features]
50# Embed the frontend (built into server/dist by `just build`).
51# Without this feature the server reads the frontend from disk at runtime
52# (Trunk's output directory, or $FBNG_DIST), which is the dev flow.
53embedded = ["dep:rust-embed"]
54