lib.rs (1320B)
1 #![cfg_attr(not(feature = "std"), no_std)] 2 #![forbid(unsafe_code)] 3 4 extern crate alloc; 5 6 #[cfg(feature = "std")] 7 pub mod client; 8 pub mod error; 9 pub mod executor; 10 pub mod frame; 11 pub mod handshake; 12 13 pub mod prelude { 14 #[cfg(feature = "std")] 15 pub use crate::client::RadrootsSimplexSmpTlsCommandTransport; 16 pub use crate::error::RadrootsSimplexSmpTransportError; 17 pub use crate::executor::{ 18 RadrootsSimplexSmpCommandTransport, RadrootsSimplexSmpSubscriptionReceiveRequest, 19 RadrootsSimplexSmpSubscriptionTransport, RadrootsSimplexSmpTransportRequest, 20 RadrootsSimplexSmpTransportResponse, 21 }; 22 pub use crate::frame::{ 23 RADROOTS_SIMPLEX_SMP_TRANSPORT_BLOCK_SIZE, RADROOTS_SIMPLEX_SMP_TRANSPORT_PAD_BYTE, 24 RadrootsSimplexSmpTransportBlock, decode_padded_bytes, encode_padded_bytes, 25 }; 26 pub use crate::handshake::{ 27 RADROOTS_SIMPLEX_SMP_TLS_ALPN_V1, RADROOTS_SIMPLEX_SMP_TLS_KEY_EXCHANGE_GROUP, 28 RADROOTS_SIMPLEX_SMP_TLS_SIGNATURE_ALGORITHM, RADROOTS_SIMPLEX_SMP_TLS_V1_3_CIPHER_SUITE, 29 RadrootsSimplexSmpClientHello, RadrootsSimplexSmpServerHello, 30 RadrootsSimplexSmpTlsHandshakeEvidence, RadrootsSimplexSmpTlsPolicy, 31 RadrootsSimplexSmpTransportServerProof, negotiate_transport_version, 32 validate_tls_handshake, 33 }; 34 }