Files
dtourolle beb822dced Keep secrets in Credential Manager on Windows
The Secret Service store was keyring::Entry all the way down, and
keyring 4's v1 feature set — the one the workspace already asks for —
includes the Windows Credential Manager backend. So the Windows store
is the same implementation with its cfg widened, and the crate as a
target dependency. The one behavioural difference is that the
availability probe always succeeds there, which is correct: Credential
Manager is always present, so FR-NC-2's degraded mode does not arise.
Until now a Windows build compiled, started, and failed at sign-in
with the placeholder store's "no secret store is implemented".
2026-09-12 07:34:08 +02:00

38 lines
1.3 KiB
TOML

[package]
name = "dr-plat"
version.workspace = true
edition.workspace = true
rust-version.workspace = true
license.workspace = true
[dependencies]
dr-types.workspace = true
thiserror.workspace = true
# `std` is not one of `log`'s default features, and `diagnostics::install`
# needs `set_boxed_logger`, which is gated behind it. Stated here rather than
# left to feature unification with whichever dependant happens to pull
# `env_logger` in — that unification holds for `cargo build --workspace` and
# not for `cargo build -p dr-plat`.
log = { workspace = true, features = ["std"] }
[target.'cfg(all(unix, not(target_os = "android")))'.dependencies]
keyring.workspace = true
# The two display servers FR-PLAT-LIN-2 names, each asked for the profile it
# knows how to state (FR-DSP-8, `display.rs`). Both are already in the tree
# via winit, so this adds compilation of nothing that was not already built.
x11rb.workspace = true
wayland-client.workspace = true
wayland-protocols.workspace = true
# The same crate on Windows: its `v1` features include the Credential Manager
# backend, and `secrets.rs` is one implementation over both.
[target.'cfg(windows)'.dependencies]
keyring.workspace = true
[target.'cfg(target_os = "android")'.dependencies]
android-native-keyring-store.workspace = true
keyring-core.workspace = true
[dev-dependencies]
env_logger.workspace = true