From f7f77cd3026e39a2c29faf539575ef57165c81db Mon Sep 17 00:00:00 2001 From: Henry Gressmann Date: Thu, 27 Nov 2025 22:11:43 +0100 Subject: chore: remove unstable-simd feature, rename logging feature to log Signed-off-by: Henry Gressmann --- crates/types/src/archive.rs | 1 - crates/types/src/lib.rs | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'crates/types/src') diff --git a/crates/types/src/archive.rs b/crates/types/src/archive.rs index 7d52049..069addf 100644 --- a/crates/types/src/archive.rs +++ b/crates/types/src/archive.rs @@ -51,7 +51,6 @@ impl TinyWasmModule { /// Creates a `TinyWasmModule` from a slice of bytes. pub fn from_twasm(wasm: &[u8]) -> Result { let len = validate_magic(wasm)?; - postcard::from_bytes(&wasm[len..]).map_err(TwasmError::InvalidArchive) } diff --git a/crates/types/src/lib.rs b/crates/types/src/lib.rs index c34b705..beaa828 100644 --- a/crates/types/src/lib.rs +++ b/crates/types/src/lib.rs @@ -21,12 +21,12 @@ const fn max_page_count(page_size: u64) -> u64 { } // log for logging (optional). -#[cfg(feature = "logging")] +#[cfg(feature = "log")] #[allow(clippy::single_component_path_imports, unused_imports)] use log; // noop fallback if logging is disabled. -#[cfg(not(feature = "logging"))] +#[cfg(not(feature = "log"))] #[allow(unused_imports, unused_macros)] pub(crate) mod log { macro_rules! debug ( ($($tt:tt)*) => {{}} ); -- cgit v1.3.1