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