CI / test (push) Successful in 1m18s
Moved folders sat in each library's .jellymove-trash until removed by hand on the server. The new Trash tab lists them on either server with
size, file count, when and where they went, and empties one item, a library or everything after a confirmation.
- trash.rs: list and empty entries. Entries are referred to by an opaque ID and resolved by scanning; only real folders directly inside a trash folder can be deleted.
- Each move now gets its own trash entry folder, with a small metadata file. Fixes moves failing when the same item had been trashed before.
- Peer API: GET /trash, POST /trash/empty, and /exports/{id}/complete now records the job and destination.
- e2e tests for listing, emptying from either side, refusing paths as IDs, and moving the same item away twice.
Closes #3
38 lines
1.2 KiB
TOML
38 lines
1.2 KiB
TOML
[package]
|
|
name = "jm-server"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
rust-version.workspace = true
|
|
|
|
[dependencies]
|
|
anyhow = "1.0.104"
|
|
axum = { version = "0.8.9", features = ["macros"] }
|
|
base64 = "0.23.1"
|
|
blake3 = "1.8.7"
|
|
futures = "0.3.34"
|
|
jm-core = { version = "0.1.0", path = "../jm-core" }
|
|
jm-jellyfin = { version = "0.1.0", path = "../jm-jellyfin" }
|
|
jm-store = { version = "0.1.0", path = "../jm-store" }
|
|
jm-transfer = { version = "0.1.0", path = "../jm-transfer" }
|
|
mime_guess = "2.0.5"
|
|
reqwest = { version = "0.13.5", default-features = false, features = ["rustls", "json", "stream", "http2"] }
|
|
rust-embed = "8.13.0"
|
|
serde = { version = "1.0.229", features = ["derive"] }
|
|
serde_json = "1.0.154"
|
|
thiserror = "2.0.21"
|
|
time = "0.3.45"
|
|
tokio = { version = "1.54.1", features = ["full"] }
|
|
tokio-stream = { version = "0.1.19", features = ["sync"] }
|
|
tower-http = { version = "0.7.1", features = ["trace"] }
|
|
tracing = "0.1.44"
|
|
uuid = { version = "1.26.1", features = ["v4"] }
|
|
|
|
[dev-dependencies]
|
|
anyhow = "1.0.104"
|
|
reqwest = { version = "0.13.5", default-features = false, features = ["json"] }
|
|
serde_json = "1.0.154"
|
|
tempfile = "3.27.0"
|
|
tokio = { version = "1.54.1", features = ["full"] }
|
|
tower = "0.5.3"
|