- Shallow listing: read per-directory _index.json once for eTags instead of N serial .meta.json reads. Validate prefix for path traversal and verify normalized target stays within bucket root. - Recursive listing: cache full per-directory index during the walk so each _index.json is parsed at most once per call. - Per-bucket listing cache with 5s TTL and per-bucket rebuild mutex. Invalidated on put/delete/copy/metadata/tags/multipart-complete. Pagination uses partition_point for O(log n) start lookup. - UI stream endpoint now actually streams via mpsc + Body::from_stream instead of buffering into a Vec<String>. Cancels producer on client disconnect. - UI JSON endpoint honors delimiter=/ and returns common_prefixes. - run_blocking wrapper dispatches sync filesystem work via block_in_place on multi-threaded runtimes, falls back to inline on current-thread runtimes (unit tests).
59 lines
1.6 KiB
TOML
59 lines
1.6 KiB
TOML
[package]
|
|
name = "myfsio-server"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
|
|
[dependencies]
|
|
myfsio-common = { path = "../myfsio-common" }
|
|
myfsio-auth = { path = "../myfsio-auth" }
|
|
myfsio-crypto = { path = "../myfsio-crypto" }
|
|
myfsio-storage = { path = "../myfsio-storage" }
|
|
myfsio-xml = { path = "../myfsio-xml" }
|
|
base64 = { workspace = true }
|
|
md-5 = { workspace = true }
|
|
axum = { workspace = true }
|
|
tokio = { workspace = true }
|
|
tower = { workspace = true }
|
|
tower-http = { workspace = true }
|
|
hyper = { workspace = true }
|
|
bytes = { workspace = true }
|
|
serde = { workspace = true }
|
|
serde_json = { workspace = true }
|
|
serde_urlencoded = "0.7"
|
|
tracing = { workspace = true }
|
|
tracing-subscriber = { workspace = true }
|
|
tokio-util = { workspace = true }
|
|
tokio-stream = { workspace = true }
|
|
chrono = { workspace = true }
|
|
uuid = { workspace = true }
|
|
futures = { workspace = true }
|
|
http-body-util = "0.1"
|
|
percent-encoding = { workspace = true }
|
|
quick-xml = { workspace = true }
|
|
mime_guess = "2"
|
|
crc32fast = { workspace = true }
|
|
sha2 = { workspace = true }
|
|
duckdb = { workspace = true }
|
|
roxmltree = "0.20"
|
|
parking_lot = { workspace = true }
|
|
regex = "1"
|
|
multer = "3"
|
|
reqwest = { workspace = true }
|
|
aws-sdk-s3 = { workspace = true }
|
|
aws-config = { workspace = true }
|
|
aws-credential-types = { workspace = true }
|
|
aws-smithy-types = { workspace = true }
|
|
async-trait = { workspace = true }
|
|
rand = "0.8"
|
|
tera = { workspace = true }
|
|
cookie = { workspace = true }
|
|
subtle = { workspace = true }
|
|
clap = { workspace = true }
|
|
dotenvy = { workspace = true }
|
|
sysinfo = "0.32"
|
|
aes-gcm = { workspace = true }
|
|
|
|
[dev-dependencies]
|
|
tempfile = "3"
|
|
tower = { workspace = true, features = ["util"] }
|