mirror of
https://github.com/narrrl/proton-drive-linux.git
synced 2026-12-03 20:41:50 +01:00
The daemon's run loop moves out of pdfs-cli into a new crate. run waits for a stored session, then opens the database and the content cache, resumes the session on a runtime of its own, and mounts. It remounts after an external unmount, and retries a failed mount with a backoff, recording each failure. pdfs daemon and pdfs mount call into it. Moved unchanged, with their nine tests: login_poll_delay, wait_for_session, not_empty_cause, mount_retry_schedule, mount_retry_delay, mount_once and release_runtime. cmd_daemon becomes pdfs_daemon::run. The services the mount starts are still built in pdfs-fuse. Moving their construction here is the next part of step 3.
19 lines
483 B
TOML
19 lines
483 B
TOML
[package]
|
|
name = "pdfs-daemon"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
authors.workspace = true
|
|
rust-version.workspace = true
|
|
repository.workspace = true
|
|
homepage.workspace = true
|
|
description = "The Proton Drive Linux daemon's composition root: session, mount and restart loop"
|
|
|
|
[dependencies]
|
|
pdfs-core.workspace = true
|
|
pdfs-store.workspace = true
|
|
pdfs-fuse.workspace = true
|
|
tokio.workspace = true
|
|
anyhow.workspace = true
|
|
tracing.workspace = true
|