Cargo.toml
| 1 | [package] |
| 2 | name = "server" |
| 3 | version = "0.1.0" |
| 4 | edition = "2021" |
| 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 | rand = "0.8" |
| 18 | rusqlite = { version = "0.37", features = ["bundled"] } |
| 19 | serde = { version = "1", features = ["derive"] } |
| 20 | serde_json = "1" |
| 21 | thiserror = "2" |
| 22 | tokio = { version = "1", features = ["rt-multi-thread", "macros", "signal", "fs"] } |
| 23 | tower-http = { version = "0.6", features = ["trace"] } |
| 24 | tracing = "0.1" |
| 25 | tracing-subscriber = { version = "0.3", features = ["env-filter"] } |
| 26 | |
| 27 | [dependencies.rust-embed] |
| 28 | version = "8" |
| 29 | optional = true |
| 30 | |
| 31 | [features] |
| 32 | # Embed the frontend (built into server/dist by `just build`). |
| 33 | # Without this feature the server reads the frontend from disk at runtime |
| 34 | # (Trunk's output directory, or $FBNG_DIST), which is the dev flow. |
| 35 | embedded = ["dep:rust-embed"] |
| 36 |