diff options
| author | Henry Gressmann <mail@henrygressmann.de> | 2025-11-27 22:11:43 +0100 |
|---|---|---|
| committer | Henry Gressmann <mail@henrygressmann.de> | 2025-11-27 22:11:43 +0100 |
| commit | f7f77cd3026e39a2c29faf539575ef57165c81db (patch) | |
| tree | a3de97f1b68a0bdafd32d5d52308e8045b6c150f /crates/types/src | |
| parent | 3e58e9846fe613f34e72d040463be5ab7e191e8b (diff) | |
chore: remove unstable-simd feature, rename logging feature to log
Signed-off-by: Henry Gressmann <mail@henrygressmann.de>
Diffstat (limited to 'crates/types/src')
| -rw-r--r-- | crates/types/src/archive.rs | 1 | ||||
| -rw-r--r-- | crates/types/src/lib.rs | 4 |
2 files changed, 2 insertions, 3 deletions
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<Self, TwasmError> { 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)*) => {{}} ); |
