Code review feedback.
* Move `Module::compile` to `Engine::precompile_module`. * Remove `Module::deserialize` method. * Make `Module::serialize` the same format as `Engine::precompile_module`. * Make `Engine::precompile_module` return a `Vec<u8>`. * Move the remaining serialization-related code to `serialization.rs`.
This commit is contained in:
15
RELEASES.md
15
RELEASES.md
@@ -6,14 +6,13 @@
|
||||
|
||||
### Added
|
||||
|
||||
* The `wasmtime compile` command was added to support AOT compilation of Wasm
|
||||
modules.
|
||||
* Added the `wasmtime compile` command to support AOT compilation of Wasm modules.
|
||||
|
||||
* The `Module::compile` method was added to support AOT compilation of a module.
|
||||
* Added the `Engine::precompile_module` method to support AOT module compilation.
|
||||
|
||||
* Added the `Config::target` method to change the compilation target of the
|
||||
configuration. This can be used in conjunction with `Module::compile` to target
|
||||
a different host triple than the current one.
|
||||
configuration. This can be used in conjunction with `Engine::precompile_module`
|
||||
to target a different host triple than the current one.
|
||||
|
||||
* Added the `Config::cranelift_flag_enable` method to enable setting Cranelift
|
||||
boolean flags or presets in a config.
|
||||
@@ -26,6 +25,8 @@
|
||||
singular `--wasm-features` option. The previous options are still supported, but
|
||||
are not displayed in help text.
|
||||
|
||||
* Breaking: `Module::deserialize` has been removed in favor of `Module::new`.
|
||||
|
||||
* Breaking: `Config::cranelift_clear_cpu_flags` was removed. Use `Config::target`
|
||||
to clear the CPU flags for the host's target.
|
||||
|
||||
@@ -42,10 +43,6 @@
|
||||
* Breaking: the CLI option `--enable-bulk-memory=false` has been changed to
|
||||
`--wasm-features=-bulk-memory`.
|
||||
|
||||
* Modules serialized with `Module::serialize` can now be deserialized with
|
||||
`Module::deserialize` on a compatible host that does not have to match the
|
||||
original environment exactly.
|
||||
|
||||
## 0.25.0
|
||||
|
||||
Released 2021-03-16.
|
||||
|
||||
Reference in New Issue
Block a user