From bf21ebaaae44b267cfefc87eee9608c09aab96b7 Mon Sep 17 00:00:00 2001 From: Will Dillon Date: Thu, 4 Dec 2025 17:07:12 +0000 Subject: Getting closer to no-std being done --- src/lib.rs | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) (limited to 'src/lib.rs') 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; -- cgit v1.2.3