Skip to content

Commit 7fce001

Browse files
authored
Merge pull request #308 from bytecodealliance/wasmtime-v18.0.0
chore: Update to wasmtime v18.0.3
2 parents 7335826 + 17db021 commit 7fce001

File tree

8 files changed

+105
-144
lines changed

8 files changed

+105
-144
lines changed

Cargo.lock

Lines changed: 92 additions & 130 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
wasmtime (17.0.2)
4+
wasmtime (18.0.3)
55
rb_sys (~> 0.9.86)
66

77
GEM

ext/Cargo.toml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,9 @@ magnus = { version = "0.6", features = ["rb-sys"] }
2121
rb-sys = { version = "*", default-features = false, features = [
2222
"stable-api-compiled-fallback",
2323
] }
24-
wasmtime = { version = "= 17.0.2" }
25-
wasmtime-wasi = "= 17.0.2"
26-
wasi-common = "= 17.0.2"
27-
wasi-cap-std-sync = "17.0.2"
24+
wasmtime = { version = "=18.0.3" }
25+
wasmtime-wasi = "=18.0.3"
26+
wasi-common = "=18.0.3"
2827
cap-std = "2.0.0"
2928
anyhow = "*" # Use whatever Wasmtime uses
3029
wat = "1.201.0"
@@ -38,9 +37,9 @@ async-timer = { version = "1.0.0-beta.11", features = [
3837
"tokio1",
3938
], optional = true }
4039
static_assertions = "1.1.0"
41-
wasmtime-runtime = "17.0.2"
42-
wasmtime-environ = "= 17.0.2"
43-
deterministic-wasi-ctx = "=0.1.18"
40+
wasmtime-runtime = "=18.0.3"
41+
wasmtime-environ = "=18.0.3"
42+
deterministic-wasi-ctx = "=0.1.19"
4443

4544
[build-dependencies]
4645
rb-sys-env = "0.1.2"

ext/src/ruby_api/config/tracked_memory_creator.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ unsafe impl MemoryCreator for TrackedMemoryCreator {
6969
shared: ty.is_shared(),
7070
memory64: ty.is_64(),
7171
};
72-
let tunables = wasmtime_environ::Tunables::default();
72+
let tunables = wasmtime_environ::Tunables::default_host();
7373
let plan = MemoryPlan::for_memory(memory, &tunables);
7474
let base = default_memory_creator
7575
.new_memory(&plan, minimum, maximum, None)

ext/src/ruby_api/store.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ use magnus::{Class, RHash};
1414
use std::borrow::Borrow;
1515
use std::cell::UnsafeCell;
1616
use std::convert::TryFrom;
17+
use wasi_common::{I32Exit, WasiCtx as WasiCtxImpl};
1718
use wasmtime::{
1819
AsContext, AsContextMut, Store as StoreImpl, StoreContext, StoreContextMut, StoreLimits,
1920
StoreLimitsBuilder,
2021
};
21-
use wasmtime_wasi::{I32Exit, WasiCtx as WasiCtxImpl};
2222

2323
define_rb_intern!(
2424
WASI_CTX => "wasi_ctx",

ext/src/ruby_api/wasi_ctx.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use magnus::{
1111
};
1212
use std::{borrow::Borrow, cell::RefCell, fs::File, path::PathBuf};
1313
use wasi_common::pipe::ReadPipe;
14-
use wasmtime_wasi::WasiCtx as WasiCtxImpl;
14+
use wasi_common::WasiCtx as WasiCtxImpl;
1515

1616
/// @yard
1717
/// WASI context to be sent as {Store#new}’s +wasi_ctx+ keyword argument.

ext/src/ruby_api/wasi_ctx_builder.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,9 +260,9 @@ pub fn file_w(path: RString) -> Result<File, Error> {
260260
.map_err(|e| error!("Failed to write to file {}\n{}", path, e))
261261
}
262262

263-
pub fn wasi_file(file: File) -> Box<wasi_cap_std_sync::file::File> {
263+
pub fn wasi_file(file: File) -> Box<wasmtime_wasi::file::File> {
264264
let file = cap_std::fs::File::from_std(file);
265-
let file = wasi_cap_std_sync::file::File::from_cap_std(file);
265+
let file = wasmtime_wasi::file::File::from_cap_std(file);
266266
Box::new(file)
267267
}
268268

lib/wasmtime/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# frozen_string_literal: true
22

33
module Wasmtime
4-
VERSION = "17.0.2"
4+
VERSION = "18.0.3"
55
end

0 commit comments

Comments
 (0)