You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

wasm-encoder

Package Overview
Dependencies
Maintainers
0
Versions
120
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wasm-encoder - cargo Package Compare versions

Comparing version
0.242.0
to
0.243.0
+1
-1
.cargo_vcs_info.json
{
"git": {
"sha1": "8ebed07de87638d991e144fa5b79b904b1758987"
"sha1": "d05406062d031ae96146486f58a965d87eefea5e"
},
"path_in_vcs": "crates/wasm-encoder"
}

@@ -155,3 +155,3 @@ # This file is automatically @generated by Cargo.

name = "wasm-encoder"
version = "0.242.0"
version = "0.243.0"
dependencies = [

@@ -167,5 +167,5 @@ "anyhow",

name = "wasmparser"
version = "0.242.0"
version = "0.243.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ed3c6e611f4cd748d85c767815823b777dc56afca793fcda27beae4e85028849"
checksum = "f6d8db401b0528ec316dfbe579e6ab4152d61739cfe076706d2009127970159d"
dependencies = [

@@ -179,5 +179,5 @@ "bitflags",

name = "wasmprinter"
version = "0.242.0"
version = "0.243.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "936a79bf33649f3aa0cd7cdf495e62ac0c718b3630ab53946df6dc2eff73a0d6"
checksum = "eb2b6035559e146114c29a909a3232928ee488d6507a1504d8934e8607b36d7b"
dependencies = [

@@ -184,0 +184,0 @@ "anyhow",

@@ -16,3 +16,3 @@ # THIS FILE IS AUTOMATICALLY GENERATED BY CARGO

name = "wasm-encoder"
version = "0.242.0"
version = "0.243.0"
authors = ["Nick Fitzgerald <fitzgen@gmail.com>"]

@@ -54,3 +54,3 @@ build = "build.rs"

[dependencies.wasmparser]
version = "0.242.0"
version = "0.243.0"
features = [

@@ -70,3 +70,3 @@ "simd",

[dev-dependencies.wasmprinter]
version = "0.242.0"
version = "0.243.0"
default-features = false

@@ -73,0 +73,0 @@

@@ -49,2 +49,3 @@ mod branch_hints;

pub(crate) const CORE_TAG_SORT: u8 = 0x04;
pub(crate) const CORE_FUNCTION_EXACT_SORT: u8 = 0x20;

@@ -51,0 +52,0 @@ /// A WebAssembly module section.

use crate::{
CORE_FUNCTION_SORT, CORE_GLOBAL_SORT, CORE_MEMORY_SORT, CORE_TABLE_SORT, CORE_TAG_SORT, Encode,
GlobalType, MemoryType, Section, SectionId, TableType, TagType, encode_section,
CORE_FUNCTION_EXACT_SORT, CORE_FUNCTION_SORT, CORE_GLOBAL_SORT, CORE_MEMORY_SORT,
CORE_TABLE_SORT, CORE_TAG_SORT, Encode, GlobalType, MemoryType, Section, SectionId, TableType,
TagType, encode_section,
};

@@ -24,2 +25,6 @@ use alloc::vec::Vec;

Tag(TagType),
/// A function exact type.
///
/// The value is an index into the types section.
FunctionExact(u32),
}

@@ -30,6 +35,10 @@

match self {
Self::Function(i) => {
Self::Function(f) => {
sink.push(CORE_FUNCTION_SORT);
i.encode(sink);
f.encode(sink);
}
Self::FunctionExact(f) => {
sink.push(CORE_FUNCTION_EXACT_SORT);
f.encode(sink);
}
Self::Table(t) => {

@@ -36,0 +45,0 @@ sink.push(CORE_TABLE_SORT);

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display