Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
149 changes: 80 additions & 69 deletions Cargo.lock

Large diffs are not rendered by default.

92 changes: 46 additions & 46 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -117,64 +117,64 @@ exclude = [
]

[workspace.package]
version = "12.0.0"
version = "12.0.1"
authors = ["The Wasmtime Project Developers"]
edition = "2021"
rust-version = "1.66.0"

[workspace.dependencies]
wasmtime = { path = "crates/wasmtime", version = "12.0.0", default-features = false }
wasmtime-cache = { path = "crates/cache", version = "=12.0.0" }
wasmtime-cli-flags = { path = "crates/cli-flags", version = "=12.0.0" }
wasmtime-cranelift = { path = "crates/cranelift", version = "=12.0.0" }
wasmtime-cranelift-shared = { path = "crates/cranelift-shared", version = "=12.0.0" }
wasmtime-winch = { path = "crates/winch", version = "=12.0.0" }
wasmtime-environ = { path = "crates/environ", version = "=12.0.0" }
wasmtime-explorer = { path = "crates/explorer", version = "=12.0.0" }
wasmtime-fiber = { path = "crates/fiber", version = "=12.0.0" }
wasmtime-types = { path = "crates/types", version = "12.0.0" }
wasmtime-jit = { path = "crates/jit", version = "=12.0.0" }
wasmtime-jit-debug = { path = "crates/jit-debug", version = "=12.0.0" }
wasmtime-runtime = { path = "crates/runtime", version = "=12.0.0" }
wasmtime-wast = { path = "crates/wast", version = "=12.0.0" }
wasmtime-wasi = { path = "crates/wasi", version = "12.0.0" }
wasmtime-wasi-crypto = { path = "crates/wasi-crypto", version = "12.0.0" }
wasmtime-wasi-http = { path = "crates/wasi-http", version = "=12.0.0" }
wasmtime-wasi-nn = { path = "crates/wasi-nn", version = "12.0.0" }
wasmtime-wasi-threads = { path = "crates/wasi-threads", version = "12.0.0" }
wasmtime-component-util = { path = "crates/component-util", version = "=12.0.0" }
wasmtime-component-macro = { path = "crates/component-macro", version = "=12.0.0" }
wasmtime-asm-macros = { path = "crates/asm-macros", version = "=12.0.0" }
wasmtime-versioned-export-macros = { path = "crates/versioned-export-macros", version = "=12.0.0" }
wasmtime = { path = "crates/wasmtime", version = "12.0.1", default-features = false }
wasmtime-cache = { path = "crates/cache", version = "=12.0.1" }
wasmtime-cli-flags = { path = "crates/cli-flags", version = "=12.0.1" }
wasmtime-cranelift = { path = "crates/cranelift", version = "=12.0.1" }
wasmtime-cranelift-shared = { path = "crates/cranelift-shared", version = "=12.0.1" }
wasmtime-winch = { path = "crates/winch", version = "=12.0.1" }
wasmtime-environ = { path = "crates/environ", version = "=12.0.1" }
wasmtime-explorer = { path = "crates/explorer", version = "=12.0.1" }
wasmtime-fiber = { path = "crates/fiber", version = "=12.0.1" }
wasmtime-types = { path = "crates/types", version = "12.0.1" }
wasmtime-jit = { path = "crates/jit", version = "=12.0.1" }
wasmtime-jit-debug = { path = "crates/jit-debug", version = "=12.0.1" }
wasmtime-runtime = { path = "crates/runtime", version = "=12.0.1" }
wasmtime-wast = { path = "crates/wast", version = "=12.0.1" }
wasmtime-wasi = { path = "crates/wasi", version = "12.0.1" }
wasmtime-wasi-crypto = { path = "crates/wasi-crypto", version = "12.0.1" }
wasmtime-wasi-http = { path = "crates/wasi-http", version = "=12.0.1" }
wasmtime-wasi-nn = { path = "crates/wasi-nn", version = "12.0.1" }
wasmtime-wasi-threads = { path = "crates/wasi-threads", version = "12.0.1" }
wasmtime-component-util = { path = "crates/component-util", version = "=12.0.1" }
wasmtime-component-macro = { path = "crates/component-macro", version = "=12.0.1" }
wasmtime-asm-macros = { path = "crates/asm-macros", version = "=12.0.1" }
wasmtime-versioned-export-macros = { path = "crates/versioned-export-macros", version = "=12.0.1" }
component-test-util = { path = "crates/misc/component-test-util" }
component-fuzz-util = { path = "crates/misc/component-fuzz-util" }
wiggle = { path = "crates/wiggle", version = "=12.0.0", default-features = false }
wiggle-macro = { path = "crates/wiggle/macro", version = "=12.0.0" }
wiggle-generate = { path = "crates/wiggle/generate", version = "=12.0.0" }
wasi-common = { path = "crates/wasi-common", version = "=12.0.0" }
wasi-tokio = { path = "crates/wasi-common/tokio", version = "=12.0.0" }
wasi-cap-std-sync = { path = "crates/wasi-common/cap-std-sync", version = "=12.0.0" }
wiggle = { path = "crates/wiggle", version = "=12.0.1", default-features = false }
wiggle-macro = { path = "crates/wiggle/macro", version = "=12.0.1" }
wiggle-generate = { path = "crates/wiggle/generate", version = "=12.0.1" }
wasi-common = { path = "crates/wasi-common", version = "=12.0.1" }
wasi-tokio = { path = "crates/wasi-common/tokio", version = "=12.0.1" }
wasi-cap-std-sync = { path = "crates/wasi-common/cap-std-sync", version = "=12.0.1" }
wasmtime-fuzzing = { path = "crates/fuzzing" }
wasmtime-jit-icache-coherence = { path = "crates/jit-icache-coherence", version = "=12.0.0" }
wasmtime-wit-bindgen = { path = "crates/wit-bindgen", version = "=12.0.0" }
wasmtime-jit-icache-coherence = { path = "crates/jit-icache-coherence", version = "=12.0.1" }
wasmtime-wit-bindgen = { path = "crates/wit-bindgen", version = "=12.0.1" }

cranelift-wasm = { path = "cranelift/wasm", version = "0.99.0" }
cranelift-codegen = { path = "cranelift/codegen", version = "0.99.0" }
cranelift-frontend = { path = "cranelift/frontend", version = "0.99.0" }
cranelift-entity = { path = "cranelift/entity", version = "0.99.0" }
cranelift-native = { path = "cranelift/native", version = "0.99.0" }
cranelift-module = { path = "cranelift/module", version = "0.99.0" }
cranelift-interpreter = { path = "cranelift/interpreter", version = "0.99.0" }
cranelift-reader = { path = "cranelift/reader", version = "0.99.0" }
cranelift-wasm = { path = "cranelift/wasm", version = "0.99.1" }
cranelift-codegen = { path = "cranelift/codegen", version = "0.99.1" }
cranelift-frontend = { path = "cranelift/frontend", version = "0.99.1" }
cranelift-entity = { path = "cranelift/entity", version = "0.99.1" }
cranelift-native = { path = "cranelift/native", version = "0.99.1" }
cranelift-module = { path = "cranelift/module", version = "0.99.1" }
cranelift-interpreter = { path = "cranelift/interpreter", version = "0.99.1" }
cranelift-reader = { path = "cranelift/reader", version = "0.99.1" }
cranelift-filetests = { path = "cranelift/filetests" }
cranelift-object = { path = "cranelift/object", version = "0.99.0" }
cranelift-jit = { path = "cranelift/jit", version = "0.99.0" }
cranelift-object = { path = "cranelift/object", version = "0.99.1" }
cranelift-jit = { path = "cranelift/jit", version = "0.99.1" }
cranelift-fuzzgen = { path = "cranelift/fuzzgen" }
cranelift-bforest = { path = "cranelift/bforest", version = "0.99.0" }
cranelift-control = { path = "cranelift/control", version = "0.99.0" }
cranelift = { path = "cranelift/umbrella", version = "0.99.0" }
cranelift-bforest = { path = "cranelift/bforest", version = "0.99.1" }
cranelift-control = { path = "cranelift/control", version = "0.99.1" }
cranelift = { path = "cranelift/umbrella", version = "0.99.1" }

winch-codegen = { path = "winch/codegen", version = "=0.10.0" }
winch-codegen = { path = "winch/codegen", version = "=0.10.1" }
winch-filetests = { path = "winch/filetests" }
winch-test-macros = { path = "winch/test-macros" }

Expand Down
64 changes: 63 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,75 @@
--------------------------------------------------------------------------------

## 12.0.1

Released 2023-08-24

### Fixed

* Optimized the cranelift compilation on aarch64 for large wasm modules.
[#6804](https://github.com/bytecodealliance/wasmtime/pull/6804)

## 12.0.0

Unreleased.
Released 2023-08-21.

### Added

* Wasmtime now supports having multiple different versions of itself being
linked into the same final executable by mangling some C symbols used by
Wasmtime.
[#6673](https://github.com/bytecodealliance/wasmtime/pull/6673)

* The `perfmap` profiling option is now supported on any Unix platform instead
of just Linux.
[#6701](https://github.com/bytecodealliance/wasmtime/pull/6701)

* The `wasmtime` CLI now supports `--env FOO` to inherit the value of the
environment variable `FOO` which avoids needing to do `--env FOO=$FOO` for
example.
[#6746](https://github.com/bytecodealliance/wasmtime/pull/6746)

* Wasmtime now supports component model resources, although support has not yet
been added to `bindgen!`.
[#6691](https://github.com/bytecodealliance/wasmtime/pull/6691)

* Wasmtime now supports configuration to enable the tail calls proposal.
Platform support now also includes AArch64 and RISC-V in addition to the
previous x86\_64 support.
[#6723](https://github.com/bytecodealliance/wasmtime/pull/6723)
[#6749](https://github.com/bytecodealliance/wasmtime/pull/6749)
[#6774](https://github.com/bytecodealliance/wasmtime/pull/6774)

* Wasmtime's implementation of WASI Preview 2 now supports streams/pollables
with host objects that are all backed by Rust `async`.
[#6556](https://github.com/bytecodealliance/wasmtime/pull/6556)

* Support for core dumps has now been added to the `wasmtime` crate.
[#6513](https://github.com/bytecodealliance/wasmtime/pull/6513)

* New `{Module,Component}::resources_required` APIs allow inspecting what will
be required when instantiating the module or component.
[#6789](https://github.com/bytecodealliance/wasmtime/pull/6789)

### Fixed

* Functions on instances defined through `component::Linker::func_new` are now
defined correctly.
[#6637](https://github.com/bytecodealliance/wasmtime/pull/6637)

* The `async_stack_size` configuration option is no longer inspected when
`async_support` is disabled at runtime.
[#6771](https://github.com/bytecodealliance/wasmtime/pull/6771)

* WASI Preview 1 APIs will now trap on misaligned or out-of-bounds pointers
instead of returning an error.
[#6776](https://github.com/bytecodealliance/wasmtime/pull/6776)

### Changed

* Empty types are no longer allowed in the component model.
[#6777](https://github.com/bytecodealliance/wasmtime/pull/6777)

--------------------------------------------------------------------------------

## 11.0.0
Expand Down
2 changes: 1 addition & 1 deletion ci/run-wasi-crypto-example.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ pushd "$RUST_BINDINGS"
cargo build --release --target=wasm32-wasi
popd

cargo run --features wasi-crypto -- run --wasi-modules=experimental-wasi-crypto "$RUST_BINDINGS/target/wasm32-wasi/release/wasi-crypto-guest.wasm"
cargo run --features wasi-crypto -- run "$RUST_BINDINGS/target/wasm32-wasi/release/wasi-crypto-guest.wasm" --wasi-modules=experimental-wasi-crypto
2 changes: 1 addition & 1 deletion ci/run-wasi-nn-example.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ cp target/wasm32-wasi/release/wasi-nn-example.wasm $TMP_DIR
popd

# Run the example in Wasmtime (note that the example uses `fixture` as the expected location of the model/tensor files).
cargo run -- run --mapdir fixture::$TMP_DIR --wasi-modules=experimental-wasi-nn $TMP_DIR/wasi-nn-example.wasm
cargo run -- run --mapdir fixture::$TMP_DIR $TMP_DIR/wasi-nn-example.wasm --wasi-modules=experimental-wasi-nn

# Clean up the temporary directory only if it was not specified (users may want to keep the directory around).
if [[ $REMOVE_TMP_DIR -eq 1 ]]; then
Expand Down
2 changes: 1 addition & 1 deletion cranelift/bforest/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
authors = ["The Cranelift Project Developers"]
name = "cranelift-bforest"
version = "0.99.0"
version = "0.99.1"
description = "A forest of B+-trees"
license = "Apache-2.0 WITH LLVM-exception"
documentation = "https://docs.rs/cranelift-bforest"
Expand Down
8 changes: 4 additions & 4 deletions cranelift/codegen/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
authors = ["The Cranelift Project Developers"]
name = "cranelift-codegen"
version = "0.99.0"
version = "0.99.1"
description = "Low-level code generator library"
license = "Apache-2.0 WITH LLVM-exception"
documentation = "https://docs.rs/cranelift-codegen"
Expand All @@ -16,7 +16,7 @@ edition.workspace = true
anyhow = { workspace = true, optional = true }
bumpalo = "3"
capstone = { workspace = true, optional = true }
cranelift-codegen-shared = { path = "./shared", version = "0.99.0" }
cranelift-codegen-shared = { path = "./shared", version = "0.99.1" }
cranelift-entity = { workspace = true }
cranelift-bforest = { workspace = true }
cranelift-control = { workspace = true }
Expand All @@ -40,8 +40,8 @@ criterion = { version = "0.5.0", features = ["html_reports"] }
similar = "2.1.0"

[build-dependencies]
cranelift-codegen-meta = { path = "meta", version = "0.99.0" }
cranelift-isle = { path = "../isle/isle", version = "=0.99.0" }
cranelift-codegen-meta = { path = "meta", version = "0.99.1" }
cranelift-isle = { path = "../isle/isle", version = "=0.99.1" }

[features]
default = ["std", "unwind", "host-arch"]
Expand Down
4 changes: 2 additions & 2 deletions cranelift/codegen/meta/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "cranelift-codegen-meta"
authors = ["The Cranelift Project Developers"]
version = "0.99.0"
version = "0.99.1"
description = "Metaprogram for cranelift-codegen code generator library"
license = "Apache-2.0 WITH LLVM-exception"
repository = "https://github.com/bytecodealliance/wasmtime"
Expand All @@ -12,4 +12,4 @@ edition.workspace = true
rustdoc-args = [ "--document-private-items" ]

[dependencies]
cranelift-codegen-shared = { path = "../shared", version = "0.99.0" }
cranelift-codegen-shared = { path = "../shared", version = "0.99.1" }
2 changes: 1 addition & 1 deletion cranelift/codegen/shared/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
authors = ["The Cranelift Project Developers"]
name = "cranelift-codegen-shared"
version = "0.99.0"
version = "0.99.1"
description = "For code shared between cranelift-codegen-meta and cranelift-codegen"
license = "Apache-2.0 WITH LLVM-exception"
repository = "https://github.com/bytecodealliance/wasmtime"
Expand Down
4 changes: 2 additions & 2 deletions cranelift/codegen/src/isa/aarch64/inst/emit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3590,7 +3590,7 @@ impl MachInstEmit for Inst {
dest: BranchTarget::Label(jump_around_label),
};
jmp.emit(&[], sink, emit_info, state);
sink.emit_island(needed_space + 4, &mut state.ctrl_plane);
sink.emit_island(&mut state.ctrl_plane);
sink.bind_label(jump_around_label, &mut state.ctrl_plane);
}
}
Expand Down Expand Up @@ -3789,7 +3789,7 @@ fn emit_return_call_common_sequence(
dest: BranchTarget::Label(jump_around_label),
};
jmp.emit(&[], sink, emit_info, state);
sink.emit_island(space_needed + 4, &mut state.ctrl_plane);
sink.emit_island(&mut state.ctrl_plane);
sink.bind_label(jump_around_label, &mut state.ctrl_plane);
}

Expand Down
4 changes: 2 additions & 2 deletions cranelift/codegen/src/isa/riscv64/inst/emit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1189,7 +1189,7 @@ impl MachInstEmit for Inst {
// we need to emit a jump table here to support that jump.
let distance = (targets.len() * 2 * Inst::INSTRUCTION_SIZE as usize) as u32;
if sink.island_needed(distance) {
sink.emit_island(distance, &mut state.ctrl_plane);
sink.emit_island(&mut state.ctrl_plane);
}

// Emit the jumps back to back
Expand Down Expand Up @@ -3132,7 +3132,7 @@ fn emit_return_call_common_sequence(
dest: BranchTarget::Label(jump_around_label),
}
.emit(&[], sink, emit_info, state);
sink.emit_island(space_needed + 4, &mut state.ctrl_plane);
sink.emit_island(&mut state.ctrl_plane);
sink.bind_label(jump_around_label, &mut state.ctrl_plane);
}

Expand Down
Loading