lib.rs (554B)
1 #![doc = include_str!("../README.md")] 2 #![forbid(unsafe_code)] 3 #![cfg_attr(coverage_nightly, feature(coverage_attribute))] 4 5 mod connector; 6 mod socket; 7 mod wire; 8 9 pub use connector::NativeConnector; 10 11 /// Composes the shared Nostr session with the native socket provider. 12 /// Construction opens no socket and creates no runtime or worker. 13 pub fn create_transport( 14 config: radroots_transport_nostr::Config, 15 ) -> radroots_transport_nostr::NostrTransport { 16 radroots_transport_nostr::NostrTransport::new(config, std::sync::Arc::new(NativeConnector)) 17 }