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 |
|---|---|---|---|---|---|---|---|
3c5416446c47eec5266f758ac8ff260c6c56430e | Chris Fallin | 2021-01-25T16:32:06 | Fix cargo-deny issue with raw-cpuid advisory.
cargo-deny tells us that we should upgrade raw-cpuid to v9.0.0. This
new version also seems to lack the `nightly` feature (perhaps it has
been incorporated into the base functionality) so I had to remove this
feature selector to build. | diff --git a/Cargo.lock b/Cargo.lock
index 9e4057f5b..86cbcb9f6 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2147,13 +2147,11 @@ dependencies = [
[[package]]
name = "raw-cpuid"
-version = "8.1.2"
+version = "9.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1fdf7d9dbd43f3d81d94a4... | 2 | 4 | 33 |
2b70ea8b916c920d51eb89494fbbf3de181e1296 | Pat Hickey | 2021-01-23T02:26:45 | windows scheduler passes tests
unfortunately this does essentially nothing to convince me of its
correctness | diff --git a/Cargo.lock b/Cargo.lock
index 05e1192e6..b287e067b 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2541,12 +2541,14 @@ dependencies = [
name = "wasi-c2-cap-std-sync"
version = "0.22.0"
dependencies = [
+ "anyhow",
"bitflags",
"cap-fs-ext",
"cap-rand",
"cap-std",
"cap-time-ext",
"fs-set-times",
... | 6 | 229 | 11 |
f54d0d05c7295e1c928a8bd2aa508ba7e68e22f5 | Chris Fallin | 2021-01-23T00:02:29 | Address review comments. | diff --git a/cranelift/codegen/src/machinst/debug.rs b/cranelift/codegen/src/machinst/debug.rs
index 79a7467c5..4768b8d06 100644
--- a/cranelift/codegen/src/machinst/debug.rs
+++ b/cranelift/codegen/src/machinst/debug.rs
@@ -24,9 +24,12 @@ use crate::machinst::*;
use crate::value_label::{LabelValueLoc, ValueLabelsRang... | 2 | 128 | 44 |
19254bfd72684d929cac1f82bb7e302c7958878e | Pat Hickey | 2021-01-22T23:44:32 | error mapping for windows! | diff --git a/Cargo.lock b/Cargo.lock
index 258a848fc..05e1192e6 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2534,6 +2534,7 @@ dependencies = [
"thiserror",
"tracing",
"wiggle",
+ "winapi",
]
[[package]]
@@ -2551,6 +2552,7 @@ dependencies = [
"tracing",
"unsafe-io",
"wasi-c2",
+ "winapi",
]
[[packag... | 4 | 76 | 29 |
423973a8ea16d9cabfe249c2c38490c0bc930299 | Pat Hickey | 2021-01-22T23:29:09 | push the error types conversion all the way through | diff --git a/crates/wasi-c2/cap-std-sync/src/dir.rs b/crates/wasi-c2/cap-std-sync/src/dir.rs
index 42c2b111c..d4e357e6a 100644
--- a/crates/wasi-c2/cap-std-sync/src/dir.rs
+++ b/crates/wasi-c2/cap-std-sync/src/dir.rs
@@ -6,7 +6,7 @@ use std::path::{Path, PathBuf};
use wasi_c2::{
dir::{ReaddirCursor, ReaddirEntity... | 6 | 59 | 38 |
1d8070b734f2285d757ef593dce97b016995cdd8 | Pat Hickey | 2021-01-22T23:03:16 | wasi-c2: completely redo how errors work | diff --git a/crates/wasi-c2/src/dir.rs b/crates/wasi-c2/src/dir.rs
index bdc081186..a0b59c364 100644
--- a/crates/wasi-c2/src/dir.rs
+++ b/crates/wasi-c2/src/dir.rs
@@ -1,5 +1,5 @@
use crate::file::{FdFlags, FileCaps, FileType, Filestat, OFlags, WasiFile};
-use crate::{Error, SystemTimeSpec};
+use crate::{Error, Error... | 8 | 250 | 316 |
a06c4fbe1ae0e40dae604d6b167e4ca31d0f39aa | Pat Hickey | 2021-01-22T19:37:39 | make a pipe filetype, reorder filetype enum | diff --git a/crates/wasi-c2/cap-std-sync/Cargo.toml b/crates/wasi-c2/cap-std-sync/Cargo.toml
index f61afb51a..d39693356 100644
--- a/crates/wasi-c2/cap-std-sync/Cargo.toml
+++ b/crates/wasi-c2/cap-std-sync/Cargo.toml
@@ -22,5 +22,7 @@ fs-set-times = "0.2.2"
unsafe-io = "0.2"
system-interface = { version = "0.5.2", fe... | 4 | 9 | 8 |
55b0e8b9e528d185f085539aaef01e16c29a2d69 | Alex Crichton | 2021-01-22T15:55:28 | Fix C API function name of setting max instances (#2598)
Forgot the trailing `_set` at the end... | diff --git a/crates/c-api/src/config.rs b/crates/c-api/src/config.rs
index ae0cb6abd..5ca7e7a3b 100644
--- a/crates/c-api/src/config.rs
+++ b/crates/c-api/src/config.rs
@@ -173,6 +173,6 @@ pub extern "C" fn wasmtime_config_dynamic_memory_guard_size_set(c: &mut wasm_con
}
#[no_mangle]
-pub extern "C" fn wasmtime_con... | 1 | 1 | 1 |
86d369c72a0b2d5c6f06f6b7b8e262781308144c | Pat Hickey | 2021-01-22T02:17:49 | inline poll from yanix | diff --git a/Cargo.lock b/Cargo.lock
index ea5ff03ec..258a848fc 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2540,6 +2540,7 @@ dependencies = [
name = "wasi-c2-cap-std-sync"
version = "0.22.0"
dependencies = [
+ "bitflags",
"cap-fs-ext",
"cap-rand",
"cap-std",
@@ -2550,7 +2551,6 @@ dependencies = [
"tracing"... | 5 | 243 | 201 |
9e0d295f8c75bd81bfec0b02024d1257e7b5496c | Pat Hickey | 2021-01-22T02:08:15 | use `unsafe` to mark reopen_with_fdflags as having special safety features | diff --git a/crates/wasi-c2/cap-std-sync/src/file.rs b/crates/wasi-c2/cap-std-sync/src/file.rs
index 0672455a3..00a43dd3e 100644
--- a/crates/wasi-c2/cap-std-sync/src/file.rs
+++ b/crates/wasi-c2/cap-std-sync/src/file.rs
@@ -38,7 +38,7 @@ impl WasiFile for File {
// XXX get_fdflags is not implemented but lets ... | 5 | 15 | 7 |
69b735233242a257be8ab7cd8b6156b364aa9ed7 | Pat Hickey | 2021-01-22T01:57:12 | various stdio fixes | diff --git a/crates/wasi-c2/cap-std-sync/src/stdio.rs b/crates/wasi-c2/cap-std-sync/src/stdio.rs
index fe527bff5..4847c40c6 100644
--- a/crates/wasi-c2/cap-std-sync/src/stdio.rs
+++ b/crates/wasi-c2/cap-std-sync/src/stdio.rs
@@ -44,7 +44,6 @@ impl WasiFile for Stdin {
}
fn get_filestat(&self) -> Result<Filest... | 1 | 8 | 11 |
f1a5dce716b807e259cd3f896a6e705c5612ac1f | Pat Hickey | 2021-01-22T01:56:03 | change set_fdflags to reopen_with_fdflags | diff --git a/crates/wasi-c2/cap-std-sync/src/file.rs b/crates/wasi-c2/cap-std-sync/src/file.rs
index 5502335ba..0672455a3 100644
--- a/crates/wasi-c2/cap-std-sync/src/file.rs
+++ b/crates/wasi-c2/cap-std-sync/src/file.rs
@@ -38,8 +38,8 @@ impl WasiFile for File {
// XXX get_fdflags is not implemented but lets ... | 6 | 41 | 19 |
a46c2ad0aab6dfd2fc56a128fcdf5cd31693d14a | Pat Hickey | 2021-01-22T00:54:40 | split poll tests up, only one requires "real" stdio | diff --git a/crates/test-programs/build.rs b/crates/test-programs/build.rs
index c953c5744..ce3899870 100644
--- a/crates/test-programs/build.rs
+++ b/crates/test-programs/build.rs
@@ -146,7 +146,12 @@ mod wasi_tests {
};
writeln!(
out,
- " runtime::instantiate(&data, &b... | 4 | 191 | 113 |
12056885eb28b4226c04c29ab433010326745f05 | Pat Hickey | 2021-01-22T00:08:49 | fix preopen dir to work on windows | diff --git a/crates/test-programs/tests/wasm_tests/runtime.rs b/crates/test-programs/tests/wasm_tests/runtime.rs
index 8ceaddcc5..22b063f09 100644
--- a/crates/test-programs/tests/wasm_tests/runtime.rs
+++ b/crates/test-programs/tests/wasm_tests/runtime.rs
@@ -1,5 +1,4 @@
use anyhow::Context;
-use std::fs::File;
use ... | 1 | 1 | 4 |
7e12abce71e54c390efb81d7b19c0dcbdac9295a | Chris Fallin | 2021-01-22T00:01:46 | Fix a few comment typos and add a clarifying comment. | diff --git a/cranelift/codegen/src/machinst/debug.rs b/cranelift/codegen/src/machinst/debug.rs
index be0d0a8ec..79a7467c5 100644
--- a/cranelift/codegen/src/machinst/debug.rs
+++ b/cranelift/codegen/src/machinst/debug.rs
@@ -13,7 +13,7 @@
//! We track, at every program point, the correspondence between each value
//!... | 1 | 4 | 2 |
997fab55d5e15aa7a91ac2463057c0d21bc7672c | Chris Fallin | 2021-01-10T03:21:06 | Skip value-label analysis if no value labels are present. | diff --git a/cranelift/codegen/src/machinst/lower.rs b/cranelift/codegen/src/machinst/lower.rs
index 7cb1c8d76..89e184fd4 100644
--- a/cranelift/codegen/src/machinst/lower.rs
+++ b/cranelift/codegen/src/machinst/lower.rs
@@ -804,6 +804,10 @@ impl<'func, I: VCodeInst> Lower<'func, I> {
}
fn emit_value_label_... | 2 | 20 | 0 |
85c3b73b4ea75a5c1fc91ac58423758fb9aea16f | Pat Hickey | 2021-01-21T21:51:18 | stdio compiles on windows! | diff --git a/Cargo.lock b/Cargo.lock
index c4d5ae3b3..9f0d008bd 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -201,12 +201,13 @@ checksum = "08c48aae112d48ed9f069b33538ea9e3e90aa263cfa3d1c24309612b1f7472de"
[[package]]
name = "cap-fs-ext"
-version = "0.9.0"
+version = "0.11.0"
source = "registry+https://github.com/r... | 4 | 194 | 88 |
57c686d49d58cbc5af7dda14e8dce4470f138f20 | Alex Crichton | 2021-01-21T21:04:17 | Refactor instantiation to be more async-friendly (#2596)
Instantiation right now uses a recursive `instantiate` function since it
was relatively easy to write that way, but this is unfortunately not
factored in a way friendly to the async implementation in #2434. This
commit refactors the function to instead use an... | diff --git a/crates/wasmtime/src/instance.rs b/crates/wasmtime/src/instance.rs
index fed2bb29c..02ad1a1b9 100644
--- a/crates/wasmtime/src/instance.rs
+++ b/crates/wasmtime/src/instance.rs
@@ -1,3 +1,4 @@
+use crate::trampoline::StoreInstanceHandle;
use crate::types::matching;
use crate::{
Engine, Export, Extern... | 2 | 357 | 264 |
fcd00f5de1556f7aadc9300c505ae86a965bc950 | Pat Hickey | 2021-01-21T20:35:55 | move more deps to cap-std-sync, define own SystemTimeSpec | diff --git a/Cargo.lock b/Cargo.lock
index d015e1534..c4d5ae3b3 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2516,18 +2516,14 @@ version = "0.22.0"
dependencies = [
"anyhow",
"bitflags",
- "cap-fs-ext",
"cap-rand",
"cap-std",
- "cap-time-ext",
"cfg-if 1.0.0",
- "fs-set-times",
"libc",
"system-interface",... | 13 | 160 | 167 |
81d248c057d9cb5d137ea3f9347c9622f55e07bf | bjorn3 | 2021-01-21T17:05:37 | Implement Mach-O TLS access for x64 newBE | diff --git a/cranelift/codegen/src/isa/x64/inst/emit.rs b/cranelift/codegen/src/isa/x64/inst/emit.rs
index e1253b959..662290345 100644
--- a/cranelift/codegen/src/isa/x64/inst/emit.rs
+++ b/cranelift/codegen/src/isa/x64/inst/emit.rs
@@ -3016,6 +3016,19 @@ pub(crate) fn emit(
);
sink.put4(0); /... | 4 | 43 | 2 |
2d5037d84c6c16be4bac6ac42e74f3eeacb190df | Andronik Ordian | 2021-01-21T16:16:07 | cache: update zstd to 0.6, disable legacy feature (#2592) | diff --git a/Cargo.lock b/Cargo.lock
index 4a3f6b091..612d9d3c2 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2959,18 +2959,18 @@ dependencies = [
[[package]]
name = "zstd"
-version = "0.5.4+zstd.1.4.7"
+version = "0.6.0+zstd.1.4.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "69996... | 2 | 7 | 7 |
61885b70712e643f5c487bb24a3cd7d1d55d1a9a | Pat Hickey | 2021-01-21T05:03:33 | stub in windows scheduler, get to some interesting errors | diff --git a/crates/wasi-c2/cap-std-sync/src/sched.rs b/crates/wasi-c2/cap-std-sync/src/sched.rs
index 587984788..fe87e9b7d 100644
--- a/crates/wasi-c2/cap-std-sync/src/sched.rs
+++ b/crates/wasi-c2/cap-std-sync/src/sched.rs
@@ -1,5 +1,7 @@
#[cfg(unix)]
pub use unix::*;
+#[cfg(windows)]
+pub use windows::*;
#[cfg(... | 1 | 65 | 4 |
7ec03631daefec3eb11f1102bd850a7e1747e6a6 | Pat Hickey | 2021-01-21T04:53:44 | inline only what we need of cap-std/system-interface traits | diff --git a/crates/wasi-c2/cap-std-sync/src/dir.rs b/crates/wasi-c2/cap-std-sync/src/dir.rs
index bf9990f3d..50d61fe1e 100644
--- a/crates/wasi-c2/cap-std-sync/src/dir.rs
+++ b/crates/wasi-c2/cap-std-sync/src/dir.rs
@@ -1,4 +1,4 @@
-use crate::file::File;
+use crate::file::{filetype_from, File};
use cap_fs_ext::{DirE... | 7 | 337 | 320 |
f3e40e2fc4b69d45ff951d8ce9626e92befee141 | Pat Hickey | 2021-01-21T03:09:15 | restructure cap-std impls into their own crate | diff --git a/Cargo.lock b/Cargo.lock
index ae8c74214..d015e1534 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2263,6 +2263,7 @@ dependencies = [
"target-lexicon",
"tempfile",
"wasi-c2",
+ "wasi-c2-cap-std-sync",
"wasi-c2-wasmtime",
"wasmtime",
"wat",
@@ -2529,6 +2530,22 @@ dependencies = [
"yanix 0.22.0 (r... | 19 | 597 | 485 |
016ed8966a995c629ddb5a8b97e4224e2a60a5d5 | Pat Hickey | 2021-01-19T23:11:54 | poll now handles monotonic clocks, not system clocks
I initially had it backwards. It is not sensible to poll on a system
clock timeout because the system clock is not necessarily monotonic!
only a monotonic clock makes sense for a timeout. | diff --git a/crates/wasi-c2/src/sched.rs b/crates/wasi-c2/src/sched.rs
index 3e6a82535..bb678c5d8 100644
--- a/crates/wasi-c2/src/sched.rs
+++ b/crates/wasi-c2/src/sched.rs
@@ -1,14 +1,14 @@
-use crate::clocks::WasiSystemClock;
+use crate::clocks::WasiMonotonicClock;
use crate::file::WasiFile;
use crate::Error;
-use ... | 4 | 36 | 30 |
21713d346826324866edc2de29ba163aea38cb90 | Pat Hickey | 2021-01-19T22:57:10 | Revert "TEMPORARY: poll_oneoff test uses CLOCKID_REALTIME instead of MONOTONIC"
This reverts commit f667263d9ce9e29451f9a9a1c7f3ea6ce1e4bb67. | diff --git a/crates/test-programs/wasi-tests/src/bin/poll_oneoff.rs b/crates/test-programs/wasi-tests/src/bin/poll_oneoff.rs
index 914c54d02..6288a55c5 100644
--- a/crates/test-programs/wasi-tests/src/bin/poll_oneoff.rs
+++ b/crates/test-programs/wasi-tests/src/bin/poll_oneoff.rs
@@ -28,7 +28,7 @@ unsafe fn test_empty_... | 1 | 2 | 2 |
657024bd0da34db6e0249e0a28ec12cf09559a4d | Pat Hickey | 2021-01-19T22:39:20 | latest system-interface provides ReadReady::num_ready_bytes | diff --git a/Cargo.lock b/Cargo.lock
index cb5a601f5..ae8c74214 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -993,7 +993,7 @@ dependencies = [
"cc",
"libc",
"log",
- "rustc_version",
+ "rustc_version 0.2.3",
"winapi",
]
@@ -1558,6 +1558,15 @@ dependencies = [
name = "peepmatic-traits"
version = "0.69.0"
+... | 6 | 118 | 27 |
32343a70184b32dfdeccb90ab286783bad4f1d18 | Han Zhao | 2021-01-19T18:27:20 | Updated Cargo.lock for libc | diff --git a/Cargo.lock b/Cargo.lock
index f6cf7f0f2..4a3f6b091 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1115,9 +1115,9 @@ checksum = "3576a87f2ba00f6f106fdfcd16db1d698d648a26ad8e0573cad8537c3c362d2a"
[[package]]
name = "libc"
-version = "0.2.81"
+version = "0.2.82"
source = "registry+https://github.com/rust-l... | 1 | 2 | 2 |
d37e2d53c75ece555014197b7f0ef2bfbbddc2a9 | Han Zhao | 2021-01-19T18:11:32 | Updated libc version to 0.2.82 in dependencies | diff --git a/crates/runtime/Cargo.toml b/crates/runtime/Cargo.toml
index 78564d6fa..40266d379 100644
--- a/crates/runtime/Cargo.toml
+++ b/crates/runtime/Cargo.toml
@@ -14,7 +14,7 @@ edition = "2018"
[dependencies]
wasmtime-environ = { path = "../environ", version = "0.22.0" }
region = "2.1.0"
-libc = { version = "0... | 1 | 1 | 1 |
f8268b2139460a9e113b5a7b6a4f41b254b33a90 | Han Zhao | 2021-01-19T16:08:11 | Bugfix of issue #2575
Bugfix of issue #2575.
Use libc 0.2.82 on aarch64-apple-darwin Apple Silicon, and local test passes. | diff --git a/crates/runtime/src/traphandlers.rs b/crates/runtime/src/traphandlers.rs
index 948a24d53..942bdef0f 100644
--- a/crates/runtime/src/traphandlers.rs
+++ b/crates/runtime/src/traphandlers.rs
@@ -164,9 +164,15 @@ cfg_if::cfg_if! {
} else if #[cfg(all(any(target_os = "linux", target_os = "andro... | 1 | 7 | 1 |
7f7a0be938fbf4568071aa990cc0fcbb52d96670 | Pat Hickey | 2021-01-15T01:43:53 | wasi-c2: implement a synchronous poll_oneoff in terms of yanix
doesnt work on unix yet! also breaks all the rules about using the
cap-std family instead of rawfds! but this is cool and im happy with it | diff --git a/Cargo.lock b/Cargo.lock
index 1a37b3d02..cb5a601f5 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2472,6 +2472,7 @@ dependencies = [
"thiserror",
"tracing",
"wiggle",
+ "yanix 0.22.0 (registry+https://github.com/rust-lang/crates.io-index)",
]
[[package]]
@@ -2501,7 +2502,7 @@ dependencies = [
"wi... | 8 | 169 | 57 |
b84c4d748826837fb532fa64bf32ac6b50690d77 | Pat Hickey | 2021-01-15T01:41:27 | poll_oneoff test: if you subscribe to a badf, the whole call fails with badf
rather than the results telling you an individual file was a badf.
why? i think the old behavior was too clever, and makes it harder to
write a scheduler.
* what should the call do when you pass it some badf and some not-badf?
i don't think... | diff --git a/crates/test-programs/wasi-tests/src/bin/poll_oneoff.rs b/crates/test-programs/wasi-tests/src/bin/poll_oneoff.rs
index 93343374b..914c54d02 100644
--- a/crates/test-programs/wasi-tests/src/bin/poll_oneoff.rs
+++ b/crates/test-programs/wasi-tests/src/bin/poll_oneoff.rs
@@ -247,7 +247,31 @@ unsafe fn test_fd_... | 1 | 25 | 1 |
f667263d9ce9e29451f9a9a1c7f3ea6ce1e4bb67 | Pat Hickey | 2021-01-15T01:40:56 | TEMPORARY: poll_oneoff test uses CLOCKID_REALTIME instead of MONOTONIC
the scheduler does not support the monotonic clock yet, i will fix this
soon | diff --git a/crates/test-programs/wasi-tests/src/bin/poll_oneoff.rs b/crates/test-programs/wasi-tests/src/bin/poll_oneoff.rs
index 70277e6f7..93343374b 100644
--- a/crates/test-programs/wasi-tests/src/bin/poll_oneoff.rs
+++ b/crates/test-programs/wasi-tests/src/bin/poll_oneoff.rs
@@ -28,7 +28,7 @@ unsafe fn test_empty_... | 1 | 2 | 2 |
7d7acc46140d9de05fa409de049f45866f7ef314 | Pat Hickey | 2021-01-15T01:40:04 | poll_oneoff test: outline assertions
this makes the panic message have the line number, which
is handy | diff --git a/crates/test-programs/wasi-tests/src/bin/poll_oneoff.rs b/crates/test-programs/wasi-tests/src/bin/poll_oneoff.rs
index 754164382..70277e6f7 100644
--- a/crates/test-programs/wasi-tests/src/bin/poll_oneoff.rs
+++ b/crates/test-programs/wasi-tests/src/bin/poll_oneoff.rs
@@ -4,19 +4,14 @@ use wasi_tests::{open... | 1 | 12 | 13 |
9a1ce1a272ace87502c1af25913467239bb7da6b | Pat Hickey | 2021-01-15T01:38:43 | TEMPORARY: inherit stdio for the wasi ctx
this is unfortunate but the poll_oneoff test insists on polling on stdio
handles. to undo this temporary fix later, lets rewrite the test to open
some regular files from the scratch directory and poll on them instead. | diff --git a/crates/test-programs/tests/wasm_tests/runtime.rs b/crates/test-programs/tests/wasm_tests/runtime.rs
index 549d86c02..0fae446bd 100644
--- a/crates/test-programs/tests/wasm_tests/runtime.rs
+++ b/crates/test-programs/tests/wasm_tests/runtime.rs
@@ -5,8 +5,10 @@ use wasi_c2::virt::pipe::{ReadPipe, WritePipe}... | 1 | 5 | 6 |
d66db16d00e3054429a5818d19b097ef935f0ac0 | Alex Crichton | 2021-01-14T22:38:05 | Fix a doc link | diff --git a/crates/wasmtime/src/func.rs b/crates/wasmtime/src/func.rs
index 23bf36f73..7f68b9796 100644
--- a/crates/wasmtime/src/func.rs
+++ b/crates/wasmtime/src/func.rs
@@ -371,8 +371,8 @@ impl Func {
///
/// Finally you can also optionally take [`Caller`] as the first argument of
/// your closure. I... | 1 | 2 | 2 |
bc9f10115d5614c51e652d738285cb36278e7e92 | Alex Crichton | 2021-01-14T22:37:44 | Fix a typo | diff --git a/crates/wasmtime/src/instance.rs b/crates/wasmtime/src/instance.rs
index 34f87e5c0..e574f3881 100644
--- a/crates/wasmtime/src/instance.rs
+++ b/crates/wasmtime/src/instance.rs
@@ -308,7 +308,7 @@ impl Instance {
bail!("cross-`Engine` instantiation is not currently supported");
}
- ... | 1 | 1 | 1 |
4b39a141632033a3dac08519140e708aa7d4a78c | Pat Hickey | 2021-01-14T22:14:41 | fix tests in pipe | diff --git a/crates/wasi-c2/src/virt/pipe.rs b/crates/wasi-c2/src/virt/pipe.rs
index 5dd799760..6196360b8 100644
--- a/crates/wasi-c2/src/virt/pipe.rs
+++ b/crates/wasi-c2/src/virt/pipe.rs
@@ -23,9 +23,8 @@ use system_interface::fs::{Advice, FileIoExt};
/// ```
/// # use wasi_c2::WasiCtx;
/// # use wasi_c2::virt::pi... | 1 | 2 | 4 |
5c8efe868e3d1539ddf32f3a062c75c794f6cf00 | Pat Hickey | 2021-01-14T21:39:01 | need Any on WasiFile to upcast for AsRawFd | diff --git a/crates/wasi-c2/src/file.rs b/crates/wasi-c2/src/file.rs
index a410ef2c5..106f734a2 100644
--- a/crates/wasi-c2/src/file.rs
+++ b/crates/wasi-c2/src/file.rs
@@ -1,11 +1,13 @@
use crate::Error;
use bitflags::bitflags;
use fs_set_times::SetTimes;
+use std::any::Any;
use std::cell::Ref;
use std::ops::Dere... | 7 | 87 | 19 |
cde07b9a79aaab486715e2b3ed966b34a2d605f3 | Johnnie Birch | 2021-01-14T02:01:42 | Re-enable spec tests that were disabled for #2432 #2470. Enable new tests
Re-enables spec tests that were turned off for #2432 and #2470 while
also enabling tests that now work due to patch pushes in the interim.
Currently all SIMD spec tests past. Testing to assure this is ok to
enable hasn't been super intense so we... | diff --git a/build.rs b/build.rs
index 35257cdb7..fe3bf4456 100644
--- a/build.rs
+++ b/build.rs
@@ -176,10 +176,52 @@ fn write_testsuite_tests(
/// For experimental_x64 backend features that are not supported yet, mark tests as panicking, so
/// they stop "passing" once the features are properly implemented.
-///
... | 1 | 46 | 9 |
d17815a239545b030aa1b97220d38bcad7aae437 | Johnnie Birch | 2021-01-14T00:50:28 | Zero newly allocated registers whose immediate use depends on content not being NaN
An intermittent failure during SIMD spectests is described in #2432. This patch
corrects code written in a way that assumes comparing fp equality of a register with itself will
always return true. This is not true when the register val... | diff --git a/cranelift/codegen/src/isa/x64/lower.rs b/cranelift/codegen/src/isa/x64/lower.rs
index 1712d5d17..9293221de 100644
--- a/cranelift/codegen/src/isa/x64/lower.rs
+++ b/cranelift/codegen/src/isa/x64/lower.rs
@@ -3138,8 +3138,11 @@ fn lower_insn_to_regs<C: LowerCtx<I = Inst>>(
ctx.emit(Inst... | 1 | 4 | 1 |
ea94d6f79d12bd79875b73210b2f000cb0b05159 | Pat Hickey | 2021-01-13T23:11:11 | this is indeed a nice way to do refs! | diff --git a/crates/wasi-c2/src/dir.rs b/crates/wasi-c2/src/dir.rs
index f36dae489..0325b69fd 100644
--- a/crates/wasi-c2/src/dir.rs
+++ b/crates/wasi-c2/src/dir.rs
@@ -3,6 +3,7 @@ use crate::file::{FdFlags, FileCaps, FileType, Filestat, OFlags, WasiFile};
use bitflags::bitflags;
use cap_fs_ext::SystemTimeSpec;
use ... | 3 | 169 | 128 |
7beb52a2bc6023bc83cb1cb54be2b3b663f29cd3 | Pat Hickey | 2021-01-13T22:23:59 | i guess this is a way to do refs | diff --git a/crates/wasi-c2/src/file.rs b/crates/wasi-c2/src/file.rs
index 73d7a3abc..03393f478 100644
--- a/crates/wasi-c2/src/file.rs
+++ b/crates/wasi-c2/src/file.rs
@@ -1,6 +1,7 @@
use crate::Error;
use bitflags::bitflags;
use fs_set_times::SetTimes;
+use std::cell::Ref;
use std::ops::Deref;
use system_interfa... | 2 | 18 | 9 |
8298ce9e4d1d59734720e4eb9b1607ec55983b72 | Pat Hickey | 2021-01-13T19:57:42 | clock sub, start with the read sub | diff --git a/crates/wasi-c2/src/file.rs b/crates/wasi-c2/src/file.rs
index ccc0f4d48..73d7a3abc 100644
--- a/crates/wasi-c2/src/file.rs
+++ b/crates/wasi-c2/src/file.rs
@@ -135,6 +135,7 @@ bitflags! {
const FILESTAT_GET = 0b1000000000;
const FILESTAT_SET_SIZE = 0b10000000000;
const FIL... | 2 | 37 | 6 |
e0e205f8d273fc43133787db0d9a8d37e531a6f3 | Pat Hickey | 2021-01-13T19:07:06 | ctx builder: fix warnings, test harness | diff --git a/crates/test-programs/tests/wasm_tests/runtime.rs b/crates/test-programs/tests/wasm_tests/runtime.rs
index 3073d9453..549d86c02 100644
--- a/crates/test-programs/tests/wasm_tests/runtime.rs
+++ b/crates/test-programs/tests/wasm_tests/runtime.rs
@@ -15,7 +15,7 @@ pub fn instantiate(data: &[u8], bin_name: &st... | 5 | 40 | 55 |
932378eb7b499e0b23ad8a8e762cc8e905100d8a | Léo Gaspard | 2021-01-13T04:18:36 | reexport all the things required to implement WasiDir | diff --git a/crates/wasi-c2/src/lib.rs b/crates/wasi-c2/src/lib.rs
index a65433532..7aa79d3d9 100644
--- a/crates/wasi-c2/src/lib.rs
+++ b/crates/wasi-c2/src/lib.rs
@@ -13,8 +13,9 @@ mod string_array;
pub mod table;
pub mod virt;
+pub use cap_fs_ext::SystemTimeSpec;
pub use ctx::{WasiCtx, WasiCtxBuilder};
-pub use... | 2 | 7 | 3 |
20bb4b211e7d5d65f03f25ff6e84f42ad4896c1d | Léo Gaspard | 2021-01-13T04:10:28 | Also reexport Error from wasmtime_wasi | diff --git a/crates/wasi-c2/wasmtime/src/lib.rs b/crates/wasi-c2/wasmtime/src/lib.rs
index 527f6502c..915205db4 100644
--- a/crates/wasi-c2/wasmtime/src/lib.rs
+++ b/crates/wasi-c2/wasmtime/src/lib.rs
@@ -1,4 +1,4 @@
-pub use wasi_c2::{WasiCtx, WasiCtxBuilder, WasiDir};
+pub use wasi_c2::{Error, WasiCtx, WasiCtxBuilder... | 1 | 1 | 1 |
5d8521632976f43414d1cb0d4cc1eac9589b756e | Léo Gaspard | 2021-01-13T04:05:37 | also reexport WasiDir from wasmtime_wasi | diff --git a/crates/wasi-c2/wasmtime/src/lib.rs b/crates/wasi-c2/wasmtime/src/lib.rs
index b3b02cae1..527f6502c 100644
--- a/crates/wasi-c2/wasmtime/src/lib.rs
+++ b/crates/wasi-c2/wasmtime/src/lib.rs
@@ -1,4 +1,4 @@
-pub use wasi_c2::{WasiCtx, WasiCtxBuilder};
+pub use wasi_c2::{WasiCtx, WasiCtxBuilder, WasiDir};
/... | 1 | 1 | 1 |
2e035be60a2f6067cc7b170e1e269f483bb5ec7f | Léo Gaspard | 2021-01-13T03:51:00 | make WasiCtxBuilder be an actual builder, allowing to call .build() at the end of a call chain | diff --git a/crates/wasi-c2/src/ctx.rs b/crates/wasi-c2/src/ctx.rs
index b9e74e3c1..5f60ccca9 100644
--- a/crates/wasi-c2/src/ctx.rs
+++ b/crates/wasi-c2/src/ctx.rs
@@ -66,12 +66,12 @@ impl WasiCtxBuilder {
Ok(self.0)
}
- pub fn arg(&mut self, arg: &str) -> Result<&mut Self, StringArrayError> {
+ ... | 1 | 8 | 8 |
f3156114c4fd126f0ca35e77bc81991056085885 | Léo Gaspard | 2021-01-13T03:24:02 | reserve keys 0, 1 and 2 for stdio | diff --git a/crates/wasi-c2/src/table.rs b/crates/wasi-c2/src/table.rs
index 788f8cebf..9cfbb3691 100644
--- a/crates/wasi-c2/src/table.rs
+++ b/crates/wasi-c2/src/table.rs
@@ -12,7 +12,7 @@ impl Table {
pub fn new() -> Self {
Table {
map: HashMap::new(),
- next_key: 0,
+ ... | 1 | 1 | 1 |
7303793fa08856b7fc00c4088c47a22a45f7cc87 | Léo Gaspard | 2021-01-13T03:09:32 | also expose WasiCtxBuilder | diff --git a/crates/wasi-c2/src/lib.rs b/crates/wasi-c2/src/lib.rs
index 71fb8a312..a65433532 100644
--- a/crates/wasi-c2/src/lib.rs
+++ b/crates/wasi-c2/src/lib.rs
@@ -13,7 +13,7 @@ mod string_array;
pub mod table;
pub mod virt;
-pub use ctx::WasiCtx;
+pub use ctx::{WasiCtx, WasiCtxBuilder};
pub use dir::{DirCaps... | 2 | 2 | 2 |
81065eba384cf2344bf5b97821be95e58e41dde3 | Pat Hickey | 2021-01-13T01:42:59 | more scheduler | diff --git a/crates/wasi-c2/src/sched.rs b/crates/wasi-c2/src/sched.rs
index 9c5c82806..e3528e6d2 100644
--- a/crates/wasi-c2/src/sched.rs
+++ b/crates/wasi-c2/src/sched.rs
@@ -1,6 +1,7 @@
+use crate::clocks::WasiSystemClock;
use crate::file::WasiFile;
use crate::Error;
-use cap_std::time::{SystemClock, SystemTime};
... | 3 | 128 | 10 |
b79bdcee84eee9896383c28cfc54ad084e664caf | Pat Hickey | 2021-01-12T23:55:10 | port subscriptions in from old branch | diff --git a/crates/wasi-c2/src/sched.rs b/crates/wasi-c2/src/sched.rs
index 635a96cb6..9c5c82806 100644
--- a/crates/wasi-c2/src/sched.rs
+++ b/crates/wasi-c2/src/sched.rs
@@ -1,8 +1,15 @@
+use crate::file::WasiFile;
use crate::Error;
+use cap_std::time::{SystemClock, SystemTime};
+use std::cell::Ref;
+pub mod subscr... | 3 | 148 | 4 |
bc6dc083f0311e2fc3d1cfeccc7331e3cf9a43fd | Nick Fitzgerald | 2021-01-12T22:02:44 | wasmtime-bench-api: Randomize the locations of heap objects
This helps us avoid measurement bias due to accidental locality of unrelated
heap objects. See *Stabilizer: Statistically Sound Performance Evaluation* by
Curtsinger and Berger for details (although Stabilizer deals with much more than
just the location of he... | diff --git a/Cargo.lock b/Cargo.lock
index c220f496b..084a2cb0a 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1964,6 +1964,18 @@ version = "0.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7fdf1b9db47230893d76faad238fd6097fd6d6a9245cd7a4d90dbd639536bbd2"
+[[package]]
+name = "shuff... | 3 | 25 | 1 |
32f162aa7811b29a6fc3c20c402fb58e329aa889 | Pat Hickey | 2021-01-12T17:51:09 | fix windows flags | diff --git a/crates/wasi-common/src/sys/windows/fd.rs b/crates/wasi-common/src/sys/windows/fd.rs
index 4e3e16021..09659ac22 100644
--- a/crates/wasi-common/src/sys/windows/fd.rs
+++ b/crates/wasi-common/src/sys/windows/fd.rs
@@ -86,7 +86,7 @@ fn file_access_mode_from_fdflags(fdflags: Fdflags, read: bool, write: bool) -... | 3 | 16 | 16 |
e7018bf6e0179f69b70a2d3fda8ea402eb2137ef | Pat Hickey | 2021-01-12T02:33:52 | wiggle flags are now bitflags! | diff --git a/crates/wasi-c2/src/snapshots/preview_1.rs b/crates/wasi-c2/src/snapshots/preview_1.rs
index df7d6566b..7898f864f 100644
--- a/crates/wasi-c2/src/snapshots/preview_1.rs
+++ b/crates/wasi-c2/src/snapshots/preview_1.rs
@@ -329,10 +329,10 @@ impl<'a> wasi_snapshot_preview1::WasiSnapshotPreview1 for WasiCtx {
... | 1 | 47 | 47 |
75a9dc7fe2b91e914b9c7a1757b775640bcbf50c | Pat Hickey | 2021-01-12T02:27:43 | wasi-common: wiggle flags are now bitflags!
this mostly mechanical change is just getting rid of passing to
`contains` by reference. | diff --git a/crates/wasi-common/src/entry.rs b/crates/wasi-common/src/entry.rs
index a162b19f4..a8a5accaf 100644
--- a/crates/wasi-common/src/entry.rs
+++ b/crates/wasi-common/src/entry.rs
@@ -78,7 +78,7 @@ impl Entry {
/// `HandleRights` structure is a subset of rights attached to this `Entry`. The check is
... | 8 | 62 | 62 |
ed44a19e5ef7c0fa056b2104aee3a195c3375b2d | Pat Hickey | 2021-01-12T02:20:57 | wiggle: use bitflags to generate flags
more consistient with the rest of the ecosystem. | diff --git a/crates/wiggle/generate/src/types/flags.rs b/crates/wiggle/generate/src/types/flags.rs
index f87261abc..cda13a2bf 100644
--- a/crates/wiggle/generate/src/types/flags.rs
+++ b/crates/wiggle/generate/src/types/flags.rs
@@ -27,102 +27,31 @@ pub(super) fn define_flags(names: &Names, name: &witx::Id, f: &witx::F... | 2 | 15 | 86 |
e2fb99af860174c5bf55d386381259fc8715958a | Pat Hickey | 2021-01-12T02:04:43 | wiggle: depend on bitflags, and re-export it. | diff --git a/Cargo.lock b/Cargo.lock
index ed60ae353..c220f496b 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2815,6 +2815,7 @@ dependencies = [
name = "wiggle"
version = "0.22.0"
dependencies = [
+ "bitflags",
"proptest",
"thiserror",
"tracing",
diff --git a/crates/wiggle/Cargo.toml b/crates/wiggle/Cargo.toml
... | 3 | 3 | 0 |
94467bcd9aa45980a6dac0add9a5d5c12a8f7b27 | Pat Hickey | 2021-01-12T02:03:48 | wiggle: bugfix, generated code should use Names::runtime_mod not wiggle
as the crate from which these deps come.
I worked around this in lucet, but I'll be able to revert that
workaround. | diff --git a/crates/wiggle/generate/src/funcs.rs b/crates/wiggle/generate/src/funcs.rs
index 5cdf59eda..50f5eec64 100644
--- a/crates/wiggle/generate/src/funcs.rs
+++ b/crates/wiggle/generate/src/funcs.rs
@@ -169,7 +169,7 @@ pub fn define_func(
let func_name = &func.name.as_str();
if func.noreturn {
- ... | 3 | 5 | 4 |
4a54db083736a72d141c2a3044fa6ae3516b792a | Pat Hickey | 2021-01-12T01:58:53 | derive debug and clone on DirFdStat / FdStat | diff --git a/crates/wasi-c2/src/dir.rs b/crates/wasi-c2/src/dir.rs
index 9269a3e83..f36dae489 100644
--- a/crates/wasi-c2/src/dir.rs
+++ b/crates/wasi-c2/src/dir.rs
@@ -123,6 +123,7 @@ bitflags! {
}
}
+#[derive(Debug, Clone)]
pub struct DirFdStat {
pub file_caps: FileCaps,
pub dir_caps: DirCaps,
diff... | 2 | 2 | 0 |
b1d32f419c64abc05944a93f7bed60d5ff5a0252 | Pat Hickey | 2021-01-12T01:32:47 | use bitflags crate to define bitflags, rather than by hand | diff --git a/Cargo.lock b/Cargo.lock
index d700ae688..4d7c5e9e3 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2460,6 +2460,7 @@ name = "wasi-c2"
version = "0.22.0"
dependencies = [
"anyhow",
+ "bitflags",
"cap-fs-ext",
"cap-rand",
"cap-std",
diff --git a/crates/wasi-c2/Cargo.toml b/crates/wasi-c2/Cargo.toml
in... | 5 | 106 | 234 |
4044977f505ea7c80fb4b99d44faca429d57b937 | Pat Hickey | 2021-01-12T01:05:09 | just ignore nofollow on links for now | diff --git a/crates/wasi-c2/src/dir.rs b/crates/wasi-c2/src/dir.rs
index 343d8ab6f..bd5bc5264 100644
--- a/crates/wasi-c2/src/dir.rs
+++ b/crates/wasi-c2/src/dir.rs
@@ -407,15 +407,7 @@ impl WasiDir for cap_std::fs::Dir {
.ok_or(Error::NotCapable)?;
let src_path = Path::new(src_path);
let... | 1 | 1 | 9 |
f084cf1fd07319e8e6178acc0dc6cebd18eef7b0 | Pat Hickey | 2021-01-11T23:56:13 | failure to create trailing slash symlink to file can be EEXIST or ENOTDIR | 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 e8e1d7fb2..2946fba19 100644
--- a/crates/test-programs/wasi-tests/src/bin/path_symlink_trailing_slashes.rs
+++ b/crates/test-programs/wasi-tests/src/bin/... | 1 | 6 | 6 |
2d2e6d16a13063241ea4e0087959516df4756223 | Pat Hickey | 2021-01-11T23:15:54 | Dir::open_file, open_dir: correct symlink following | diff --git a/crates/wasi-c2/src/dir.rs b/crates/wasi-c2/src/dir.rs
index 04a8423d3..72971b0e6 100644
--- a/crates/wasi-c2/src/dir.rs
+++ b/crates/wasi-c2/src/dir.rs
@@ -263,6 +263,8 @@ impl WasiDir for cap_std::fs::Dir {
if symlink_follow {
opts.follow(FollowSymlinks::Yes);
+ } else {
+ ... | 1 | 8 | 2 |
3068d55fa1361a0e7d3151e4b12d0b06eb54c4f1 | Nick Fitzgerald | 2021-01-08T16:57:52 | wasi-nn: Fix keyword form in Cargo.toml metadata
Keywords may not have spaces, apparently. | diff --git a/crates/wasi-nn/Cargo.toml b/crates/wasi-nn/Cargo.toml
index e8067aba0..2e322f55e 100644
--- a/crates/wasi-nn/Cargo.toml
+++ b/crates/wasi-nn/Cargo.toml
@@ -6,7 +6,7 @@ description = "Wasmtime implementation of the wasi-nn API"
documentation = "https://docs.rs/wasmtime-wasi-nn"
license = "Apache-2.0 WITH ... | 1 | 1 | 1 |
5ce6e009fc865ea57859011695306106a1ca467e | Nick Fitzgerald | 2021-01-08T16:55:27 | Add Cargo.toml metadata to `peepmatic-test-operator` crate | diff --git a/cranelift/peepmatic/crates/test-operator/Cargo.toml b/cranelift/peepmatic/crates/test-operator/Cargo.toml
index 66a5469b3..295610c1b 100644
--- a/cranelift/peepmatic/crates/test-operator/Cargo.toml
+++ b/cranelift/peepmatic/crates/test-operator/Cargo.toml
@@ -1,5 +1,7 @@
[package]
name = "peepmatic-test-... | 1 | 2 | 0 |
2adb0e8964901b0d967a8aa81188acf54bf6afa0 | Andrew Brown | 2021-01-09T00:54:54 | security: upgrade smallvec to 1.6.1
Fixes advisory https://rustsec.org/advisories/RUSTSEC-2021-0003. | diff --git a/Cargo.lock b/Cargo.lock
index 4a5000807..ed60ae353 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1966,9 +1966,9 @@ checksum = "7fdf1b9db47230893d76faad238fd6097fd6d6a9245cd7a4d90dbd639536bbd2"
[[package]]
name = "smallvec"
-version = "1.5.1"
+version = "1.6.1"
source = "registry+https://github.com/rust... | 8 | 9 | 9 |
b25a3c387ef4371bd77a9a84ab6118948bb59575 | Andrew Brown | 2021-01-09T00:49:28 | fix: `dst` should be `Writable`, not `ValueRegs` | diff --git a/cranelift/codegen/src/isa/x64/lower.rs b/cranelift/codegen/src/isa/x64/lower.rs
index 39d6f9fb5..0b9784d59 100644
--- a/cranelift/codegen/src/isa/x64/lower.rs
+++ b/cranelift/codegen/src/isa/x64/lower.rs
@@ -4107,7 +4107,7 @@ fn lower_insn_to_regs<C: LowerCtx<I = Inst>>(
// unused load.
... | 1 | 1 | 1 |
09a5b91b9dd42a96deb16448cc61b31cd2c288a6 | Andrew Brown | 2021-01-05T00:09:28 | x64: make several structures debuggable | diff --git a/cranelift/codegen/src/isa/x64/inst/args.rs b/cranelift/codegen/src/isa/x64/inst/args.rs
index 680d0921f..898134644 100644
--- a/cranelift/codegen/src/isa/x64/inst/args.rs
+++ b/cranelift/codegen/src/isa/x64/inst/args.rs
@@ -145,7 +145,7 @@ impl PrettyPrint for Amode {
/// A Memory Address. These denote a ... | 1 | 2 | 2 |
3ee898cb2c1d29ed412ed01ee3f9ecc435f996da | Chris Fallin | 2021-01-08T05:59:42 | x64: support PC-rel symbol references using the GOT when in PIC mode. | diff --git a/cranelift/codegen/src/isa/x64/inst/emit.rs b/cranelift/codegen/src/isa/x64/inst/emit.rs
index b655178bd..e4b63bcec 100644
--- a/cranelift/codegen/src/isa/x64/inst/emit.rs
+++ b/cranelift/codegen/src/isa/x64/inst/emit.rs
@@ -2690,16 +2690,41 @@ pub(crate) fn emit(
}
Inst::LoadExtName { d... | 3 | 82 | 12 |
4a6e92f52ff1a863a2d6196aa64e3bb507a37513 | Pat Hickey | 2021-01-08T00:47:26 | upgrade to cap-std 0.9 | diff --git a/Cargo.lock b/Cargo.lock
index 4626a222c..d700ae688 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -201,35 +201,19 @@ checksum = "08c48aae112d48ed9f069b33538ea9e3e90aa263cfa3d1c24309612b1f7472de"
[[package]]
name = "cap-fs-ext"
-version = "0.8.0"
-source = "registry+https://github.com/rust-lang/crates.io-i... | 4 | 82 | 70 |
539058b329011f87c4b33e73b5a99386630d4104 | Pat Hickey | 2021-01-07T22:47:26 | fix windows | diff --git a/crates/wasi-common/src/sys/windows/poll.rs b/crates/wasi-common/src/sys/windows/poll.rs
index 8946ba434..d7d2f3527 100644
--- a/crates/wasi-common/src/sys/windows/poll.rs
+++ b/crates/wasi-common/src/sys/windows/poll.rs
@@ -9,7 +9,7 @@ use crate::sys::stdio::{Stderr, Stdin, Stdout};
use crate::sys::AsFile... | 1 | 7 | 3 |
82128cbc5bba0c152ef66ec7fead62d1bb162c78 | Pat Hickey | 2021-01-07T22:56:22 | trap proc_exit and unsupported funcs | diff --git a/crates/wasi-c2/src/error.rs b/crates/wasi-c2/src/error.rs
index c68c52066..edd35b00c 100644
--- a/crates/wasi-c2/src/error.rs
+++ b/crates/wasi-c2/src/error.rs
@@ -34,6 +34,10 @@ pub enum Error {
#[error("Unexpected IoError: {0}")]
UnexpectedIo(#[source] std::io::Error),
+ /// An unsupported... | 2 | 62 | 49 |
c2a715ca54cc5371e04aa468f0468bbb480b142d | Pat Hickey | 2021-01-07T22:43:56 | wiggle traps | diff --git a/crates/wasi-c2/src/snapshots/preview_1.rs b/crates/wasi-c2/src/snapshots/preview_1.rs
index 48e7876f0..b724e325a 100644
--- a/crates/wasi-c2/src/snapshots/preview_1.rs
+++ b/crates/wasi-c2/src/snapshots/preview_1.rs
@@ -30,7 +30,7 @@ impl types::GuestErrorConversion for WasiCtx {
}
impl types::UserErro... | 2 | 2 | 21 |
b149a03d5d3c5b8ee00300455ac4c0e7e7a839f1 | Pat Hickey | 2021-01-07T22:05:49 | wasi-common: instead of panicking, use an Error::Unsupported that Traps | diff --git a/crates/wasi-common/src/error.rs b/crates/wasi-common/src/error.rs
index 282a46734..2b0fb5b7a 100644
--- a/crates/wasi-common/src/error.rs
+++ b/crates/wasi-common/src/error.rs
@@ -17,6 +17,10 @@ pub enum Error {
#[error("GetRandom: {0}")]
GetRandom(#[from] getrandom::Error),
+ /// Some corne... | 5 | 59 | 49 |
ec1bfeefb3de9b106e4433baf33096f355ed52e3 | Pat Hickey | 2021-01-06T21:49:44 | fix tests | diff --git a/crates/wiggle/tests/errors.rs b/crates/wiggle/tests/errors.rs
index a550da35b..425296246 100644
--- a/crates/wiggle/tests/errors.rs
+++ b/crates/wiggle/tests/errors.rs
@@ -34,7 +34,7 @@ mod convert_just_errno {
/// When the `errors` mapping in witx is non-empty, we need to impl the
/// types::Use... | 1 | 13 | 6 |
cd3adb1abddb576878c790056cb4f3b7955dd722 | Pat Hickey | 2021-01-06T21:25:37 | Trap::I32Exit is a better name | diff --git a/Cargo.lock b/Cargo.lock
index dc2ec4c24..742a77fcc 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2908,7 +2908,7 @@ dependencies = [
[[package]]
name = "witx"
-version = "0.8.7"
+version = "0.8.8"
dependencies = [
"anyhow",
"diff",
diff --git a/crates/wasi-common/src/snapshots/wasi_snapshot_preview1... | 4 | 12 | 5 |
2483ad4c1ce7b2ede08b881d16d6852171c0f9bc | Pat Hickey | 2021-01-06T19:47:56 | wasi-nn: UserErrorConversion error is now a wiggle::Trap | diff --git a/crates/wasi-nn/src/witx.rs b/crates/wasi-nn/src/witx.rs
index 6f7394e0b..b686fcd09 100644
--- a/crates/wasi-nn/src/witx.rs
+++ b/crates/wasi-nn/src/witx.rs
@@ -22,7 +22,7 @@ impl types::GuestErrorConversion for WasiNnCtx {
}
impl<'a> types::UserErrorConversion for WasiNnCtx {
- fn errno_from_wasi_nn... | 1 | 1 | 1 |
4a574c14ebbc11364f736859ea6d0b747d352425 | Pat Hickey | 2021-01-06T02:21:01 | wasi-common: port to use wiggle::Trap | diff --git a/crates/wasi-common/src/snapshots/wasi_snapshot_preview1.rs b/crates/wasi-common/src/snapshots/wasi_snapshot_preview1.rs
index 3e0bd6d4f..3d905159c 100644
--- a/crates/wasi-common/src/snapshots/wasi_snapshot_preview1.rs
+++ b/crates/wasi-common/src/snapshots/wasi_snapshot_preview1.rs
@@ -714,10 +714,13 @@ i... | 5 | 12 | 37 |
f8f9b14c6fd0b4cac07b599cc3c8b057f77449ec | Pat Hickey | 2021-01-06T02:19:31 | wiggle: introduce wiggle::Trap, which can be either a String or I32
also, make noreturn functions always return a Trap
wasmtime-wiggle can trivially turn a wiggle::Trap into a wasmtime::Trap.
lucet will have to do the same. | diff --git a/crates/wiggle/generate/src/funcs.rs b/crates/wiggle/generate/src/funcs.rs
index e6551b17d..5cdf59eda 100644
--- a/crates/wiggle/generate/src/funcs.rs
+++ b/crates/wiggle/generate/src/funcs.rs
@@ -36,12 +36,6 @@ pub fn define_func(
witx::CoreParamSignifies::Value(atom) => names.atom_type(atom),... | 5 | 70 | 46 |
c0c4834c643ea8e90e5ad5e539db7b5ec60e9690 | Léo Gaspard | 2021-01-06T22:48:18 | wasi-nn: rebuild if the witx files change | diff --git a/Cargo.lock b/Cargo.lock
index dc2ec4c24..3df60a018 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2727,6 +2727,7 @@ dependencies = [
"log",
"openvino",
"thiserror",
+ "walkdir",
"wasmtime",
"wasmtime-runtime",
"wasmtime-wasi",
diff --git a/crates/wasi-nn/Cargo.toml b/crates/wasi-nn/Cargo.toml
ind... | 3 | 9 | 0 |
d4aaae3e863f4558ee965371dc87d9ce8a1190ff | Pat Hickey | 2021-01-06T18:59:29 | wasi-nn: remove missing_memory from wasmtime_integration | diff --git a/crates/wasi-nn/src/lib.rs b/crates/wasi-nn/src/lib.rs
index e604ec768..2e2c08b03 100644
--- a/crates/wasi-nn/src/lib.rs
+++ b/crates/wasi-nn/src/lib.rs
@@ -21,6 +21,4 @@ wasmtime_wiggle::wasmtime_integration!({
function_override: {}
}
},
- // Error to return when caller module i... | 1 | 0 | 2 |
bf2371c8afd99c0f6ae50694f4fb3029c0a654d9 | Pat Hickey | 2021-01-06T01:29:34 | wasi: get rid of missing_memory config | diff --git a/crates/wasi/src/lib.rs b/crates/wasi/src/lib.rs
index 166a0e1ef..ba4f7b6c2 100644
--- a/crates/wasi/src/lib.rs
+++ b/crates/wasi/src/lib.rs
@@ -33,8 +33,6 @@ resolution.",
}
},
},
- // Error to return when caller module is missing memory export:
- missing_memory: { wasi_commo... | 2 | 0 | 4 |
46b1864c9e12b83c00843db30858c5389d41f67a | Pat Hickey | 2021-01-06T01:28:03 | wiggle-wasmtime: get rid of "missing_memory" error code, we can Trap now
the missing memory behavior was always a silly thing, that we generate a
function for wasmtime which is Result<_, Trap> we can just Err(Trap)
when the memory export is missing. | diff --git a/crates/wiggle/wasmtime/macro/src/config.rs b/crates/wiggle/wasmtime/macro/src/config.rs
index 8f2d9bbc0..6359ed0ec 100644
--- a/crates/wiggle/wasmtime/macro/src/config.rs
+++ b/crates/wiggle/wasmtime/macro/src/config.rs
@@ -1,5 +1,5 @@
use {
- proc_macro2::{Span, TokenStream},
+ proc_macro2::Span,
... | 2 | 8 | 55 |
fb37751a92b2fce25f09a660851f6ee4e2bcbc39 | Pat Hickey | 2021-01-06T01:27:06 | fix warning | diff --git a/crates/wasi-c2/src/stdio.rs b/crates/wasi-c2/src/stdio.rs
index e2ad89be8..a498c6320 100644
--- a/crates/wasi-c2/src/stdio.rs
+++ b/crates/wasi-c2/src/stdio.rs
@@ -1,4 +1,4 @@
-use crate::file::{FdFlags, FileType, Filestat, OFlags, WasiFile};
+use crate::file::{FdFlags, FileType, Filestat, WasiFile};
use ... | 1 | 1 | 1 |
31c5328971c1c9b1d2612560d4f5c48b84b7a222 | Pat Hickey | 2021-01-05T22:36:32 | incorporate dan's suggestions on readdir | diff --git a/crates/wasi-c2/src/dir.rs b/crates/wasi-c2/src/dir.rs
index 81c6ea3af..04a8423d3 100644
--- a/crates/wasi-c2/src/dir.rs
+++ b/crates/wasi-c2/src/dir.rs
@@ -286,39 +286,35 @@ impl WasiDir for cap_std::fs::Dir {
use cap_fs_ext::MetadataExt;
// cap_std's read_dir does not include . and ..,... | 1 | 19 | 23 |
ce13cd9e7712daff3927f0321d39f3f65ecfd064 | Pat Hickey | 2021-01-05T22:24:02 | dir: add set times | diff --git a/crates/wasi-c2/Cargo.toml b/crates/wasi-c2/Cargo.toml
index e808da345..15b110118 100644
--- a/crates/wasi-c2/Cargo.toml
+++ b/crates/wasi-c2/Cargo.toml
@@ -29,7 +29,7 @@ cap-std = "0.8"
cap-fs-ext = "0.8"
cap-time-ext = "0.8"
cap-rand = "0.8"
-fs-set-times = "0.2.1"
+fs-set-times = "0.2.2"
cfg-if = "1"... | 3 | 63 | 25 |
8ace7f00d941c4b4792e1486f4ce4acadb79d55e | Pat Hickey | 2021-01-05T21:52:14 | delete file::get/set_oflags | diff --git a/crates/wasi-c2/src/file.rs b/crates/wasi-c2/src/file.rs
index 847c6f87c..ab0d04c09 100644
--- a/crates/wasi-c2/src/file.rs
+++ b/crates/wasi-c2/src/file.rs
@@ -9,8 +9,6 @@ pub trait WasiFile: FileIoExt + SetTimes {
fn get_filetype(&self) -> Result<FileType, Error>;
fn get_fdflags(&self) -> Result... | 3 | 1 | 39 |
fb32f651186b1baeb301c9b2cdb4f3ce0468fb66 | Pat Hickey | 2021-01-05T21:51:55 | get path filestat on a dir | diff --git a/crates/wasi-c2/src/dir.rs b/crates/wasi-c2/src/dir.rs
index 0e851cd29..1d4886d36 100644
--- a/crates/wasi-c2/src/dir.rs
+++ b/crates/wasi-c2/src/dir.rs
@@ -26,6 +26,7 @@ pub trait WasiDir {
fn unlink_file(&self, path: &str) -> Result<(), Error>;
fn read_link(&self, path: &str) -> Result<PathBuf, ... | 2 | 18 | 2 |
94d228018746e1f29906dd9799c196d38156229a | Pat Hickey | 2021-01-05T19:01:52 | better docs | diff --git a/crates/wasi-c2/src/dir.rs b/crates/wasi-c2/src/dir.rs
index e85bd85e2..718f499db 100644
--- a/crates/wasi-c2/src/dir.rs
+++ b/crates/wasi-c2/src/dir.rs
@@ -267,7 +267,8 @@ impl WasiDir for cap_std::fs::Dir {
// cap_std's read_dir does not include . and .., we should prepend these.
// Why ... | 1 | 2 | 1 |
41c06db2b4926f58e648778c509e82e5eeda4f20 | Pat Hickey | 2021-01-05T00:28:40 | finish implementing clocks correctly | diff --git a/crates/wasi-c2/src/ctx.rs b/crates/wasi-c2/src/ctx.rs
index 25792c4d5..716002ce5 100644
--- a/crates/wasi-c2/src/ctx.rs
+++ b/crates/wasi-c2/src/ctx.rs
@@ -126,12 +126,19 @@ impl WasiCtxBuilder {
pub struct WasiCtxClocks {
pub(crate) system: Box<dyn WasiSystemClock>,
pub(crate) monotonic: Box<dy... | 2 | 11 | 3 |
add601fd6c639e395621c99c50888e311fdc63c9 | Pat Hickey | 2021-01-05T00:21:23 | use cap_rand instead of getrandom | diff --git a/Cargo.lock b/Cargo.lock
index 81952eea6..55d3ba766 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -241,6 +241,15 @@ dependencies = [
"winx 0.21.0 (registry+https://github.com/rust-lang/crates.io-index)",
]
+[[package]]
+name = "cap-rand"
+version = "0.8.0"
+source = "registry+https://github.com/rust-lang... | 6 | 37 | 36 |
10a84727faed511ddaceea4ec8db9d72f65f8ec2 | Pat Hickey | 2021-01-05T00:04:00 | Ilseq is the correct error when osstring cant be turned into string | diff --git a/crates/wasi-c2/src/dir.rs b/crates/wasi-c2/src/dir.rs
index ebae4d657..671b07281 100644
--- a/crates/wasi-c2/src/dir.rs
+++ b/crates/wasi-c2/src/dir.rs
@@ -273,10 +273,7 @@ impl WasiDir for cap_std::fs::Dir {
let meta = entry.metadata()?;
let inode = meta.ino();
let f... | 2 | 2 | 5 |
c7fcc344871e3abd1d39ba92c25f5ca7402c6ecd | Pat Hickey | 2021-01-05T00:03:43 | add clocks! | diff --git a/Cargo.lock b/Cargo.lock
index dda83d6e0..81952eea6 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -259,6 +259,18 @@ dependencies = [
"cap-primitives 0.8.0",
]
+[[package]]
+name = "cap-time-ext"
+version = "0.8.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e022f6b679d9... | 6 | 86 | 3 |
50554d376b3632e0e98e91e59b33ab1cc0f467e4 | Pat Hickey | 2021-01-04T20:33:13 | add, fix tests | diff --git a/crates/wasi-c2/src/random.rs b/crates/wasi-c2/src/random.rs
index 2397469e1..6412c3e0c 100644
--- a/crates/wasi-c2/src/random.rs
+++ b/crates/wasi-c2/src/random.rs
@@ -5,6 +5,8 @@ pub trait WasiRandom {
fn get(&self, buf: &mut [u8]) -> Result<(), Error>;
}
+/// Implement `WasiRandom` using the `get... | 2 | 31 | 2 |
8deb3ed07cfa4ccebaf15c3aa2b6af949c6ed4ae | Pat Hickey | 2020-12-19T00:57:43 | path_open: ENOTDIR when fd is a file | diff --git a/crates/wasi-c2/src/snapshots/preview_1.rs b/crates/wasi-c2/src/snapshots/preview_1.rs
index 9a52f9778..d8d37b4fc 100644
--- a/crates/wasi-c2/src/snapshots/preview_1.rs
+++ b/crates/wasi-c2/src/snapshots/preview_1.rs
@@ -663,7 +663,11 @@ impl<'a> wasi_snapshot_preview1::WasiSnapshotPreview1 for WasiCtx {
... | 1 | 5 | 1 |
f66304556340e3eec8aacc478dccc35cf21be2ad | Pat Hickey | 2020-12-19T00:57:15 | better arg names | diff --git a/crates/wasi-c2/src/snapshots/preview_1.rs b/crates/wasi-c2/src/snapshots/preview_1.rs
index 78d5add51..9a52f9778 100644
--- a/crates/wasi-c2/src/snapshots/preview_1.rs
+++ b/crates/wasi-c2/src/snapshots/preview_1.rs
@@ -643,11 +643,11 @@ impl<'a> wasi_snapshot_preview1::WasiSnapshotPreview1 for WasiCtx {
... | 1 | 5 | 5 |
8672dce5411534a1ecf1aadd1dc3b84d5dd44a49 | Pat Hickey | 2020-12-19T00:56:58 | open_file requires the FdFlags | diff --git a/crates/wasi-c2/src/dir.rs b/crates/wasi-c2/src/dir.rs
index 30902ae61..ebae4d657 100644
--- a/crates/wasi-c2/src/dir.rs
+++ b/crates/wasi-c2/src/dir.rs
@@ -1,5 +1,5 @@
use crate::error::Error;
-use crate::file::{FileCaps, FileType, Filestat, OFlags, WasiFile};
+use crate::file::{FdFlags, FileCaps, FileTyp... | 2 | 13 | 4 |
a33418c34abd26f8761d6e03c7598d68ef0ce7a1 | Pat Hickey | 2020-12-19T00:34:25 | path_filestat: remove expectation that rights_inheriting describes subdirs
if inheriting rights are for files (not subdirs) then this is incorrect.
if inheriting rights are for subdirs too, then we need to change the
implementation. | 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 bef9ff029..691fc7b97 100644
--- a/crates/test-programs/wasi-tests/src/bin/path_filestat.rs
+++ b/crates/test-programs/wasi-tests/src/bin/path_filestat.rs
@@ -9,11 +9,6 @@ unsafe fn test... | 1 | 0 | 5 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.