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"] }
17# `default-features = false` drops the `cfb` dependency (compound-document
18# detection we do not need) and makes this a zero-dependency crate.
19infer = { version = "0.16", default-features = false, features = ["alloc"] }
20mime_guess = "2"
21multer = { version = "3", features = ["tokio-io"] }
22rand = "0.8"
23rusqlite = { version = "0.37", features = ["bundled"] }
24serde = { version = "1", features = ["derive"] }
25serde_json = "1"
26thiserror = "2"
27tokio = { version = "1", features = ["rt-multi-thread", "macros", "fs", "io-util", "sync"] }
28tar = "0.4"
29flate2 = "1"
30zstd = "0.13"
31zip = "9.0.0-pre3"
32tower-http = { version = "0.6", features = ["trace", "set-header"] }
33futures-util = "0.3"
34tokio-stream = { version = "0.1", features = ["sync"] }
35tracing = "0.1"
36tracing-subscriber = { version = "0.3", features = ["env-filter"] }
37
38[dev-dependencies]
39tempfile = "3"
40tower = { version = "0.5", features = ["util"] }
41http-body-util = "0.1"
42bytes = "1"
43flate2 = "1"
44zstd = "0.13"
45tar = "0.4"
46zip = "9.0.0-pre3"
47
48[dependencies.rust-embed]
49version = "8"
50optional = true
51
52[features]
53# Embed the frontend (built into server/dist by `just build`).
54# Without this feature the server reads the frontend from disk at runtime
55# (Trunk's output directory, or $FBNG_DIST), which is the dev flow.
56embedded = ["dep:rust-embed"]
57