Skip to content

Commit 47b4633

Browse files
author
Michael-F-Bryan
committed
fix: Bumped the virtual-fs dependency so we get a non-buggy StaticFile implementation (fixes #366)
1 parent 4677927 commit 47b4633

File tree

4 files changed

+28
-27
lines changed

4 files changed

+28
-27
lines changed

Cargo.lock

+23-22
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,15 @@ tracing = { version = "0.1", features = ["log", "release_max_level_debug"] }
2929
tracing-futures = { version = "0.2" }
3030
tracing-subscriber = { version = "0.3.17", features = ["env-filter"] }
3131
url = "2.4.0"
32-
virtual-fs = { version = "0.9.0", default-features = false }
32+
virtual-fs = { version = "0.10.0", default-features = false }
3333
virtual-net = { version = "0.6.0", default-features = false, features = ["remote"] }
3434
wasm-bindgen = { version = "0.2" }
3535
wasm-bindgen-derive = "0.2.1"
3636
wasm-bindgen-downcast = "0.1"
3737
wasm-bindgen-futures = "0.4"
3838
wasm-bindgen-test = "0.3.37"
39-
wasmer = { version = "4.2.2", default-features = false, features = ["js", "js-default", "tracing", "wasm-types-polyfill", "enable-serde"] }
40-
wasmer-wasix = { version = "0.16", default-features = false, features = ["js", "js-default"] }
39+
wasmer = { version = "4.2.4", default-features = false, features = ["js", "js-default", "tracing", "wasm-types-polyfill", "enable-serde"] }
40+
wasmer-wasix = { version = "0.17", default-features = false, features = ["js", "js-default"] }
4141
webc = "5.3.0"
4242

4343
[dependencies.web-sys]

src/options.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ impl RunOptions {
188188

189189
let stdin = match self.read_stdin() {
190190
Some(stdin) => {
191-
let f = virtual_fs::StaticFile::new(stdin.into());
191+
let f = virtual_fs::StaticFile::new(stdin);
192192
builder.set_stdin(Box::new(f));
193193
None
194194
}

src/wasmer.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ fn setup_tty(options: &SpawnOptions, tty_options: TtyOptions) -> TerminalMode {
270270
// Handle the simple (non-interactive) case first.
271271
if let Some(stdin) = options.read_stdin() {
272272
return TerminalMode::NonInteractive {
273-
stdin: virtual_fs::StaticFile::new(stdin.into()),
273+
stdin: virtual_fs::StaticFile::new(stdin),
274274
};
275275
}
276276

0 commit comments

Comments
 (0)