mirror of
https://github.com/narrrl/proton-drive-linux.git
synced 2026-12-03 20:41:50 +01:00
A mirror edit read the file's node before each upload to make sure no other client had committed a revision since the pass looked (B249). The SDK then read the same link again for the content key and the revision id. proton-drive-rs 0.12.8 adds upload_new_revision_over, which makes that check with its own read and creates the revision over the expected one. The mirror now uses it whenever it knows the revision it saw, and keeps the separate read only for rows without one. 0.12.8 also caches a folder's hash key, so a second upload into the same folder reads none of its keys again. The fake drive answers upload_new_revision_over with Moved, Trashed or Sealed, and honors hold_next_read, so the B249 sim still covers the race.
103 lines
4.4 KiB
TOML
103 lines
4.4 KiB
TOML
[workspace]
|
|
resolver = "2"
|
|
members = ["crates/pdfs-core", "crates/pdfs-store", "crates/pdfs-drive", "crates/pdfs-sync", "crates/pdfs-sched", "crates/pdfs-vfs", "crates/pdfs-fuse", "crates/pdfs-daemon", "crates/pdfs-cli", "crates/pdfs-gui"]
|
|
|
|
[workspace.package]
|
|
version = "3.10.0"
|
|
edition = "2024"
|
|
license = "MIT"
|
|
authors = ["Nils Pukropp <contact@narl.io>"]
|
|
rust-version = "1.96"
|
|
repository = "https://github.com/narrrl/proton-drive-linux"
|
|
homepage = "https://proton-drive.narl.io"
|
|
readme = "README.md"
|
|
keywords = ["proton", "drive", "fuse", "sync", "linux"]
|
|
categories = ["filesystem", "command-line-utilities"]
|
|
|
|
[workspace.dependencies]
|
|
proton-sdk = { version = "0.12.8" }
|
|
proton-drive-rs = { version = "0.12.8" }
|
|
proton-gallery-app-rs = "0.1.0"
|
|
proton-gallery-rs = "0.1.5"
|
|
proton-map-rs = "0.1.0"
|
|
chrono = { version = "0.4", default-features = false, features = ["std"] }
|
|
|
|
# Internal crates.
|
|
pdfs-core = { path = "crates/pdfs-core" }
|
|
pdfs-store = { path = "crates/pdfs-store" }
|
|
pdfs-drive = { path = "crates/pdfs-drive" }
|
|
pdfs-sync = { path = "crates/pdfs-sync" }
|
|
pdfs-vfs = { path = "crates/pdfs-vfs" }
|
|
pdfs-sched = { path = "crates/pdfs-sched" }
|
|
pdfs-fuse = { path = "crates/pdfs-fuse" }
|
|
pdfs-daemon = { path = "crates/pdfs-daemon" }
|
|
|
|
tokio = { version = "1", features = ["rt-multi-thread", "macros", "sync", "fs", "io-util", "time", "signal"] }
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_json = "1"
|
|
base64 = "0.23"
|
|
zeroize = "1"
|
|
thiserror = "2"
|
|
anyhow = "1"
|
|
# Non-poisoning mutexes. A handler that panics while holding a lock must not
|
|
# wedge every later acquisition of it: `Workers` catches the unwind to keep the
|
|
# pool alive, and `std::sync::Mutex` would defeat that by poisoning the state
|
|
# the recovered worker needs.
|
|
parking_lot = "0.13"
|
|
tracing = "0.1"
|
|
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|
|
directories = "6"
|
|
ignore = "0.4"
|
|
# Command lines typed into Preferences, split and shown the way a shell would.
|
|
shell-words = "1"
|
|
sha2 = "0.11"
|
|
# Google Takeout exports are zip sets; the importer reads their central
|
|
# directories and streams entries out without extracting to disk first.
|
|
zip = { version = "9", default-features = false, features = ["deflate"] }
|
|
# Proton's photo duplicate detection is keyed on the plaintext SHA-1, so an
|
|
# import has to speak SHA-1 whatever its age.
|
|
sha1 = "0.11"
|
|
# Thumbnail generation for photos the server has none for. Decoders only for the
|
|
# formats a camera or phone actually produces — the rest of the crate's codecs
|
|
# would be dead weight in the daemon.
|
|
image = { version = "0.25", default-features = false, features = ["jpeg", "png", "webp", "gif", "tiff", "bmp", "rayon"] }
|
|
# Cover pictures of songs, read from their tags (ID3, FLAC, Ogg, MP4, APE) for
|
|
# the song's thumbnail. Its default feature is required: 0.25 does not build
|
|
# without it.
|
|
lofty = "0.25"
|
|
rusqlite = { version = "0.41", features = ["bundled"] }
|
|
# keyring 4 split into `keyring-core` plus per-platform stores. The libdbus
|
|
# Secret Service store is the one keyring 3's `sync-secret-service` wrapped, and
|
|
# with no `target` it matches items v3 wrote, so existing logins survive.
|
|
keyring-core = "1"
|
|
# The keyring store all three apps share: reconnects after a Secret Service
|
|
# restart (B285) and replaces items instead of editing them (B291).
|
|
proton-auth-rs = "0.1.1"
|
|
proton-base-rs = "0.1"
|
|
proton-media-rs = "0.1.1"
|
|
dbus-secret-service-keyring-store = { version = "1", features = ["crypto-rust"] }
|
|
# The same Secret Service client the store wraps, used directly to replace an
|
|
# item instead of editing it, which oo7 before 0.7.0 kept only in memory (B291).
|
|
dbus-secret-service = { version = "4.1", features = ["crypto-rust"] }
|
|
clap = { version = "4", features = ["derive"] }
|
|
# `unstable-dynamic`: Tab calls `pdfs` back, so arguments complete from the
|
|
# running service. Only `pdfs-cli/src/complete.rs` uses it.
|
|
clap_complete = { version = "4.6", features = ["unstable-dynamic"] }
|
|
rpassword = "7"
|
|
async-trait = "0.1"
|
|
futures = "0.3"
|
|
fuser = "0.18"
|
|
libc = "0.2"
|
|
|
|
[profile.release]
|
|
# No package ships a separate debug package (the PKGBUILD sets `!debug`, the
|
|
# RPM spec sets `debug_package` to nil), and the unstripped binaries weighed
|
|
# 43 MB (`pdfs`), 24 MB (`pdfs-app`) and 12 MB (`pdfs-tray`).
|
|
strip = "symbols"
|
|
# Off on purpose: LTO has broken GTK links for this workspace, which is why
|
|
# the packages turn it off as well.
|
|
lto = false
|
|
# `Workers` and the thumbnail build catch panics to keep the daemon alive, so
|
|
# unwinding must stay on.
|
|
panic = "unwind"
|