lib.rs (1234B)
1 #![cfg_attr(not(feature = "std"), no_std)] 2 #![forbid(unsafe_code)] 3 4 pub mod error; 5 #[cfg(feature = "std")] 6 pub mod manager; 7 #[cfg(feature = "std")] 8 pub mod model; 9 #[cfg(feature = "ndb-bridge")] 10 pub mod ndb_bridge; 11 #[cfg(feature = "std")] 12 pub mod store; 13 #[cfg(feature = "std")] 14 pub mod vault; 15 16 pub mod prelude { 17 pub use crate::error::RadrootsNostrAccountsError; 18 #[cfg(feature = "std")] 19 pub use crate::manager::RadrootsNostrAccountsManager; 20 #[cfg(feature = "std")] 21 pub use crate::model::{ 22 RADROOTS_NOSTR_ACCOUNTS_STORE_VERSION, RadrootsNostrAccountRecord, 23 RadrootsNostrAccountStatus, RadrootsNostrAccountStoreState, 24 }; 25 #[cfg(feature = "ndb-bridge")] 26 pub use crate::ndb_bridge::radroots_nostr_accounts_register_default_secret_with_ndb; 27 #[cfg(feature = "std")] 28 pub use crate::store::{ 29 RadrootsNostrAccountStore, RadrootsNostrFileAccountStore, RadrootsNostrMemoryAccountStore, 30 }; 31 #[cfg(feature = "memory-vault")] 32 pub use crate::vault::RadrootsNostrSecretVaultMemory; 33 #[cfg(feature = "os-keyring")] 34 pub use crate::vault::RadrootsNostrSecretVaultOsKeyring; 35 #[cfg(feature = "std")] 36 pub use crate::vault::{RadrootsSecretVault, account_secret_slot}; 37 }