chore: 移除测试 keyring 功能的临时文件
This commit is contained in:
@@ -1,7 +0,0 @@
|
||||
[package]
|
||||
name = "test-keyring"
|
||||
version = "0.1.0"
|
||||
edition = "2024"
|
||||
|
||||
[dependencies]
|
||||
keyring = "3"
|
||||
@@ -1,7 +0,0 @@
|
||||
[package]
|
||||
name = "test-keyring"
|
||||
version = "0.1.0"
|
||||
edition = "2024"
|
||||
|
||||
[dependencies]
|
||||
keyring = "3"
|
||||
@@ -1,18 +0,0 @@
|
||||
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!");
|
||||
}
|
||||
@@ -1,18 +0,0 @@
|
||||
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!");
|
||||
}
|
||||
Reference in New Issue
Block a user