Skip to content

Native iCloud apps for Windows and Linux, built in Rust. Notes, Reminders, Calendar, Contacts, Drive and Photos, offline and in sync with your iPhone.

2.7 KB
Raw Blame
[package]
name = "quince-auth"
version = "0.1.14"
edition.workspace = true
rust-version.workspace = true
license.workspace = true

[dependencies]
anyhow.workspace = true
reqwest.workspace = true
serde.workspace = true
serde_json.workspace = true
uuid.workspace = true
base64 = "0.22"
num-bigint = "0.4"
sha2 = "0.10"
pbkdf2 = { version = "0.12", default-features = false }
hmac = "0.12"
rand = "0.9"
# Sealing the cookie jar on disk (sealed.rs): the same AES-GCM locked notes already build.
aes-gcm = { version = "0.10", default-features = false, features = ["aes", "alloc"] }
reqwest_cookie_store = "0.8"
cookie_store = { version = "0.21", features = ["serde_json"] }
thiserror = "2"
# Looking up Apple's hosts for the client's own resolver (AppleOnly).
tokio = { workspace = true, features = ["net", "time"] }
# The updater's client (releases.rs), locked like Apple's: the reqwest the Tauri updater plugin
# is built on, with no TLS of its own — the plugin's (rustls on ring) is the one compiled.
reqwest_releases = { package = "reqwest", version = "0.13", default-features = false, features = ["rustls-no-provider"] }
rustls = { version = "0.23", default-features = false, features = ["ring", "std"] }

[features]
# This computer counts as Apple's — for tests, whose mock servers run here. Never in the app.
loopback = []

[dev-dependencies]
# The crate's own tests (tests/*.rs) reach mock servers on this computer.
quince-auth = { path = ".", features = ["loopback"] }
tokio = { workspace = true }
wiremock = "0.6"
tempfile = "3"

# Each system's own keyring, behind the same `keyring` API: the Secret Service on Linux, the
# Credential Manager on Windows, the Keychain on macOS. One set of features for all three
# pulled D-Bus into a Windows build, which cannot link it.
#
# `linux-native` selects the KERNEL keyutils backend, which is session-scoped and does not
# survive a reboot — the trust token would quietly evaporate and the app would ask for a code
# again, the exact failure this project exists to fix. The Secret Service backend is the
# persistent one (gnome-keyring / kwallet).
[target.'cfg(target_os = "linux")'.dependencies]
keyring = { version = "3", default-features = false, features = ["sync-secret-service", "crypto-rust"] }
# Linux talks to the Secret Service itself, over one connection (session.rs, `secret_service`):
# the keyring crate's connection per call crashes gnome-keyring 50 and 51.
dbus-secret-service = { version = "4.1", features = ["crypto-rust"] }

[target.'cfg(target_os = "windows")'.dependencies]
keyring = { version = "3", default-features = false, features = ["windows-native"] }

[target.'cfg(target_os = "macos")'.dependencies]
keyring = { version = "3", default-features = false, features = ["apple-native"] }