Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,688 changes: 719 additions & 969 deletions Cargo.lock

Large diffs are not rendered by default.

134 changes: 67 additions & 67 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ sha2 = "0.10"
async-trait = "0.1.68"
getrandom = "0.2"
ciborium = "0.2.2"
bytesize = "1.3.0"
bytesize = "2.3.1"
semver = "1.0"
tempfile = "3.6.0"
cfg-if = "1.0"
Expand All @@ -115,37 +115,37 @@ flate2 = "1.0.34"
log = "0.4.22"
blake3 = "1.0"
rayon = "1.7.0"
itertools = "0.12"
itertools = "0.14"
byteorder = "1.3"
more-asserts = "0.2"
enum-iterator = "0.7.0"
more-asserts = "0.3.1"
enum-iterator = "2.3.0"
backtrace = "0.3"
hashbrown = "0.11"
hashbrown = "0.16.1"
smallvec = "1.6"
region = "3.0"
once_cell = "1.17.1"
num_enum = "0.7.3"
dashmap = "6.0.1"
http = "1.0.0"
hyper = "1"
dashmap = "6.1.0"
http = "1.4.0"
hyper = "1.8.1"
hyper-util = "0.1.5"
http-body-util = "0.1.1"
reqwest = { version = "0.12.0", default-features = false }
enumset = "1.1.0"
memoffset = "0.9.0"
memoffset = "0.9.1"
wasmparser = { version = "0.224.0", default-features = false, features = [
"validate",
"features",
"simd",
] }
rkyv = { version = "0.8.8", features = ["indexmap-2", "bytes-1"] }
memmap2 = { version = "0.6.2" }
toml = { version = "0.8", features = ["preserve_order"] }
memmap2 = { version = "0.9.9" }
toml = { version = "0.9.8", features = ["preserve_order"] }
indexmap = "2"
serde = { version = "1", default-features = false }
serde_yaml = { version = "0.9.34" }
serde_json = { version = "1" }
bytecheck = { version = "0.6.8" }
bytecheck = { version = "0.8.2" }
libc = { version = "^0.2", default-features = false }
gimli = { version = "0.32.3" }
futures-util = { version = "0.3.31" }
Expand All @@ -156,67 +156,67 @@ tokio-tungstenite = { version = "0.24.0" }
tracing = { version = "0.1", default-features = false }
tracing-subscriber = { version = "0.3", default-features = false }
tracing-test = { version = "0.2" }
socket2 = { version = "0.5.7", features = ["all"] }
socket2 = { version = "0.6.1", features = ["all"] }
pretty_assertions = "1.4.0"
base64 = "0.22.0"
time = { version = "0.3.36", default-features = false }
base64 = "0.22.1"
time = { version = "0.3.44", default-features = false }
url = "2.5"
thiserror = "1"
thiserror = "2.0.17"
target-lexicon = { version = "0.13.3", default-features = false }
object = "0.32.0"
object = "0.38.0"
derive_more = { version = "2.0.1", features = ["debug", "display"] }
wasm-encoder = { version = "0.235.0", default-features = false, features = [
wasm-encoder = { version = "0.242.0", default-features = false, features = [
"std",
] }
ignore = "0.4"
parking_lot = "=0.12.1"
clap = { version = "=4.5.50", default-features = false }
clap_builder = { version = "=4.5.50" }
clap_derive = { version = "=4.5.49" }
clap_lex = { version = "=0.7.6" }
parking_lot = "0.12.1"
clap = { version = "4.5.53", default-features = false }
clap_builder = { version = "4.5.53" }
clap_derive = { version = "4.5.49" }
clap_lex = { version = "0.7.6" }
fs_extra = {version = "1.3.0"}
inkwell = {version = "0.7.0", default-features = false}
phf = "0.11.2"
inkwell = {version = "0.7.1", default-features = false}
phf = "0.13.1"
dynasm = "4.0.0"
dynasmrt = "4.0.0"
cc = "1.0"
cc = "1.2.47"
regex = "1.11"
rustc_version = "0.4"
cranelift-entity = { version = "=0.126.0", default-features = false }
cranelift-codegen = { version = "=0.126.0", default-features = false }
cranelift-frontend = { version = "=0.126.0", default-features = false }
cranelift-entity = { version = "=0.126.1", default-features = false }
cranelift-codegen = { version = "=0.126.1", default-features = false }
cranelift-frontend = { version = "=0.126.1", default-features = false }
xxhash-rust = { version = "0.8.10", default-features = false }
macho-unwind-info = "0.5.0"
windows-sys = { version = "0.59", default-features = false }
leb128 = "0.2"
self_cell = "1.0"
build-deps = "0.1.4"
glob = "0.3"
criterion = { version = "0.5", default-features = false }
serial_test = { version = "2.0", default-features = false }
ureq = "2.10.1"
criterion = { version = "0.7", default-features = false }
serial_test = { version = "3.2.0", default-features = false }
ureq = "3.1.4"
gumdrop = "0.8"
wast = "221.0.2"
wast = "242.0.0"
axum = { version = "=0.6.9", default-features = false }
trybuild = "1.0.11"
cynic = { version = "3.7.2", default-features = false }
futures = "0.3.30"
indicatif = "0.17.8"
indicatif = "0.18.3"
libfuzzer-sys = "0.4.0"
wasm-smith = "0.4.4"
wasmprinter = "0.2"
wasmprinter = "0.242.0"
wasm-bindgen-test = "0.3.0"
wat = "1.0"
wat = "1.242.0"
serde-wasm-bindgen = "0.6.5"
js-sys = "0.3.77"
wasm-bindgen = "0.2.100"
rusty_jsc = "0.1.0"
paste = "1.0.15"
rustc-demangle = "0.1"
cmake = "0.1.50"
which = "7.0.0"
which = "8.0.0"
xz = "0.1.0"
zip = { version = "2.4", default-features = false }
zip = { version = "6.0.0", default-features = false }
bindgen = { version = "0.72.1", default-features = false }
harsh = "0.2.2"
merge-streams = "0.1.2"
Expand All @@ -225,43 +225,43 @@ serde_path_to_error = "0.1.14"
async-tungstenite = "0.28.0"
graphql-ws-client = "0.11.0"
uuid = { version = "1", default-features = false }
typetag = "0.1"
typetag = "0.2.21"
field-offset = "0.3.3"
cbindgen = { version = "0.29", default-features = false }
inline-c = "0.1.7"
wasmer-inline-c = "0.1.1"
walkdir = "2.3.2"
rand = "0.9.1"
colored = "2.0"
dirs = "4.0"
rand = "0.9.2"
colored = "3.0.0"
dirs = "6.0.0"
path-clean = "1.0.1"
cargo_metadata = "0.15.2"
dialoguer = "0.11.0"
cargo_metadata = "0.23.1"
dialoguer = "0.12.0"
pathdiff = "0.2.1"
normpath = "=1.1.1"
opener = "0.6.1"
normpath = "1.5.0"
opener = "0.8.3"
wasm-coredump-builder = "0.1.11"
comfy-table = "=7.1.4"
comfy-table = "7.2.1"
git-version = "0.3.9"
humantime = "2.1.0"
interfaces = "0.0.9"
mac_address = "1.1.5"
clap_complete = "4.5.59"
clap_complete = "4.5.61"
clap_mangen = "0.2.31"
console = "0.15.8"
console-subscriber = "0.4"
console = "0.16.1"
console-subscriber = "0.5.0"
dotenvy = "0.15.7"
lzma-rs = "0.3.0"
assert_cmd = "2.0.11"
predicates = "3.0.3"
derive_builder = "0.12.0"
assert_cmd = "2.1.1"
predicates = "3.1.3"
derive_builder = "0.20.2"
saffron = "0.1.0"
schemars = "0.8.16"
compiletest_rs = "0.6"
schemars = "1.1.0"
compiletest_rs = "0.11.2"
bincode = "1.3"
lz4_flex = "0.11"
lz4_flex = "0.12.0"
hexdump = "0.1.2"
uniffi = "0.27"
uniffi = "0.30.0"
dunce = "1.0.4"
filetime = "0.2.18"
replace_with = "0.1.7"
Expand All @@ -271,7 +271,7 @@ parking = "2.2"
hyper-tungstenite = "0.13"
ipnet = "2.10.1"
iprange = "0.6.7"
smoltcp = { version = "0.8", default-features = false }
smoltcp = { version = "0.12.0", default-features = false }
tokio-serde = "0.9"
tokio-util = "0.7.8"
corosensei = "0.3.0"
Expand All @@ -281,7 +281,7 @@ scopeguard = "1.1.0"
rustversion = "1.0"
libunwind = "1.3.3"
mach2 = "0.4.2"
bitflags = "1.2"
bitflags = "2.10.0"
wai-bindgen-wasmer-impl = "0.2.2"
wai-bindgen-rust = { version = "0.2.1", default-features = false }
wai-bindgen-gen-core = { version = "0.2.1", default-features = false }
Expand All @@ -292,16 +292,16 @@ bus = "2.4.1"
chrono = { version = "^0.4.38", default-features = false }
cooked-waker = "^5"
crossbeam-channel = "0.5.15"
heapless = "0.8"
linked_hash_set = { version = "0.1" }
petgraph = "0.7.0"
heapless = "0.9.2"
linked_hash_set = "0.1.6"
petgraph = "0.8.3"
pin-project = "1.0.12"
pin-utils = "0.1.0"
rusty_pool = "0.7.0"
serde_derive = "^1"
tokio-stream = "0.1"
tower = "0.4.13"
tower-http = "0.5.0"
tower = "0.5.2"
tower-http = "0.6.7"
urlencoding = "^2"
waker-fn = "1.1"
wasm-bindgen-futures = "0.4.37"
Expand All @@ -312,10 +312,10 @@ weezl = "^0.1"
assert-panic = "1.0.1"
env_logger = { version = "0.11.5", default-features = false }
termios = "0.3"
terminal_size = "0.3.0"
terminal_size = "0.4.3"
tracing-wasm = "0.2"
insta = "1.21.1"
md5 = "0.7.0"
insta = "1.44.2"
md5 = "0.8.0"
syn = { version = "2", default-features = false }
proc-macro2 = "1"
proc-macro-error2 = "2.0.1"
Expand Down
4 changes: 3 additions & 1 deletion benches/import_functions.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
use criterion::{Criterion, black_box, criterion_group, criterion_main};
use std::hint::black_box;

use criterion::{Criterion, criterion_group, criterion_main};

use wasmer::*;

Expand Down
4 changes: 3 additions & 1 deletion benches/static_and_dynamic_functions.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
use criterion::{Criterion, black_box, criterion_group, criterion_main};
use std::hint::black_box;

use criterion::{Criterion, criterion_group, criterion_main};

use wasmer::*;

Expand Down
11 changes: 1 addition & 10 deletions examples/http_dynamic_size.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,7 @@ fn http_get(mut ctx: FunctionEnvMut<ExampleEnv>, url: u32, url_len: u32) -> u32

// Get request
let response = ureq::get(&address).call().unwrap();
let capacity = match response
.header("Content-Length")
.map(|it| it.parse::<usize>())
{
Some(Ok(len)) => len,
_ => 1024,
};
let mut buffer = Vec::with_capacity(capacity);
let mut reader = response.into_reader();
reader.read_to_end(&mut buffer).unwrap();
let buffer = response.into_body().read_to_vec().unwrap();
(buffer, memory_size)
};

Expand Down
23 changes: 14 additions & 9 deletions lib/api/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,13 @@ fn build_wamr() {
let _ = std::fs::remove_dir_all(&zip_dir);

// Fetch & extract wasm-micro-runtime source
let zip = ureq::get(WAMR_ZIP).call().expect("failed to download wamr");
let mut zip_data = Vec::new();
zip.into_reader()
.read_to_end(&mut zip_data)
let zip_data = ureq::get(WAMR_ZIP)
.call()
.expect("failed to download wamr")
.body_mut()
.with_config()
.limit(50 * 1024 * 1024) // 50MB
.read_to_vec()
.expect("failed to download wamr");
std::fs::create_dir_all(&zip_dir)
.expect("Failed to create temporary zip extraction directory");
Expand Down Expand Up @@ -273,11 +276,13 @@ fn build_v8() {
let crate_root = env::var("CARGO_MANIFEST_DIR").unwrap();
let v8_header_path = PathBuf::from(&crate_root).join("third-party").join("wee8");

let tar = ureq::get(url).call().expect("failed to download v8");

let mut tar_data = Vec::new();
tar.into_reader()
.read_to_end(&mut tar_data)
let tar_data = ureq::get(url)
.call()
.expect("failed to download v8")
.body_mut()
.with_config()
.limit(50 * 1024 * 1024) // 50MB
.read_to_vec()
.expect("failed to download v8 lib");

let tar = xz::read::XzDecoder::new(tar_data.as_slice());
Expand Down
4 changes: 2 additions & 2 deletions lib/cache/benches/bench_filesystem_cache.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#![allow(unused_imports)]
use criterion::{Criterion, black_box, criterion_group, criterion_main};
use rand::distributions::Alphanumeric;
use rand::{Rng, thread_rng};
use rand::distr::Alphanumeric;
use rand::{Rng, rng};
use tempfile::TempDir;
use wasmer::{Module, Store};
use wasmer_cache::Cache;
Expand Down
2 changes: 1 addition & 1 deletion lib/cli/src/commands/init.rs
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,7 @@ fn parse_cargo_toml(manifest_path: &PathBuf) -> Result<MiniCargoTomlPackage, any

Ok(MiniCargoTomlPackage {
cargo_toml_path: manifest_path.clone(),
name: package.name.clone(),
name: package.name.as_str().to_owned(),
version: package.version.clone(),
description: package.description.clone(),
homepage: package.homepage.clone(),
Expand Down
Loading
Loading