Registry / auth / keyring-lib

keyring-lib

JSON →
library1.0.3rscratesunverified

High-level, asynchronous API for keyring-rs, a cross-platform library to manage credentials.

# Cargo.toml [dependencies] keyring-lib = "1.0.3"
INSTALL
IMPORT
SIG · KEYRING-LIB
K
keyring-lib
authrustv1.0.3
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Keyring
use keyring_lib::Keyring;

Stores and retrieves a password using the system keyring.

use keyring_lib::Keyring; let keyring = Keyring::new("my-service", "my-user"); keyring.set_password("my-password").await.expect("failed to set password"); let password = keyring.get_password().await.expect("failed to get password"); println!("Retrieved password: {}", password);
Debug
Known issues
gotchaRequires an async runtime (e.g., tokio) for .await calls.
fix
Add tokio as a dependency and use #[tokio::main].
affects: >=1.0.0
Upgrade
Version history
1.0.3latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
20 hits · last 30 days
node
18
Amazon
1
OpenAI (training)
1
Resources
keyring-lib — cargo add keyring-lib · libregistry