diff options
Diffstat (limited to 'src/lib.rs')
| -rw-r--r-- | src/lib.rs | 20 |
1 files changed, 19 insertions, 1 deletions
@@ -1,5 +1,23 @@ +#![cfg_attr(not(feature = "std"), no_std)] + pub mod crypto; -pub mod identity; +pub mod string_helper; + +#[derive(Debug, PartialEq)] +pub enum MeshcoreStringError { + StringLengthError, + StringUnicodeError, + StringEncrypted, +} + +// This version of identity is pretty specific +// to the std version of this library. +#[cfg(feature = "std")] +pub mod std_identity; + +// This version of identity is no-std +#[cfg(not(feature = "std"))] +pub(crate) mod no_std_identity; pub mod packet; pub mod packet_content; |
