Cargo.toml
| 1 | [package] |
| 2 | name = "server" |
| 3 | version = "0.1.0" |
| 4 | edition = "2024" |
| 5 | license = "AGPL-3.0-or-later" |
| 6 | |
| 7 | [[bin]] |
| 8 | name = "filebrowser-ng" |
| 9 | path = "src/main.rs" |
| 10 | |
| 11 | [dependencies] |
| 12 | api-types = { path = "../api-types" } |
| 13 | anyhow = "1" |
| 14 | argon2 = "0.5" |
| 15 | axum = "0.8" |
| 16 | chrono = { version = "0.4", features = ["serde"] } |
| 17 | clap = { version = "4", features = ["derive", "env"] } |
| 18 | # `default-features = false` drops the `cfb` dependency (compound-document |
| 19 | # detection we do not need) and makes this a zero-dependency crate. |
| 20 | infer = { version = "0.16", default-features = false, features = ["alloc"] } |
| 21 | mime_guess = "2" |
| 22 | multer = { version = "3", features = ["tokio-io"] } |
| 23 | rand = "0.8" |
| 24 | rusqlite = { version = "0.37", features = ["bundled"] } |
| 25 | serde = { version = "1", features = ["derive"] } |
| 26 | serde_json = "1" |
| 27 | thiserror = "2" |
| 28 | tokio = { version = "1", features = [ |
| 29 | "rt-multi-thread", |
| 30 | "macros", |
| 31 | "fs", |
| 32 | "io-util", |
| 33 | "sync", |
| 34 | "time", |
| 35 | "signal", |
| 36 | ] } |
| 37 | tar = "0.4" |
| 38 | flate2 = "1" |
| 39 | zstd = "0.13" |
| 40 | # Deflate only; the defaults add AES, bzip2, lzma, ppmd, zopfli. |
| 41 | zip = { version = "9.0.0-pre3", default-features = false, features = ["deflate-flate2-zlib-rs"] } |
| 42 | tower-http = { version = "0.6", features = ["trace", "set-header"] } |
| 43 | futures-util = "0.3" |
| 44 | tokio-stream = { version = "0.1", features = ["sync"] } |
| 45 | tracing = "0.1" |
| 46 | tracing-subscriber = { version = "0.3", features = ["env-filter"] } |
| 47 | ignore = "0.4" |
| 48 | grep = "0.4" |
| 49 | |
| 50 | [dev-dependencies] |
| 51 | tempfile = "3" |
| 52 | tower = { version = "0.5", features = ["util"] } |
| 53 | http-body-util = "0.1" |
| 54 | bytes = "1" |
| 55 | flate2 = "1" |
| 56 | zstd = "0.13" |
| 57 | tar = "0.4" |
| 58 | zip = { version = "9.0.0-pre3", default-features = false, features = ["deflate-flate2-zlib-rs"] } |
| 59 | |
| 60 | [dependencies.rust-embed] |
| 61 | version = "8" |
| 62 | optional = true |
| 63 | |
| 64 | [features] |
| 65 | # Embed the frontend (built into server/dist by `just build`). |
| 66 | # Without this feature the server reads the frontend from disk at runtime |
| 67 | # (Trunk's output directory, or $FBNG_DIST), which is the dev flow. |
| 68 | embedded = ["dep:rust-embed"] |
| 69 |