lib.rs (2850B)
1 #![cfg_attr(coverage_nightly, feature(coverage_attribute))] 2 #![forbid(unsafe_code)] 3 4 pub mod backend; 5 pub mod capability; 6 pub mod error; 7 pub mod evaluation; 8 pub mod manager; 9 #[cfg(feature = "native")] 10 pub mod migrations; 11 pub mod model; 12 pub mod nip46; 13 #[cfg(feature = "native")] 14 pub mod sqlite; 15 pub mod store; 16 17 #[cfg(test)] 18 mod test_fixtures; 19 #[cfg(test)] 20 mod test_support; 21 22 pub mod prelude { 23 pub use crate::backend::{ 24 RadrootsNostrEmbeddedSignerBackend, RadrootsNostrSignerBackend, 25 RadrootsNostrSignerBackendCapabilities, RadrootsNostrSignerPublishTransition, 26 RadrootsNostrSignerSignOutput, 27 }; 28 pub use crate::capability::{ 29 RadrootsNostrLocalSignerAvailability, RadrootsNostrLocalSignerCapability, 30 RadrootsNostrRemoteSessionSignerCapability, RadrootsNostrSignerCapability, 31 }; 32 pub use crate::error::RadrootsNostrSignerError; 33 pub use crate::evaluation::{ 34 RadrootsNostrSignerConnectEvaluation, RadrootsNostrSignerConnectProposal, 35 RadrootsNostrSignerRequestAction, RadrootsNostrSignerRequestEvaluation, 36 RadrootsNostrSignerRequestResponseHint, RadrootsNostrSignerSessionLookup, 37 }; 38 pub use crate::manager::RadrootsNostrSignerManager; 39 pub use crate::model::{ 40 RADROOTS_NOSTR_SIGNER_STORE_VERSION, RadrootsNostrSignerApprovalRequirement, 41 RadrootsNostrSignerApprovalState, RadrootsNostrSignerAuthChallenge, 42 RadrootsNostrSignerAuthState, RadrootsNostrSignerAuthorizationOutcome, 43 RadrootsNostrSignerConnectSecretHash, RadrootsNostrSignerConnectionDraft, 44 RadrootsNostrSignerConnectionId, RadrootsNostrSignerConnectionRecord, 45 RadrootsNostrSignerConnectionStatus, RadrootsNostrSignerPendingRequest, 46 RadrootsNostrSignerPermissionGrant, RadrootsNostrSignerPublishWorkflowKind, 47 RadrootsNostrSignerPublishWorkflowRecord, RadrootsNostrSignerPublishWorkflowState, 48 RadrootsNostrSignerRequestAuditRecord, RadrootsNostrSignerRequestDecision, 49 RadrootsNostrSignerRequestId, RadrootsNostrSignerSecretDigestAlgorithm, 50 RadrootsNostrSignerStoreState, RadrootsNostrSignerWorkflowId, 51 }; 52 pub use crate::nip46::{ 53 RadrootsNostrSignerHandledRequest, RadrootsNostrSignerHandledRequestOutcome, 54 RadrootsNostrSignerNip46Codec, RadrootsNostrSignerNip46ConnectDecision, 55 RadrootsNostrSignerNip46Handler, RadrootsNostrSignerNip46Policy, 56 RadrootsNostrSignerNip46Signer, connect_response_outcome, handled_request_for_action, 57 response_from_hint, 58 }; 59 #[cfg(feature = "native")] 60 pub use crate::sqlite::RadrootsNostrSignerSqliteDb; 61 #[cfg(feature = "native")] 62 pub use crate::store::RadrootsNostrSqliteSignerStore; 63 pub use crate::store::{ 64 RadrootsNostrFileSignerStore, RadrootsNostrMemorySignerStore, RadrootsNostrSignerStore, 65 }; 66 }