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", "time"] }
28tar = "0.4"
29flate2 = "1"
30zstd = "0.13"
31# Deflate only; the defaults add AES, bzip2, lzma, ppmd, zopfli.
32zip = { version = "9.0.0-pre3", default-features = false, features = ["deflate-flate2-zlib-rs"] }
33tower-http = { version = "0.6", features = ["trace", "set-header"] }
34futures-util = "0.3"
35tokio-stream = { version = "0.1", features = ["sync"] }
36tracing = "0.1"
37tracing-subscriber = { version = "0.3", features = ["env-filter"] }
38ignore = "0.4"
39globset = "0.4"
40grep = "0.4"
41
42[dev-dependencies]
43tempfile = "3"
44tower = { version = "0.5", features = ["util"] }
45http-body-util = "0.1"
46bytes = "1"
47flate2 = "1"
48zstd = "0.13"
49tar = "0.4"
50zip = { version = "9.0.0-pre3", default-features = false, features = ["deflate-flate2-zlib-rs"] }
51
52[dependencies.rust-embed]
53version = "8"
54optional = true
55
56[features]
57# Embed the frontend (built into server/dist by `just build`).
58# Without this feature the server reads the frontend from disk at runtime
59# (Trunk's output directory, or $FBNG_DIST), which is the dev flow.
60embedded = ["dep:rust-embed"]
61