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 | bytes = "1" |
| 17 | chrono = { version = "0.4", features = ["serde"] } |
| 18 | clap = { version = "4", features = ["derive", "env"] } |
| 19 | # WebDAV protocol only. The bundled `localfs`/`memfs` backends are off: the |
| 20 | # dav filesystem is `api::dav`, which goes through `crate::fs` so that root |
| 21 | # containment, read-only roots and share scoping apply to a mount too. |
| 22 | dav-server = { version = "0.11", default-features = false } |
| 23 | # `default-features = false` drops the `cfb` dependency (compound-document |
| 24 | # detection we do not need) and makes this a zero-dependency crate. |
| 25 | infer = { version = "0.16", default-features = false, features = ["alloc"] } |
| 26 | mime_guess = "2" |
| 27 | multer = { version = "3", features = ["tokio-io"] } |
| 28 | rand = "0.8" |
| 29 | rusqlite = { version = "0.37", features = ["bundled"] } |
| 30 | serde = { version = "1", features = ["derive"] } |
| 31 | serde_json = "1" |
| 32 | sha2 = "0.10" |
| 33 | thiserror = "2" |
| 34 | tokio = { version = "1", features = [ |
| 35 | "rt-multi-thread", |
| 36 | "macros", |
| 37 | "fs", |
| 38 | "io-util", |
| 39 | "sync", |
| 40 | "time", |
| 41 | "signal", |
| 42 | ] } |
| 43 | tar = "0.4" |
| 44 | flate2 = "1" |
| 45 | zstd = "0.13" |
| 46 | # Deflate only; the defaults add AES, bzip2, lzma, ppmd, zopfli. |
| 47 | zip = { version = "9.0.0-pre3", default-features = false, features = ["deflate-flate2-zlib-rs"] } |
| 48 | tower-http = { version = "0.6", features = ["trace", "set-header"] } |
| 49 | # Named in the `DavLockSystem` impl. dav-server does not re-export it, so the |
| 50 | # version has to track dav-server's own. |
| 51 | xmltree = "0.12" |
| 52 | futures-util = "0.3" |
| 53 | # Typed `Authorization: Basic` parsing. Already in the tree via dav-server. |
| 54 | headers = "0.4" |
| 55 | tokio-stream = { version = "0.1", features = ["sync"] } |
| 56 | tracing = "0.1" |
| 57 | tracing-subscriber = { version = "0.3", features = ["env-filter"] } |
| 58 | ignore = "0.4" |
| 59 | grep = "0.4" |
| 60 | |
| 61 | [dev-dependencies] |
| 62 | base64 = "0.22" |
| 63 | tempfile = "3" |
| 64 | tower = { version = "0.5", features = ["util"] } |
| 65 | http-body-util = "0.1" |
| 66 | bytes = "1" |
| 67 | flate2 = "1" |
| 68 | zstd = "0.13" |
| 69 | tar = "0.4" |
| 70 | zip = { version = "9.0.0-pre3", default-features = false, features = ["deflate-flate2-zlib-rs"] } |
| 71 | |
| 72 | [dependencies.rust-embed] |
| 73 | version = "8" |
| 74 | optional = true |
| 75 | |
| 76 | [features] |
| 77 | # Embed the frontend (built into server/dist by `just build`). |
| 78 | # Without this feature the server reads the frontend from disk at runtime |
| 79 | # (Trunk's output directory, or $FBNG_DIST), which is the dev flow. |
| 80 | embedded = ["dep:rust-embed"] |
| 81 |