Skip to content

Commit

Permalink
fix: Bumped the virtual-fs dependency so we get a non-buggy `Static…
Browse files Browse the repository at this point in the history
…File` implementation (fixes wasmerio#366)
  • Loading branch information
Michael-F-Bryan committed Dec 14, 2023
1 parent 4677927 commit 47b4633
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 27 deletions.
45 changes: 23 additions & 22 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@ tracing = { version = "0.1", features = ["log", "release_max_level_debug"] }
tracing-futures = { version = "0.2" }
tracing-subscriber = { version = "0.3.17", features = ["env-filter"] }
url = "2.4.0"
virtual-fs = { version = "0.9.0", default-features = false }
virtual-fs = { version = "0.10.0", default-features = false }
virtual-net = { version = "0.6.0", default-features = false, features = ["remote"] }
wasm-bindgen = { version = "0.2" }
wasm-bindgen-derive = "0.2.1"
wasm-bindgen-downcast = "0.1"
wasm-bindgen-futures = "0.4"
wasm-bindgen-test = "0.3.37"
wasmer = { version = "4.2.2", default-features = false, features = ["js", "js-default", "tracing", "wasm-types-polyfill", "enable-serde"] }
wasmer-wasix = { version = "0.16", default-features = false, features = ["js", "js-default"] }
wasmer = { version = "4.2.4", default-features = false, features = ["js", "js-default", "tracing", "wasm-types-polyfill", "enable-serde"] }
wasmer-wasix = { version = "0.17", default-features = false, features = ["js", "js-default"] }
webc = "5.3.0"

[dependencies.web-sys]
Expand Down
2 changes: 1 addition & 1 deletion src/options.rs
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ impl RunOptions {

let stdin = match self.read_stdin() {
Some(stdin) => {
let f = virtual_fs::StaticFile::new(stdin.into());
let f = virtual_fs::StaticFile::new(stdin);
builder.set_stdin(Box::new(f));
None
}
Expand Down
2 changes: 1 addition & 1 deletion src/wasmer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ fn setup_tty(options: &SpawnOptions, tty_options: TtyOptions) -> TerminalMode {
// Handle the simple (non-interactive) case first.
if let Some(stdin) = options.read_stdin() {
return TerminalMode::NonInteractive {
stdin: virtual_fs::StaticFile::new(stdin.into()),
stdin: virtual_fs::StaticFile::new(stdin),
};
}

Expand Down

0 comments on commit 47b4633

Please sign in to comment.