aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs20
1 files changed, 19 insertions, 1 deletions
diff --git a/src/lib.rs b/src/lib.rs
index dfd777f..621dcf4 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -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;