#[cfg(target_os = "macos")]
pub fn install_default_store() -> keyring_core::Result<()> {
let store = apple_native_keyring_store::keychain::Store::new()?;
keyring_core::set_default_store(store);
Ok(())
}
#[cfg(target_os = "linux")]
pub fn install_default_store() -> keyring_core::Result<()> {
let store = dbus_secret_service_keyring_store::Store::new()?;
keyring_core::set_default_store(store);
Ok(())
}
#[cfg(target_os = "windows")]
pub fn install_default_store() -> keyring_core::Result<()> {
let store = windows_native_keyring_store::Store::new()?;
keyring_core::set_default_store(store);
Ok(())
}
#[cfg(not(any(target_os = "macos", target_os = "linux", target_os = "windows")))]
compile_error!(
"vta-sdk `keyring` feature requires target_os in (macos, linux, windows). \
Disable the feature or build for a supported OS."
);