18 lines
527 B
Rust
18 lines
527 B
Rust
use keyring::Entry;
|
|
|
|
fn main() {
|
|
println!("Testing keyring functionality...");
|
|
|
|
// Test storing password
|
|
let entry = Entry::new("test-service", "test-user").unwrap();
|
|
println!("Created entry successfully");
|
|
|
|
entry.set_password("test-password").unwrap();
|
|
println!("Stored password successfully");
|
|
|
|
// Test retrieving password
|
|
let retrieved = entry.get_password().unwrap();
|
|
println!("Retrieved password: {}", retrieved);
|
|
|
|
println!("Keyring test completed successfully!");
|
|
} |