Files
readest/apps/readest-app/src-tauri/plugins/tauri-plugin-native-bridge/Cargo.toml
T
Huang Xin 5774e00c09 feat(sync): opt-in Credentials toggle + keyring v4 migration (#4111)
* feat(sync): add opt-in Credentials toggle to Manage Sync

Adds a new Credentials category (default OFF) that gates the encrypted
fields (OPDS / KOSync / Readwise / Hardcover usernames, passwords, and
tokens) at both the publish and pull pipelines. When off, sensitive
fields never leave the device, the proactive passphrase prompt never
fires, and the Sync passphrase panel is hidden entirely.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

* security: bump keyring to version 4

---------

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-09 19:09:57 +02:00

46 lines
1.7 KiB
TOML

[package]
name = "tauri-plugin-native-bridge"
version = "0.1.0"
authors = [ "You" ]
description = "a bridge between tauri app and native OS functionality"
edition = "2021"
# `keyring-core` v1 and the per-platform store crates require Rust
# 1.85 (apple-native) / 1.88 (windows-native, dbus-secret-service).
# Bumping the floor here so cargo lets them compile.
rust-version = "1.88"
exclude = ["/examples", "/dist-js", "/guest-js", "/node_modules"]
links = "tauri-plugin-native-bridge"
[dependencies]
tauri = { version = "2" }
serde = "1.0"
thiserror = "2"
schemars = "0.8"
[build-dependencies]
tauri-plugin = { version = "2", features = ["build"] }
schemars = "0.8"
[target.'cfg(any(target_os = "macos", windows, target_os = "linux"))'.dependencies]
font-enumeration = "0.9.0"
# OS-keychain backed secret storage for the sync passphrase. The
# `keyring` crate v4 was demoted to a sample CLI app; the library
# moved to `keyring-core` v1 plus a separate per-platform credential
# store crate. We register the right store at plugin init time
# (see `desktop.rs`). iOS / Android take a different path entirely:
# Swift's Security framework + Android's EncryptedSharedPreferences,
# dispatched via mobile.rs.
keyring-core = "1"
[target.'cfg(target_os = "macos")'.dependencies]
apple-native-keyring-store = { version = "1", features = ["keychain"] }
[target.'cfg(target_os = "windows")'.dependencies]
windows-native-keyring-store = "1"
[target.'cfg(target_os = "linux")'.dependencies]
# `vendored` statically links libdbus + openssl so we don't depend on
# the host distribution's versions, mirroring the previous
# `sync-secret-service` feature on keyring v3.
dbus-secret-service-keyring-store = { version = "1", features = ["crypto-rust", "vendored"] }