commit_hash
stringlengths
40
40
author
stringlengths
1
57
date
timestamp[s]date
2010-07-26 04:45:09
2026-04-14 18:21:10
message
stringlengths
8
1.39M
diff
stringlengths
68
51.2k
files_changed
int64
1
136
insertions
int64
0
2.35k
deletions
int64
0
1.9k
a29b5bdcc85068ab8df100776ecab97afb709ceb
Pat Hickey
2021-02-02T02:36:41
dep to latest, lockfile already has it
diff --git a/crates/wasi-common/cap-std-sync/Cargo.toml b/crates/wasi-common/cap-std-sync/Cargo.toml index 534b6dee6..47281113b 100644 --- a/crates/wasi-common/cap-std-sync/Cargo.toml +++ b/crates/wasi-common/cap-std-sync/Cargo.toml @@ -21,7 +21,7 @@ cap-time-ext = "0.12" cap-rand = "0.12" fs-set-times = "0.2.2" uns...
1
1
1
c77a11bd5c574fca638de277847c590516995489
Pat Hickey
2021-02-02T02:30:58
tests: macos-specific behavior
diff --git a/crates/test-programs/tests/wasm_tests/runtime/cap_std_sync.rs b/crates/test-programs/tests/wasm_tests/runtime/cap_std_sync.rs index f969218b0..63984b423 100644 --- a/crates/test-programs/tests/wasm_tests/runtime/cap_std_sync.rs +++ b/crates/test-programs/tests/wasm_tests/runtime/cap_std_sync.rs @@ -37,10 +...
4
26
2
d83dba47a3f4aeb8ff575a9e81ef29c871729b26
Pat Hickey
2021-02-02T02:16:24
fix publish script
diff --git a/scripts/publish.rs b/scripts/publish.rs index 75a8d652c..eaf0e02ed 100644 --- a/scripts/publish.rs +++ b/scripts/publish.rs @@ -46,10 +46,9 @@ const CRATES_TO_PUBLISH: &[&str] = &[ "wiggle", "wiggle-borrow", "wasmtime-wiggle-macro", - // wasi-common bits - "winx", - "yanix", + //...
1
3
7
58aa98ac8e3bc66c52e96fa1e5237795199d2355
Pat Hickey
2021-02-02T02:07:05
cap-std-sync docs
diff --git a/crates/wasi-common/cap-std-sync/src/lib.rs b/crates/wasi-common/cap-std-sync/src/lib.rs index 2661b701d..fe3895129 100644 --- a/crates/wasi-common/cap-std-sync/src/lib.rs +++ b/crates/wasi-common/cap-std-sync/src/lib.rs @@ -1,3 +1,32 @@ +//! The `wasi-cap-std-sync` crate provides impl of `WasiFile` and `Wa...
1
29
0
7daa7763e0fed16b99337a4600f744cc6f44a87a
Pat Hickey
2021-02-02T02:04:49
rustdoc the errors
diff --git a/crates/wasi-common/src/error.rs b/crates/wasi-common/src/error.rs index de6440508..cf132b59e 100644 --- a/crates/wasi-common/src/error.rs +++ b/crates/wasi-common/src/error.rs @@ -1,9 +1,33 @@ +//! `wasi_common::Error` is now `anyhow::Error`. +//! +//! Snapshots (right now only `wasi_common::snapshots::pre...
1
25
1
0ef691b74e935f38dd5aa6de9e8146f5eb90385c
Pat Hickey
2021-02-02T02:01:47
rustdocs!!
diff --git a/crates/wasi-common/src/lib.rs b/crates/wasi-common/src/lib.rs index 2d0f50a5f..4575b423b 100644 --- a/crates/wasi-common/src/lib.rs +++ b/crates/wasi-common/src/lib.rs @@ -1,3 +1,55 @@ +//! ## The `WasiFile` and `WasiDir` traits +//! +//! The WASI specification only defines one `handle` type, `fd`, on whic...
2
77
0
e511dac9ece6d84efc8c7d1e47344f71bb7a87e2
Pat Hickey
2021-02-02T01:56:20
rustdoc the table
diff --git a/crates/wasi-common/src/table.rs b/crates/wasi-common/src/table.rs index 3df4df1f8..30fd50320 100644 --- a/crates/wasi-common/src/table.rs +++ b/crates/wasi-common/src/table.rs @@ -3,12 +3,20 @@ use std::any::Any; use std::cell::{Ref, RefCell, RefMut}; use std::collections::HashMap; +/// The `Table` typ...
1
20
14
037c5e398c31ad72b77d2ad07fa3c232fc9ed9de
Pat Hickey
2021-02-02T01:44:11
remove re-exports
diff --git a/crates/wasi/src/lib.rs b/crates/wasi/src/lib.rs index 1950c6229..f6b446076 100644 --- a/crates/wasi/src/lib.rs +++ b/crates/wasi/src/lib.rs @@ -1,9 +1,6 @@ use std::cell::RefCell; use std::rc::Rc; -pub use wasi_common::{ - Error, FdFlags, FileCaps, Filestat, OFlags, ReaddirCursor, ReaddirEntity, Syste...
1
1
4
7919b191ed29875fe348f76961dd64429f8dd5cb
Pat Hickey
2021-02-02T01:06:00
fix tests and exports
diff --git a/crates/wasi-common/src/lib.rs b/crates/wasi-common/src/lib.rs index 5dc7c9091..2d0f50a5f 100644 --- a/crates/wasi-common/src/lib.rs +++ b/crates/wasi-common/src/lib.rs @@ -10,9 +10,12 @@ pub mod snapshots; mod string_array; pub mod table; -pub use clocks::SystemTimeSpec; +pub use cap_rand::RngCore; +pu...
2
30
11
f17bff5490254ea871da75918c3928be7a3b41be
Pat Hickey
2021-02-02T00:25:31
fill in Deterministic impl of RngCore
diff --git a/crates/wasi-common/src/random.rs b/crates/wasi-common/src/random.rs index 45e4cb0ea..9e4711534 100644 --- a/crates/wasi-common/src/random.rs +++ b/crates/wasi-common/src/random.rs @@ -15,10 +15,16 @@ impl Deterministic { impl RngCore for Deterministic { fn next_u32(&mut self) -> u32 { - todo...
1
8
2
e9ad3611f6e8a6a5f2ebbae499a8bca3685dc3b1
Pat Hickey
2021-02-02T00:16:13
get rid of outdated cfg_attr
diff --git a/crates/wasi-common/src/lib.rs b/crates/wasi-common/src/lib.rs index 9b84849fa..5dc7c9091 100644 --- a/crates/wasi-common/src/lib.rs +++ b/crates/wasi-common/src/lib.rs @@ -1,5 +1,3 @@ -#![cfg_attr(feature = "nightly", feature(windows_by_handle))] - pub mod clocks; mod ctx; pub mod dir;
1
0
2
848be8c9328567a32370ce5bf2e8f000b9dc67cb
Pat Hickey
2021-02-01T23:50:16
path_rename should work on windows with TESTCONFIG
diff --git a/crates/test-programs/build.rs b/crates/test-programs/build.rs index 9a71ac1cf..99d58354c 100644 --- a/crates/test-programs/build.rs +++ b/crates/test-programs/build.rs @@ -203,8 +203,6 @@ mod wasi_tests { "nofollow_errors", // waiting on DirExt::delete_file_or_symlink ...
1
0
2
8e015ca9e789cdfc2e613fc1990afe080e359347
Pat Hickey
2021-02-01T23:50:05
traps needed stdio
diff --git a/tests/all/traps.rs b/tests/all/traps.rs index a59bc00d0..dc7e3a2be 100644 --- a/tests/all/traps.rs +++ b/tests/all/traps.rs @@ -530,8 +530,13 @@ fn parse_dwarf_info() -> Result<()> { let store = Store::new(&engine); let module = Module::new(&engine, &wasm)?; let mut linker = Linker::new(&sto...
1
7
2
bb3e391a27bc266889e346f459f140fe5212f975
Pat Hickey
2021-02-01T23:25:00
accept fdread event as valid behavior of stdin poll
diff --git a/crates/test-programs/tests/wasm_tests/runtime/cap_std_sync.rs b/crates/test-programs/tests/wasm_tests/runtime/cap_std_sync.rs index df641d23f..f969218b0 100644 --- a/crates/test-programs/tests/wasm_tests/runtime/cap_std_sync.rs +++ b/crates/test-programs/tests/wasm_tests/runtime/cap_std_sync.rs @@ -1,5 +1,...
2
20
28
0c4aec391e625193b17012e9d2cd33bc0165336a
Pat Hickey
2021-02-01T22:43:32
actually empty ready bytes of stdin
diff --git a/Cargo.lock b/Cargo.lock index e2b792cf9..9c6f00825 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2801,6 +2801,7 @@ dependencies = [ "cfg-if 1.0.0", "os_pipe", "pretty_env_logger", + "system-interface", "target-lexicon", "tempfile", "wasi-cap-std-sync", diff --git a/crates/test-programs/Cargo.tom...
3
15
1
b9a3f8694d9663b4d114bf54b9c229c79a02afff
Pat Hickey
2021-02-01T22:32:51
cap-std-sync test runner: read stdin to end before inheriting stdio
diff --git a/crates/test-programs/tests/wasm_tests/runtime/cap_std_sync.rs b/crates/test-programs/tests/wasm_tests/runtime/cap_std_sync.rs index f969218b0..a19494d28 100644 --- a/crates/test-programs/tests/wasm_tests/runtime/cap_std_sync.rs +++ b/crates/test-programs/tests/wasm_tests/runtime/cap_std_sync.rs @@ -88,6 +8...
1
4
0
40e541bfc33e4591cfe43fb4f5ca86c36c8edcd4
Pat Hickey
2021-02-01T22:25:42
test suite: cap-std-sync test environment does not support fdflags sync
diff --git a/crates/test-programs/tests/wasm_tests/runtime/cap_std_sync.rs b/crates/test-programs/tests/wasm_tests/runtime/cap_std_sync.rs index 343385bd2..f969218b0 100644 --- a/crates/test-programs/tests/wasm_tests/runtime/cap_std_sync.rs +++ b/crates/test-programs/tests/wasm_tests/runtime/cap_std_sync.rs @@ -42,6 +4...
3
45
6
cde252c59b5e2cf4713013d609be510b61ee8d45
Pat Hickey
2021-02-01T22:25:16
wasi-cap-std-sync: sync family of flags is not supported on file_open
diff --git a/crates/wasi-common/cap-std-sync/src/dir.rs b/crates/wasi-common/cap-std-sync/src/dir.rs index 666f9b86a..2410d1aae 100644 --- a/crates/wasi-common/cap-std-sync/src/dir.rs +++ b/crates/wasi-common/cap-std-sync/src/dir.rs @@ -69,6 +69,13 @@ impl WasiDir for Dir { // have support for them in cap-std ...
1
7
0
993697e221ed1e4d06b4550fd87fd2d526a2cc6a
Pat Hickey
2021-02-01T22:14:13
set_fd_flags is only good for append and nonblock
diff --git a/crates/wasi-common/cap-std-sync/src/dir.rs b/crates/wasi-common/cap-std-sync/src/dir.rs index 3ba290d50..666f9b86a 100644 --- a/crates/wasi-common/cap-std-sync/src/dir.rs +++ b/crates/wasi-common/cap-std-sync/src/dir.rs @@ -65,21 +65,15 @@ impl WasiDir for Dir { } else { opts.follow(F...
2
15
14
a4372c8c2e8192b1ff752ee6c7b5b0d47986962b
Pat Hickey
2021-02-01T21:15:39
cap-std-sync: test opening a tempdir as ambient and then WasiDir
diff --git a/Cargo.lock b/Cargo.lock index 93e3572b5..e2b792cf9 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3075,6 +3075,7 @@ dependencies = [ "lazy_static", "libc", "system-interface", + "tempfile", "tracing", "unsafe-io", "wasi-common", diff --git a/crates/wasi-common/cap-std-sync/Cargo.toml b/crates/was...
3
22
1
8b9d2c5bbbb0252395d03f093bcd89b5bc782075
Pat Hickey
2021-02-01T20:42:31
cap-std-sync: my set_fd_flags idea didnt seem to work?
diff --git a/crates/wasi-common/cap-std-sync/src/dir.rs b/crates/wasi-common/cap-std-sync/src/dir.rs index ed78331b3..1c75173c7 100644 --- a/crates/wasi-common/cap-std-sync/src/dir.rs +++ b/crates/wasi-common/cap-std-sync/src/dir.rs @@ -71,7 +71,16 @@ impl WasiDir for Dir { // (DSYNC, SYNC, NONBLOCK, RSYNC) ...
1
10
1
0502cadc62d3816fd1b5dd978209de3eda12c53a
Peter Huene
2021-01-28T22:32:27
Stop allowing bufused > BUF_LEN in fd_readdir program. This commit removes what appears to be a workaround to the bug being fixed by the change in #2620.
diff --git a/crates/test-programs/wasi-tests/src/bin/fd_readdir.rs b/crates/test-programs/wasi-tests/src/bin/fd_readdir.rs index 903329b74..6a53a8ed1 100644 --- a/crates/test-programs/wasi-tests/src/bin/fd_readdir.rs +++ b/crates/test-programs/wasi-tests/src/bin/fd_readdir.rs @@ -1,5 +1,5 @@ use more_asserts::assert_g...
1
4
2
4632228b35657b3be6c3560c591ba34c1161bf77
Peter Huene
2021-01-28T20:39:40
Fix `fd_readdir` to properly truncate directory entry names. Previously, `fd_readdir` was truncating directory entry names based on the calculation of `min(name_len, buf_len - bufused)`, but `bufused` was not being updated after writing in the `dirent` structure to the buffer. This allowed `bufused` to be incremented...
diff --git a/crates/wasi-common/src/snapshots/wasi_snapshot_preview1.rs b/crates/wasi-common/src/snapshots/wasi_snapshot_preview1.rs index 794be79c9..7dc6c03ae 100644 --- a/crates/wasi-common/src/snapshots/wasi_snapshot_preview1.rs +++ b/crates/wasi-common/src/snapshots/wasi_snapshot_preview1.rs @@ -304,7 +304,6 @@ imp...
1
2
3
bad169dde3a7d06eb364e86751aa1b4de7582cd2
Pat Hickey
2021-02-01T19:10:26
port https://github.com/bytecodealliance/wasmtime/pull/2620 into rewrite
diff --git a/crates/test-programs/wasi-tests/src/bin/fd_readdir.rs b/crates/test-programs/wasi-tests/src/bin/fd_readdir.rs index 903329b74..f3594f939 100644 --- a/crates/test-programs/wasi-tests/src/bin/fd_readdir.rs +++ b/crates/test-programs/wasi-tests/src/bin/fd_readdir.rs @@ -1,5 +1,5 @@ use more_asserts::assert_g...
2
6
8
cb7b1aadcc51461d958d9b8e76d7241d2b18c61b
Alex Crichton
2021-02-01T19:04:27
Fix a memory leak with command modules (#2017) This commit fixes a memory leak that can happen with `Linker::module` when the provided module is a command. This function creates a closure but the closure closed over a strong reference to `Store` (and transitively through any imports provided). Unfortunately a `Stor...
diff --git a/crates/wasmtime/src/externals.rs b/crates/wasmtime/src/externals.rs index 00bcaa499..e71fb7d75 100644 --- a/crates/wasmtime/src/externals.rs +++ b/crates/wasmtime/src/externals.rs @@ -160,6 +160,17 @@ impl Extern { Extern::Module(_) => "module", } } + + pub(crate) fn wasmtime_...
4
123
26
81b4e48f9fb44d4cd4014eb911db5499769c734e
bjorn3
2021-01-30T22:54:48
Remove some uses of riscv in tests (#2600) * Remove some uses of riscv in tests * Fix typo * Apply suggestions from code review * Apply suggestions from code review Co-authored-by: Benjamin Bouvier <public@benj.me>
diff --git a/cranelift/codegen/src/isa/mod.rs b/cranelift/codegen/src/isa/mod.rs index bfc4e0d0d..94895b0b6 100644 --- a/cranelift/codegen/src/isa/mod.rs +++ b/cranelift/codegen/src/isa/mod.rs @@ -20,7 +20,6 @@ //! appropriate for the requested ISA: //! //! ``` -//! # extern crate cranelift_codegen; //! # #[macro_u...
3
32
31
ac60b034f09cd95bb12959e780624c4967d272c8
Pat Hickey
2021-01-30T21:58:30
well this much passes
diff --git a/crates/test-programs/build.rs b/crates/test-programs/build.rs index f7b51baf2..72ff5da8b 100644 --- a/crates/test-programs/build.rs +++ b/crates/test-programs/build.rs @@ -173,7 +173,7 @@ mod wasi_tests { fn ignore(testsuite: &str, name: &str) -> bool { match testsuite { "wasi-ca...
1
61
19
133344e880da96f719d2e76fc4233fe0b4b4c7e8
Pat Hickey
2021-01-30T21:53:56
woo it passes six tests even though its awful
diff --git a/Cargo.lock b/Cargo.lock index ae57147bd..93e3572b5 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3131,6 +3131,7 @@ version = "0.22.0" dependencies = [ "anyhow", "cap-std", + "tracing", "wasi-common", ] diff --git a/crates/wasi-common/virtfs/Cargo.toml b/crates/wasi-common/virtfs/Cargo.toml index 4...
3
18
10
321bf272924fa190f39bfaf3feab87424c2aad1a
Pat Hickey
2021-01-30T21:45:11
check in virtfs backend test harness
diff --git a/crates/test-programs/tests/wasm_tests/runtime/mod.rs b/crates/test-programs/tests/wasm_tests/runtime/mod.rs new file mode 100644 index 000000000..e78d578b8 --- /dev/null +++ b/crates/test-programs/tests/wasm_tests/runtime/mod.rs @@ -0,0 +1,2 @@ +pub mod cap_std_sync; +pub mod virtfs; diff --git a/crates/te...
2
73
0
fcecb3fea6678aa175a72b7710dc39101d0fa4ca
Pat Hickey
2021-01-30T21:39:18
test-programs: test both cap-std-sync and virtfs backend
diff --git a/Cargo.lock b/Cargo.lock index b8bf5efaa..ae57147bd 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2805,6 +2805,7 @@ dependencies = [ "tempfile", "wasi-cap-std-sync", "wasi-common", + "wasi-virtfs", "wasmtime", "wasmtime-wasi", "wat", diff --git a/crates/test-programs/Cargo.toml b/crates/test-prog...
4
58
45
533db3e807e86e88b35767b4aaf842990399e2ba
Pat Hickey
2021-01-30T21:39:03
virtfs: implement a bunch more
diff --git a/crates/wasi-common/virtfs/src/lib.rs b/crates/wasi-common/virtfs/src/lib.rs index 9f000ca57..8fcd868de 100644 --- a/crates/wasi-common/virtfs/src/lib.rs +++ b/crates/wasi-common/virtfs/src/lib.rs @@ -2,7 +2,7 @@ use cap_std::time::{Duration, SystemTime}; use std::any::Any; use std::cell::{Cell, Ref, Ref...
1
194
9
b6cd7d84ade8abedf40490e99bce3a616e7e5762
Pat Hickey
2021-01-30T21:38:44
cap-std-sync: export ctx components
diff --git a/crates/wasi-common/cap-std-sync/src/clocks.rs b/crates/wasi-common/cap-std-sync/src/clocks.rs index 2f677ec0d..3f17ae1e4 100644 --- a/crates/wasi-common/cap-std-sync/src/clocks.rs +++ b/crates/wasi-common/cap-std-sync/src/clocks.rs @@ -33,7 +33,7 @@ impl WasiMonotonicClock for MonotonicClock { } } ...
3
14
5
e940d31f95b903cf3b7222124511003d89463228
Pat Hickey
2021-01-30T21:36:41
add a noent / not_found errorkind
diff --git a/crates/test-programs/tests/wasm_tests/runtime.rs b/crates/test-programs/tests/wasm_tests/runtime/cap_std_sync.rs similarity index 100% rename from crates/test-programs/tests/wasm_tests/runtime.rs rename to crates/test-programs/tests/wasm_tests/runtime/cap_std_sync.rs diff --git a/crates/wasi-common/src/err...
3
8
0
13027ad670237dd66abe4a9b8be8a44e3a625b52
Benjamin Bouvier
2021-01-30T12:38:55
cranelift x64: add instruction set checks for popcnt/tzcnt/lzcnt;
diff --git a/cranelift/codegen/src/isa/x64/inst/args.rs b/cranelift/codegen/src/isa/x64/inst/args.rs index 0e99ff94f..00f581218 100644 --- a/cranelift/codegen/src/isa/x64/inst/args.rs +++ b/cranelift/codegen/src/isa/x64/inst/args.rs @@ -410,6 +410,17 @@ pub enum UnaryRmROpcode { Popcnt, } +impl UnaryRmROpcode {...
3
24
4
c12cd82fc00f1209eabbdd97758e6556c080a63c
Pat Hickey
2021-01-30T05:19:24
careful now
diff --git a/Cargo.lock b/Cargo.lock index b2a87ecbf..b8bf5efaa 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3124,6 +3124,15 @@ dependencies = [ "zeroize", ] +[[package]] +name = "wasi-virtfs" +version = "0.22.0" +dependencies = [ + "anyhow", + "cap-std", + "wasi-common", +] + [[package]] name = "wasm-encoder" ...
6
428
0
e9a7a4094c0f20cfc73ba92ee935bb124822499d
Pat Hickey
2021-01-30T05:08:53
cap-std-sync Dir::open_file: set the fdflags that OpenOptions cant
diff --git a/crates/wasi-common/cap-std-sync/src/dir.rs b/crates/wasi-common/cap-std-sync/src/dir.rs index 113eb8e3b..ed78331b3 100644 --- a/crates/wasi-common/cap-std-sync/src/dir.rs +++ b/crates/wasi-common/cap-std-sync/src/dir.rs @@ -1,8 +1,9 @@ -use crate::file::{filetype_from, File}; +use crate::file::{filetype_fr...
1
8
5
3d406ff50e53c125adf3c7c1a736339333022c8c
Pat Hickey
2021-01-30T05:04:34
Dir::open_file can just pass read/write as bools, centralizing FileCaps decoding this way the impls of File/Dir don't need to know about any caps!
diff --git a/crates/wasi-common/cap-std-sync/src/dir.rs b/crates/wasi-common/cap-std-sync/src/dir.rs index 728a65be6..113eb8e3b 100644 --- a/crates/wasi-common/cap-std-sync/src/dir.rs +++ b/crates/wasi-common/cap-std-sync/src/dir.rs @@ -5,7 +5,7 @@ use std::convert::TryInto; use std::path::{Path, PathBuf}; use wasi_c...
3
14
12
e1ca5d171c6acb0f89e6f4a05150f5d6c5d7850f
Pat Hickey
2021-01-30T04:58:00
fix the second place i made the same dumb typo
diff --git a/crates/test-programs/tests/wasm_tests/runtime.rs b/crates/test-programs/tests/wasm_tests/runtime.rs index bb86c59dd..8af9e1bff 100644 --- a/crates/test-programs/tests/wasm_tests/runtime.rs +++ b/crates/test-programs/tests/wasm_tests/runtime.rs @@ -97,7 +97,7 @@ pub fn instantiate_inherit_stdio( ...
1
1
1
8313a62e4639823600092eab404ae83e8cf78042
Pat Hickey
2021-01-30T03:54:27
fix test
diff --git a/tests/all/traps.rs b/tests/all/traps.rs index 3f91229e6..a59bc00d0 100644 --- a/tests/all/traps.rs +++ b/tests/all/traps.rs @@ -530,7 +530,7 @@ fn parse_dwarf_info() -> Result<()> { let store = Store::new(&engine); let module = Module::new(&engine, &wasm)?; let mut linker = Linker::new(&stor...
1
1
1
b5f3a4a6db94bdb931f35784d1b43ac7bfd325b1
Pat Hickey
2021-01-30T03:52:26
wasi-crypto: forgot to erase ctx indirection
diff --git a/crates/wasi-crypto/src/wiggle_interfaces/asymmetric_common.rs b/crates/wasi-crypto/src/wiggle_interfaces/asymmetric_common.rs index 8de31ee42..ea94966b3 100644 --- a/crates/wasi-crypto/src/wiggle_interfaces/asymmetric_common.rs +++ b/crates/wasi-crypto/src/wiggle_interfaces/asymmetric_common.rs @@ -21,7 +2...
6
36
102
6ed8638559921a535c390e953e696109a20bc0f6
Pat Hickey
2021-01-30T02:01:48
fix test runtime
diff --git a/crates/test-programs/tests/wasm_tests/runtime.rs b/crates/test-programs/tests/wasm_tests/runtime.rs index e57e14006..bb86c59dd 100644 --- a/crates/test-programs/tests/wasm_tests/runtime.rs +++ b/crates/test-programs/tests/wasm_tests/runtime.rs @@ -42,7 +42,7 @@ pub fn instantiate(data: &[u8], bin_name: &st...
1
1
1
95ad13c82da481f664fa61a8b74e39864e1570ae
Pat Hickey
2021-01-30T01:03:08
wasi-common: break dep on system-interface by defining our own Advice enum
diff --git a/Cargo.lock b/Cargo.lock index 2a58151dd..36caa1e0a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3093,7 +3093,6 @@ dependencies = [ "cap-rand", "cap-std", "libc", - "system-interface", "thiserror", "tracing", "wiggle", @@ -3129,6 +3128,15 @@ dependencies = [ "zeroize", ] +[[package]] +name ...
8
47
25
2e10e621c4b1fa69356d19f1f2b9b447f9d55b70
Pat Hickey
2021-01-30T01:02:57
stub virtfs
diff --git a/crates/wasi-common/virtfs/Cargo.toml b/crates/wasi-common/virtfs/Cargo.toml new file mode 100644 index 000000000..4a760434a --- /dev/null +++ b/crates/wasi-common/virtfs/Cargo.toml @@ -0,0 +1,18 @@ +[package] +name = "wasi-virtfs" +version = "0.22.0" +authors = ["The Wasmtime Project Developers"] +descript...
4
175
0
897b4fb8aba1ff4b77be88043f6192f01ed6a19c
Pat Hickey
2021-01-29T23:48:55
wasictxbuilder: assert that stdio is provided
diff --git a/crates/wasi-common/src/ctx.rs b/crates/wasi-common/src/ctx.rs index 5f3c798fa..20a9ef706 100644 --- a/crates/wasi-common/src/ctx.rs +++ b/crates/wasi-common/src/ctx.rs @@ -64,6 +64,17 @@ pub struct WasiCtxBuilder(WasiCtx); impl WasiCtxBuilder { pub fn build(self) -> Result<WasiCtx, Error> { + ...
1
11
0
5ee605995dabd14b768e20ef47405df5930ac661
Pat Hickey
2021-01-29T23:43:30
fix wasi example
diff --git a/examples/wasi/main.rs b/examples/wasi/main.rs index 576906944..87c59944d 100644 --- a/examples/wasi/main.rs +++ b/examples/wasi/main.rs @@ -4,8 +4,9 @@ // You can execute this example with `cargo run --example wasi` use anyhow::Result; +use wasi_cap_std_sync::WasiCtxBuilder; use wasmtime::*; -use wasm...
1
9
2
2ad7565a6524d71420c3ca048c59075bd45e655a
Pat Hickey
2021-01-29T23:39:29
update linking example
diff --git a/examples/linking.rs b/examples/linking.rs index f46e7a4f8..b7c862e8d 100644 --- a/examples/linking.rs +++ b/examples/linking.rs @@ -3,8 +3,9 @@ // You can execute this example with `cargo run --example linking` use anyhow::Result; +use wasi_cap_std_sync::WasiCtxBuilder; use wasmtime::*; -use wasmtime_...
1
9
2
8ea42abb14ca4c4bdc9c191d9584786fae1b5416
Pat Hickey
2021-01-29T22:25:29
fix wasi-nn and wasi-crypto integrations for wasmtime-wiggle changes the Rc<RefCell<ctx>> wrapping inside the wasmtime-generated bindings was eliminated, and instead the caller of ::new(linker, ctx) is required to wrap the ctx in Rc<RefCell<>>. The Rc wrapping inside WasiCryptoCtx can be eliminated due to this change...
diff --git a/crates/wasi-crypto/src/wiggle_interfaces/mod.rs b/crates/wasi-crypto/src/wiggle_interfaces/mod.rs index 8784a10bd..431538885 100644 --- a/crates/wasi-crypto/src/wiggle_interfaces/mod.rs +++ b/crates/wasi-crypto/src/wiggle_interfaces/mod.rs @@ -1,6 +1,6 @@ use std::rc::Rc; -use wasi_crypto::CryptoCtx; +p...
2
8
17
b48e7fcc5d756a58d77e8047eebeb9458f084a86
Pat Hickey
2021-01-29T22:09:44
integrate with c-api
diff --git a/Cargo.lock b/Cargo.lock index 1dc096c77..2a58151dd 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3237,8 +3237,10 @@ name = "wasmtime-c-api" version = "0.19.0" dependencies = [ "anyhow", + "cap-std", "env_logger 0.8.2", "once_cell", + "wasi-cap-std-sync", "wasi-common", "wasmtime", "wasmtime-c-...
4
66
24
d5fdd835aba39907dfe40054194124a88dc32623
Pat Hickey
2021-01-29T21:25:06
port bench-api
diff --git a/Cargo.lock b/Cargo.lock index bcb3cd586..1dc096c77 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3224,8 +3224,9 @@ name = "wasmtime-bench-api" version = "0.19.0" dependencies = [ "anyhow", + "cap-std", "shuffling-allocator", - "wasi-common", + "wasi-cap-std-sync", "wasmtime", "wasmtime-wasi", "w...
3
9
7
8b285ec2e7cebebfad171c95c98805b909cfbee0
Pat Hickey
2021-01-29T21:23:04
make wasmtime_wasi::Wasi a struct which does both snapshots!
diff --git a/crates/wasi/src/lib.rs b/crates/wasi/src/lib.rs index 00582488e..616c05dad 100644 --- a/crates/wasi/src/lib.rs +++ b/crates/wasi/src/lib.rs @@ -1,7 +1,32 @@ +use std::cell::RefCell; +use std::rc::Rc; pub use wasi_common::{ Error, FdFlags, FileCaps, Filestat, OFlags, ReaddirCursor, ReaddirEntity, Syst...
2
27
9
e498888732adb8f82ea7e70a7ed5365ba9e69598
Pat Hickey
2021-01-29T20:29:30
hook run command up to both wasi snapshots sharing the same context! at long last
diff --git a/Cargo.lock b/Cargo.lock index d63fb09e3..824da0733 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2718,6 +2718,7 @@ name = "wasmtime-cli" version = "0.22.0" dependencies = [ "anyhow", + "cap-std", "env_logger 0.8.2", "file-per-thread-logger", "filecheck", @@ -2733,6 +2734,7 @@ dependencies = [ "t...
4
41
22
70f8288ec955756614902c361c684d83ade6aa61
Pat Hickey
2021-01-29T20:18:21
wasmtime-wiggle: take an Rc<RefCell<ctx>> instead of construct one so that if users wish to share a ctx between modules they may!
diff --git a/crates/wiggle/wasmtime/macro/src/lib.rs b/crates/wiggle/wasmtime/macro/src/lib.rs index b2e630388..7f13308f1 100644 --- a/crates/wiggle/wasmtime/macro/src/lib.rs +++ b/crates/wiggle/wasmtime/macro/src/lib.rs @@ -122,8 +122,7 @@ contained in the `cx` parameter.", impl #type_name { #[...
1
1
2
c8e76b11ba9fc634b2723a38d3239c03640e5010
Pat Hickey
2021-01-29T20:11:38
wasmtime-wasi: support both snapshots
diff --git a/crates/wasi/src/lib.rs b/crates/wasi/src/lib.rs index 2eaae4440..00582488e 100644 --- a/crates/wasi/src/lib.rs +++ b/crates/wasi/src/lib.rs @@ -3,27 +3,59 @@ pub use wasi_common::{ WasiCtx, WasiCtxBuilder, WasiDir, WasiFile, }; -// Defines a `struct Wasi` with member fields and appropriate APIs for...
1
50
18
d738a4a5882e4a24c46fe7d320c5acfb05eef95b
Pat Hickey
2021-01-29T20:07:21
preview 0: copy bodies of read, write, and poll_oneoff from snapshot 1
diff --git a/crates/wasi-common/src/snapshots/preview_0.rs b/crates/wasi-common/src/snapshots/preview_0.rs index dedae8608..4d1ee4c77 100644 --- a/crates/wasi-common/src/snapshots/preview_0.rs +++ b/crates/wasi-common/src/snapshots/preview_0.rs @@ -1,7 +1,15 @@ +use crate::file::{FileCaps, FileEntryExt, TableFileExt}; ...
1
358
24
f1d922dc2dc8e301cec86933f7adac7c2ef85b41
Alex Crichton
2021-01-29T18:04:36
Update some wasm-tools dependencies Mostly focused around some small bugfixes and improvements related to module-linking fuzzing.
diff --git a/Cargo.lock b/Cargo.lock index 352bcee78..8aa226852 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2967,9 +2967,9 @@ dependencies = [ [[package]] name = "wasm-smith" -version = "0.3.1" +version = "0.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0b9b9b796bf4da5eb0523b1...
1
6
6
78f312799e742dcb0a06be3417a8332578f96833
Amanieu d'Antras
2021-01-28T16:06:28
Optimize EntityList::extend and add EntityList::from_iter
diff --git a/cranelift/entity/src/list.rs b/cranelift/entity/src/list.rs index 68cab8166..dfb8fac64 100644 --- a/cranelift/entity/src/list.rs +++ b/cranelift/entity/src/list.rs @@ -91,17 +91,20 @@ type SizeClass = u8; /// Get the size of a given size class. The size includes the length field, so the maximum list //...
1
30
3
99be82c866e73a59b74ea66f4bdb959becaa890d
Kasey Carrothers
2021-01-29T09:09:32
Replace MachInst::gen_zero_len_nop with gen_nop(0)
diff --git a/cranelift/codegen/src/isa/aarch64/inst/mod.rs b/cranelift/codegen/src/isa/aarch64/inst/mod.rs index b85928edc..aff9b36e0 100644 --- a/cranelift/codegen/src/isa/aarch64/inst/mod.rs +++ b/cranelift/codegen/src/isa/aarch64/inst/mod.rs @@ -2907,11 +2907,10 @@ impl MachInst for Inst { } } - f...
5
7
16
f76a9d436e9f0e153ca705b78afdc7cb4b002ce4
Kasey Carrothers
2021-01-28T06:45:35
Clean up handling of NOPs in the x64 backend. 1. Restricts max nop size to 15 instead of 16. 2. Fixes an edge case where gen_nop() would return a zero sized intruction on multiples of 16. 3. Clarifies the documentation of the gen_nop interface to state that returning zero is allowed when preferred_size is zero.
diff --git a/cranelift/codegen/src/isa/x64/inst/mod.rs b/cranelift/codegen/src/isa/x64/inst/mod.rs index bab28f2aa..44cedb06c 100644 --- a/cranelift/codegen/src/isa/x64/inst/mod.rs +++ b/cranelift/codegen/src/isa/x64/inst/mod.rs @@ -566,7 +566,7 @@ impl Inst { impl Inst { pub(crate) fn nop(len: u8) -> Self { - ...
2
4
4
cbd7a6a80e577ebc255795c53c3cb2904df29561
Johnnie Birch
2021-01-25T08:02:57
Add sse41 lowering for rounding x64
diff --git a/cranelift/codegen/src/isa/x64/inst/emit.rs b/cranelift/codegen/src/isa/x64/inst/emit.rs index 095256ab4..0a029301a 100644 --- a/cranelift/codegen/src/isa/x64/inst/emit.rs +++ b/cranelift/codegen/src/isa/x64/inst/emit.rs @@ -2094,7 +2094,9 @@ pub(crate) fn emit( SseOpcode::Pextrd => (Legacy...
3
36
29
ef2cb7b6b7350b4207dfd56d5ed2bd11a08f57d1
Pat Hickey
2021-01-29T01:00:31
nearly have snapshot 0 implemented...
diff --git a/crates/wasi-common/src/snapshots/mod.rs b/crates/wasi-common/src/snapshots/mod.rs index 1508cc068..85eb4cea3 100644 --- a/crates/wasi-common/src/snapshots/mod.rs +++ b/crates/wasi-common/src/snapshots/mod.rs @@ -1 +1,2 @@ +pub mod preview_0; pub mod preview_1; diff --git a/crates/wasi-common/src/snapshots...
3
633
48
47fec44c10a387448574f756cf783cea4106dbdd
Pat Hickey
2021-01-28T23:15:50
move wasi-c2 into wasi-common
diff --git a/crates/wasi-c2/build.rs b/crates/wasi-c2/build.rs deleted file mode 100644 index a83d4831a..000000000 --- a/crates/wasi-c2/build.rs +++ /dev/null @@ -1,10 +0,0 @@ -// Tell any dependencies, if necessary, where our WASI submodule is so they can -// use the same witx files if they want. -fn main() { - let...
29
3
11
0cedc172466aecda40b22a2f02f4acc35e1d882f
Pat Hickey
2021-01-28T20:35:13
another one bites the dust
diff --git a/crates/test-programs/wasi-tests/src/bin/path_symlink_trailing_slashes.rs b/crates/test-programs/wasi-tests/src/bin/path_symlink_trailing_slashes.rs index 95e53790c..db4440c56 100644 --- a/crates/test-programs/wasi-tests/src/bin/path_symlink_trailing_slashes.rs +++ b/crates/test-programs/wasi-tests/src/bin/...
1
22
22
79e8f174863a98ede667031414bbeb79e30ab3c0
Pat Hickey
2021-01-28T20:30:37
bum bum bum
diff --git a/crates/test-programs/wasi-tests/src/bin/path_link.rs b/crates/test-programs/wasi-tests/src/bin/path_link.rs index 0178c529c..7345ff64e 100644 --- a/crates/test-programs/wasi-tests/src/bin/path_link.rs +++ b/crates/test-programs/wasi-tests/src/bin/path_link.rs @@ -1,6 +1,6 @@ use more_asserts::assert_gt; ...
1
48
47
1196e216e9706ce08290b3e2a8bdd41d2c618223
Pat Hickey
2021-01-28T20:23:48
fix macro by denying trailing slashes. also other stuff
diff --git a/crates/test-programs/tests/wasm_tests/runtime.rs b/crates/test-programs/tests/wasm_tests/runtime.rs index 6b00db61b..2c3a6e3b3 100644 --- a/crates/test-programs/tests/wasm_tests/runtime.rs +++ b/crates/test-programs/tests/wasm_tests/runtime.rs @@ -33,7 +33,8 @@ pub fn instantiate(data: &[u8], bin_name: &st...
22
80
75
20e9169cc755be1150d6aefb043361cb26b0028d
Pat Hickey
2021-01-28T19:43:42
fd_allocate: put meat of test behind a guard
diff --git a/crates/test-programs/wasi-tests/src/bin/file_allocate.rs b/crates/test-programs/wasi-tests/src/bin/file_allocate.rs index cadee68ab..e1557f1f4 100644 --- a/crates/test-programs/wasi-tests/src/bin/file_allocate.rs +++ b/crates/test-programs/wasi-tests/src/bin/file_allocate.rs @@ -1,6 +1,6 @@ use more_asser...
1
15
14
d1c1cb6a25c7256c82811d6b9ddc60c2a60da075
Nick Fitzgerald
2021-01-27T23:20:43
bench-api: receive working directory as an argument Rather than implicitly use the current working directory.
diff --git a/crates/bench-api/src/lib.rs b/crates/bench-api/src/lib.rs index 1d0e2dcd6..8923b4c78 100644 --- a/crates/bench-api/src/lib.rs +++ b/crates/bench-api/src/lib.rs @@ -21,10 +21,16 @@ //! # Example //! //! ``` +//! use std::ptr; //! use wasmtime_bench_api::*; //! -//! let engine = unsafe { wasm_bench_crea...
1
68
42
f7403acb6fcf2e19899da9236538ad789f26cc6d
Pat Hickey
2021-01-28T19:36:20
fd_advise test: set size via fd_filestat_set_size and fd_allocate
diff --git a/crates/test-programs/wasi-tests/src/bin/fd_advise.rs b/crates/test-programs/wasi-tests/src/bin/fd_advise.rs index 408edf349..2c72bca02 100644 --- a/crates/test-programs/wasi-tests/src/bin/fd_advise.rs +++ b/crates/test-programs/wasi-tests/src/bin/fd_advise.rs @@ -1,6 +1,6 @@ use more_asserts::assert_gt; ...
1
16
3
e758318fee99cc951149efeb36d41e4725bb774b
Pat Hickey
2021-01-28T19:34:18
wire env variables through test runner to TESTCONFIG
diff --git a/crates/test-programs/tests/wasm_tests/runtime.rs b/crates/test-programs/tests/wasm_tests/runtime.rs index 63fa1825a..6b00db61b 100644 --- a/crates/test-programs/tests/wasm_tests/runtime.rs +++ b/crates/test-programs/tests/wasm_tests/runtime.rs @@ -28,6 +28,18 @@ pub fn instantiate(data: &[u8], bin_name: &s...
3
19
7
bbbe168ca153d9797bc96edfab65277d1a7da4df
Pat Hickey
2021-01-28T19:34:00
ctx: i guess we need environment variables!
diff --git a/crates/wasi-c2/cap-std-sync/src/lib.rs b/crates/wasi-c2/cap-std-sync/src/lib.rs index 495d9ed35..33642fcae 100644 --- a/crates/wasi-c2/cap-std-sync/src/lib.rs +++ b/crates/wasi-c2/cap-std-sync/src/lib.rs @@ -21,6 +21,10 @@ impl WasiCtxBuilder { Rc::new(RefCell::new(Table::new())), )) ...
2
9
0
7ffe3c72c5a62964187fd73eb9d7f398a592a93d
Pat Hickey
2021-01-28T19:20:02
config is lazy_static to amoritze it
diff --git a/crates/test-programs/wasi-tests/Cargo.lock b/crates/test-programs/wasi-tests/Cargo.lock index 4c59593f0..dc4aa117a 100644 --- a/crates/test-programs/wasi-tests/Cargo.lock +++ b/crates/test-programs/wasi-tests/Cargo.lock @@ -1,5 +1,11 @@ # This file is automatically @generated by Cargo. # It is not intend...
4
63
2
6f85abd94958a7ba49d3b69fae64abcc1416181c
Pat Hickey
2021-01-28T17:44:17
itsp ublished
diff --git a/crates/test-programs/wasi-tests/Cargo.lock b/crates/test-programs/wasi-tests/Cargo.lock index 079610ec2..4c59593f0 100644 --- a/crates/test-programs/wasi-tests/Cargo.lock +++ b/crates/test-programs/wasi-tests/Cargo.lock @@ -15,7 +15,8 @@ checksum = "0debeb9fcf88823ea64d64e4a815ab1643f33127d995978e099942ce3...
2
3
2
dccaa649627590943afd270cf96aec7dd2eaf6d3
Alex Crichton
2021-01-28T16:44:48
Add knobs to limit memories/tables in a `Store` Fuzzing has turned up that module linking can create large amounts of tables and memories in addition to instances. For example if N instances are allowed and M tables are allowed per-instance, then currently wasmtime allows MxN tables (which is quite a lot). This is cau...
diff --git a/crates/fuzzing/src/generators.rs b/crates/fuzzing/src/generators.rs index d31eba04c..a35bd186a 100644 --- a/crates/fuzzing/src/generators.rs +++ b/crates/fuzzing/src/generators.rs @@ -75,7 +75,7 @@ pub struct Config { impl Config { /// Converts this to a `wasmtime::Config` object pub fn to_wasmt...
7
151
9
cb65c755c583b20bf6f04232f1d13d855dac5d87
Alex Crichton
2021-01-28T15:55:04
Disable module-linking in plain instantiate fuzzers We already cover module linking with the `instantiate-swarm` target and otherwise enabling module linking is preventing otherwise-valid modules from being compiled because of the breaking change in the module linking proposal with respect to imports.
diff --git a/crates/fuzzing/src/oracles.rs b/crates/fuzzing/src/oracles.rs index 6581f9e0d..14e3b09e3 100644 --- a/crates/fuzzing/src/oracles.rs +++ b/crates/fuzzing/src/oracles.rs @@ -47,12 +47,11 @@ fn log_wasm(wasm: &[u8]) { /// /// You can control which compiler is used via passing a `Strategy`. pub fn instantia...
1
5
6
39f677d2ddfc357468f08efcd16878588f8a681e
Alex Crichton
2021-01-28T15:44:06
Only handle signals at pcs with trap information Previously wasmtime would handle any signal originating from wasm JIT code. This would, however, handle bugs in JIT code as-if they were wasm traps. Instead this commit switches signal handling to specifically check for whether the precise program counter is expected to...
diff --git a/crates/runtime/src/traphandlers.rs b/crates/runtime/src/traphandlers.rs index 942bdef0f..e554e54c3 100644 --- a/crates/runtime/src/traphandlers.rs +++ b/crates/runtime/src/traphandlers.rs @@ -432,7 +432,7 @@ pub unsafe trait TrapInfo { /// Returns whether the given program counter lies within wasm c...
2
7
6
03466d04cee5552ecb92f0eaaa3541eab83afccd
Pat Hickey
2021-01-28T03:05:52
temporarily use my branch of the wasi crate
diff --git a/crates/test-programs/wasi-tests/Cargo.lock b/crates/test-programs/wasi-tests/Cargo.lock index 9ad02d29e..079610ec2 100644 --- a/crates/test-programs/wasi-tests/Cargo.lock +++ b/crates/test-programs/wasi-tests/Cargo.lock @@ -4,27 +4,24 @@ name = "libc" version = "0.2.72" source = "registry+https://github...
2
8
11
be108c7a939407a759a009da78fd529aee140977
Pat Hickey
2021-01-28T02:18:12
will this work for platform-specific errnos? WIP
diff --git a/crates/test-programs/wasi-tests/src/bin/path_symlink_trailing_slashes.rs b/crates/test-programs/wasi-tests/src/bin/path_symlink_trailing_slashes.rs index 748b8bd95..5a63a13fb 100644 --- a/crates/test-programs/wasi-tests/src/bin/path_symlink_trailing_slashes.rs +++ b/crates/test-programs/wasi-tests/src/bin/...
2
18
1
2ae1dee64257e5ca1e884c4f8794a4a6239a5c42
Pat Hickey
2021-01-28T02:10:38
convert all errno assertions to assert_errno!
diff --git a/crates/test-programs/wasi-tests/src/bin/close_preopen.rs b/crates/test-programs/wasi-tests/src/bin/close_preopen.rs index 26ca31546..7dabc044d 100644 --- a/crates/test-programs/wasi-tests/src/bin/close_preopen.rs +++ b/crates/test-programs/wasi-tests/src/bin/close_preopen.rs @@ -1,6 +1,6 @@ use more_asser...
25
147
233
4f655001c0c6e0bae034fdbebe494bb4ee297afd
Pat Hickey
2021-01-28T01:42:59
make a macro that automates errno assertions
diff --git a/crates/test-programs/wasi-tests/src/lib.rs b/crates/test-programs/wasi-tests/src/lib.rs index ced40d41a..059d3c1ae 100644 --- a/crates/test-programs/wasi-tests/src/lib.rs +++ b/crates/test-programs/wasi-tests/src/lib.rs @@ -61,3 +61,47 @@ pub unsafe fn drop_rights(fd: wasi::Fd, drop_base: wasi::Rights, dro...
1
44
0
d1160cb9b56f0f5c9735d23afda520b7228d8c4a
Pat Hickey
2021-01-27T22:55:39
split path rename trailing slash test into files and dirs files fail on both platform, dirs pass on both! so, same bug!
diff --git a/crates/test-programs/wasi-tests/src/bin/path_rename_dir_trailing_slashes.rs b/crates/test-programs/wasi-tests/src/bin/path_rename_dir_trailing_slashes.rs new file mode 100644 index 000000000..7c27d9cbb --- /dev/null +++ b/crates/test-programs/wasi-tests/src/bin/path_rename_dir_trailing_slashes.rs @@ -0,0 +...
2
43
10
6c0f312a1b0fb5515dbf602dc2515e990b770f1e
Pat Hickey
2021-01-27T20:42:15
fix bug: i was ignoring the symlink follow flag in path_filestat_{get, set_times}
diff --git a/crates/wasi-c2/cap-std-sync/src/dir.rs b/crates/wasi-c2/cap-std-sync/src/dir.rs index ca75dfbf5..d672940ea 100644 --- a/crates/wasi-c2/cap-std-sync/src/dir.rs +++ b/crates/wasi-c2/cap-std-sync/src/dir.rs @@ -175,8 +175,12 @@ impl WasiDir for Dir { ctim: meta.created().map(|t| Some(t.into_std()...
3
33
12
b2e0597ae38e321a369f787d19ad6f7822325c62
Pat Hickey
2021-01-27T20:27:13
narrow the bug
diff --git a/crates/test-programs/wasi-tests/src/bin/symlink_filestat.rs b/crates/test-programs/wasi-tests/src/bin/symlink_filestat.rs index 52e3116a7..2d2cf9a0a 100644 --- a/crates/test-programs/wasi-tests/src/bin/symlink_filestat.rs +++ b/crates/test-programs/wasi-tests/src/bin/symlink_filestat.rs @@ -42,10 +42,21 @@...
1
13
2
6fcbd3f15dddb09faddb3e39a3b09becbab30ac9
Pat Hickey
2021-01-27T20:18:27
split path_filestat test into two, improve variable names
diff --git a/crates/test-programs/wasi-tests/src/bin/path_filestat.rs b/crates/test-programs/wasi-tests/src/bin/path_filestat.rs index 691fc7b97..efcc6a46f 100644 --- a/crates/test-programs/wasi-tests/src/bin/path_filestat.rs +++ b/crates/test-programs/wasi-tests/src/bin/path_filestat.rs @@ -46,17 +46,17 @@ unsafe fn t...
2
110
45
220509f3ed930fc9282bd4133faa0a90a1b2a0d8
Pat Hickey
2021-01-27T20:16:51
latest system-interface
diff --git a/Cargo.lock b/Cargo.lock index b287e067b..39c5b0a9a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -207,7 +207,7 @@ checksum = "ce7f38ec6d0dd8a67d9553f95a61ee41fce23c9947bceac7bfe5b3711f9ab2fe" dependencies = [ "cap-primitives", "cap-std", - "unsafe-io", + "unsafe-io 0.2.0", ] [[package]] @@ -223,7 +2...
4
41
19
7f840870c727ca7037111600768b057baa2387a0
Alex Crichton
2021-01-26T22:42:11
cranelift-native: Use libstd feature detection (#2607) This commit switches cranelift-native to useing the `is_x86_feature_detected!` macro in the standard library instead of the `raw-cpuid` crate.
diff --git a/Cargo.lock b/Cargo.lock index 86cbcb9f6..ead0ab841 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -607,7 +607,6 @@ name = "cranelift-native" version = "0.69.0" dependencies = [ "cranelift-codegen", - "raw-cpuid", "target-lexicon", ] @@ -2145,15 +2144,6 @@ dependencies = [ "rand_core 0.5.1", ] -[...
3
29
54
503129ad9103028cd0b56ae969848ec1bbf25bc7
Alex Crichton
2021-01-26T21:59:12
Add a method to share `Config` across machines (#2608) With `Module::{serialize,deserialize}` it should be possible to share wasmtime modules across machines or CPUs. Serialization, however, embeds a hash of all configuration values, including cranelift compilation settings. By default wasmtime's selection of the n...
diff --git a/cranelift/codegen/meta/src/gen_settings.rs b/cranelift/codegen/meta/src/gen_settings.rs index 2ed5941b8..a70ddccfe 100644 --- a/cranelift/codegen/meta/src/gen_settings.rs +++ b/cranelift/codegen/meta/src/gen_settings.rs @@ -418,7 +418,7 @@ fn gen_display(group: &SettingGroup, fmt: &mut Formatter) { fn g...
16
125
11
c98d6f6201101a6c46ed48c7097c744d654ccfed
Pat Hickey
2021-01-26T20:18:39
fix warning
diff --git a/crates/wasi-c2/cap-std-sync/src/sched/windows.rs b/crates/wasi-c2/cap-std-sync/src/sched/windows.rs index 9d22acd3b..0cdee8c88 100644 --- a/crates/wasi-c2/cap-std-sync/src/sched/windows.rs +++ b/crates/wasi-c2/cap-std-sync/src/sched/windows.rs @@ -13,15 +13,11 @@ use wasi_c2::{ }, Error, ErrorExt...
1
2
6
4f3bc1d5d48a958e185fb9c3ac7f6c4b238c24ee
Nick Fitzgerald
2021-01-26T18:11:29
wasmtime: clarify `Memory::{read,write}` behavior with out-of-bounds ranges This documents that we will never do partial reads/writes, and expands our existing tests to assert this.
diff --git a/crates/wasmtime/src/memory.rs b/crates/wasmtime/src/memory.rs index f5c82292a..0b2d21e2b 100644 --- a/crates/wasmtime/src/memory.rs +++ b/crates/wasmtime/src/memory.rs @@ -304,8 +304,8 @@ impl Memory { /// /// The entire buffer will be filled. /// - /// If offset + buffer length exceed th...
2
12
4
3b7f3e0c238ba13a44dd5fc5d309c08691324d73
Nick Fitzgerald
2021-01-25T20:37:49
Remove semicolon to quiet a rustc warning
diff --git a/crates/debug/src/transform/expression.rs b/crates/debug/src/transform/expression.rs index 0a286aa61..a9460f9c2 100644 --- a/crates/debug/src/transform/expression.rs +++ b/crates/debug/src/transform/expression.rs @@ -468,7 +468,7 @@ where let _ = code_chunk; // suppresses warning for final ...
1
1
1
8d84482153238bce22bd7e89f084ec4b7cfa1264
Nick Fitzgerald
2021-01-23T01:30:42
bench-api: Allow access to files in the current directory And pass through the `WASM_BENCH_USE_SMALL_WORKLOAD` env var. Part of https://github.com/bytecodealliance/sightglass/issues/70
diff --git a/crates/bench-api/src/lib.rs b/crates/bench-api/src/lib.rs index 8daf1197d..1d0e2dcd6 100644 --- a/crates/bench-api/src/lib.rs +++ b/crates/bench-api/src/lib.rs @@ -73,6 +73,7 @@ //! ``` use anyhow::{anyhow, Context, Result}; +use std::env; use std::os::raw::{c_int, c_void}; use std::slice; use wasi_...
1
16
1
c7c6e76f9b93e10bfb56a5a4e96edd165b1af334
Nick Fitzgerald
2021-01-26T15:11:24
fuzzing: Add tests for dummy import generation (#2604)
diff --git a/crates/fuzzing/src/oracles/dummy.rs b/crates/fuzzing/src/oracles/dummy.rs index 561a8fb32..f49cee8c5 100644 --- a/crates/fuzzing/src/oracles/dummy.rs +++ b/crates/fuzzing/src/oracles/dummy.rs @@ -349,3 +349,232 @@ fn wat_ty(ty: &ValType) -> &'static str { ValType::FuncRef => "funcref", } } +...
2
231
2
f4faa04dca6ef9b822764d78a0bdd4bd5f07fb7d
theduke
2021-01-26T15:09:20
Safe Memory read/write API (#2528) This commit introduces two new methods on `Memory` that enable reading and writing memory contents without requiring `unsafe`. The methods return a new `MemoryError` if the memory access fails.
diff --git a/crates/wasmtime/src/externals.rs b/crates/wasmtime/src/externals.rs index a3cede9cb..890471b1a 100644 --- a/crates/wasmtime/src/externals.rs +++ b/crates/wasmtime/src/externals.rs @@ -605,6 +605,22 @@ impl Table { } } +/// Error for out of bounds [`Memory`] access. +#[derive(Debug)] +#[non_exhausti...
2
103
2
fded424e689dd5f5a3f3e1539f4bc2b36a6e324e
Pat Hickey
2021-01-26T01:07:43
Dir::hard_link: dont support symlink following if we're asked to follow symlinks, give ERRNO_INVAL instead.
diff --git a/crates/wasi-c2/cap-std-sync/src/dir.rs b/crates/wasi-c2/cap-std-sync/src/dir.rs index d4e357e6a..ca75dfbf5 100644 --- a/crates/wasi-c2/cap-std-sync/src/dir.rs +++ b/crates/wasi-c2/cap-std-sync/src/dir.rs @@ -200,7 +200,6 @@ impl WasiDir for Dir { fn hard_link( &self, src_path: &str, ...
3
4
3
a993090e301f2119252c3e741510b41929987788
Pat Hickey
2021-01-26T01:07:39
fix warning
diff --git a/crates/wasi-c2/src/table.rs b/crates/wasi-c2/src/table.rs index 7bcc4655e..3df4df1f8 100644 --- a/crates/wasi-c2/src/table.rs +++ b/crates/wasi-c2/src/table.rs @@ -1,5 +1,4 @@ use crate::{Error, ErrorExt}; -use anyhow::anyhow; use std::any::Any; use std::cell::{Ref, RefCell, RefMut}; use std::collectio...
1
0
1
42ccb11f15f9380777bf08d67989f0a2d41b4ccf
Pat Hickey
2021-01-26T00:58:31
cap-std is going to use winerror::ERROR_STOPPED_ON_SYMLINK to communicate eloop on windows
diff --git a/crates/wasi-c2/src/snapshots/preview_1.rs b/crates/wasi-c2/src/snapshots/preview_1.rs index 8e0b379cb..32b87cd89 100644 --- a/crates/wasi-c2/src/snapshots/preview_1.rs +++ b/crates/wasi-c2/src/snapshots/preview_1.rs @@ -172,6 +172,7 @@ impl TryFrom<std::io::Error> for types::Errno { winerr...
1
1
10
b0b263f68e8d4a63c551043181d0f59d115f4028
Pat Hickey
2021-01-25T23:20:46
find a symlink error
diff --git a/crates/wasi-c2/src/snapshots/preview_1.rs b/crates/wasi-c2/src/snapshots/preview_1.rs index 802efe5fc..8e0b379cb 100644 --- a/crates/wasi-c2/src/snapshots/preview_1.rs +++ b/crates/wasi-c2/src/snapshots/preview_1.rs @@ -186,6 +186,16 @@ impl TryFrom<std::io::Error> for types::Errno { std::...
1
10
0
144ca2f5353fe95d9a82d94c32cf4eeaff2b8cb1
Pat Hickey
2021-01-25T23:14:26
add a test of symlink happy path to isolate the windows failure
diff --git a/crates/test-programs/wasi-tests/src/bin/symlink_create.rs b/crates/test-programs/wasi-tests/src/bin/symlink_create.rs new file mode 100644 index 000000000..17e55337b --- /dev/null +++ b/crates/test-programs/wasi-tests/src/bin/symlink_create.rs @@ -0,0 +1,93 @@ +use libc; +use more_asserts::assert_gt; +use ...
1
93
0
72b207de2e12f073d81b86b53ec7ec57de547a21
Pat Hickey
2021-01-25T22:34:47
path_link: some improvements required by windows * need to close the handle to the subdirectory before its legal to delete it * windows doesnt give us a way to distinguish between an ERRNO_PERM and an ERRNO_ACCES, so lets accept either one
diff --git a/crates/test-programs/wasi-tests/src/bin/path_link.rs b/crates/test-programs/wasi-tests/src/bin/path_link.rs index c459d7f79..7a441f4f5 100644 --- a/crates/test-programs/wasi-tests/src/bin/path_link.rs +++ b/crates/test-programs/wasi-tests/src/bin/path_link.rs @@ -134,15 +134,16 @@ unsafe fn test_path_link(...
1
8
7
17a82c5b885aa4bae9367a552142d360601b35aa
Pat Hickey
2021-01-25T20:16:07
table: fix up errnos. trap on internal failures.
diff --git a/crates/wasi-c2/src/table.rs b/crates/wasi-c2/src/table.rs index 828483033..7bcc4655e 100644 --- a/crates/wasi-c2/src/table.rs +++ b/crates/wasi-c2/src/table.rs @@ -29,7 +29,7 @@ impl Table { self.next_key = self .next_key .checked_add(1) - .ok_o...
1
5
5
957c434b67b5e1e294b659f6aac31d5d4108beca
Pat Hickey
2021-01-25T20:14:27
ErrorExt: trap convenience method
diff --git a/crates/wasi-c2/cap-std-sync/src/sched/windows.rs b/crates/wasi-c2/cap-std-sync/src/sched/windows.rs index 8b7bdd331..9d22acd3b 100644 --- a/crates/wasi-c2/cap-std-sync/src/sched/windows.rs +++ b/crates/wasi-c2/cap-std-sync/src/sched/windows.rs @@ -1,4 +1,4 @@ -use anyhow::{anyhow, Context}; +use anyhow::Co...
2
9
5
634e911a4bc34c91b3f077bfb41568aba61efd08
Pat Hickey
2021-01-25T20:13:02
tests: directory seeking is actually prohibited! but the test was wrong * path_open of a directory without OFLAGS_DIRECTORY worked on linux, but fortunately not on windows! * the errno is BADF instead of NOTCAPABLE for fd_seek on a directory * no way for a directory to have the FD_SEEK right.
diff --git a/crates/test-programs/wasi-tests/src/bin/directory_seek.rs b/crates/test-programs/wasi-tests/src/bin/directory_seek.rs index 72b7a8dc6..fc6cd3eb0 100644 --- a/crates/test-programs/wasi-tests/src/bin/directory_seek.rs +++ b/crates/test-programs/wasi-tests/src/bin/directory_seek.rs @@ -7,8 +7,16 @@ unsafe fn ...
1
14
6