Allow creation of a CacheConfig without loading from a file (#10665)* cache: Add builder pattern for CacheConfig* wasmtime: Add cache_config method to wasmtime::Config* Refactor test_builder_de
Allow creation of a CacheConfig without loading from a file (#10665)* cache: Add builder pattern for CacheConfig* wasmtime: Add cache_config method to wasmtime::Config* Refactor test_builder_default to use test_prolog helper* Remove enabled option from CacheConfigBuilder and always set to true* Change builder methods to take &mut self and return &mut Self* Simplify cache configuration APIA new `cache_config(Option<CacheConfig>)` method replaces multiple methodsfor controlling module caching. Now `None` disables caching, and users candirectly provide a cache config or load one from a file.* Make cache configuration optional* Add Cache struct to separate configuration from runtime (wip)* Ensure default values earlier* Consolidate CacheConfig and CacheConfigBuilder* Set Cache directly on wastime::Config and make it easier to create onefrom a file* Validate after loading file again* Move cache to top-level module* Fix tests
show more ...
Leverage Rust 1.79, 1.80 (#9498)This commit is a follow-up to #9496 to leverage various APIs that theworkspace now has access to. For example most dependencies on the`once_cell` crate are now rem
Leverage Rust 1.79, 1.80 (#9498)This commit is a follow-up to #9496 to leverage various APIs that theworkspace now has access to. For example most dependencies on the`once_cell` crate are now removed in favor of the types stabilized inthe standard library: `LazyLock` and `LazyCell`. One dependency remainsin the `wasmtime` crate due to the `get_or_try_init` not being stableyet.Some additional helper methods on raw pointer slices are also availablefor removing a few minor `unsafe` blocks.
Enforce `uninlined_format_args` for the workspace (#9065)* Enforce `uninlined_format_args` for the workspace* fix: failing `Monolith Checks` job* fix: formatting
Fix some typos (#8641)* occurred* winch typos* tests typos* cli typos* fuzz typos* examples typos* docs typos* crates/wasmtime typos* crates/environ typos* crates/cranelift typos
Fix some typos (#8641)* occurred* winch typos* tests typos* cli typos* fuzz typos* examples typos* docs typos* crates/wasmtime typos* crates/environ typos* crates/cranelift typos* crates/test-programs typos* crates/c-api typos* crates/cache typos* crates other typos* cranelift/codegen/src/isa typos* cranelift/codegen/src other typos* cranelift/codegen other typos* cranelift other typos* ci js typo* .github workflows typo* RELEASES typo* Fix clang-format documentation line---------Co-authored-by: Andrew Brown <[email protected]>
Update a few crates on their major version tracks (#7908)Found via `cargo outdated` and the vets here were easy enough.
Remove the unused `file-per-thread-logger` dependencies from `wasmtime-cache` (#6910)
Remove dependency on `more-asserts` (#4408)* Remove dependency on `more-asserts` In my recent adventures to do a bit of gardening on our dependencies I noticed that there's a new major version
Remove dependency on `more-asserts` (#4408)* Remove dependency on `more-asserts` In my recent adventures to do a bit of gardening on our dependencies I noticed that there's a new major version for the `more-asserts` crate. Instead of updating to this though I've opted to instead remove the dependency since I don't think we heavily lean on this crate and otherwise one-off prints are probably sufficient to avoid the need for pulling in a whole crate for this. * Remove exemption for `more-asserts`
Migrate most of wasmtime from lazy_static to once_cell (#4368)* Update tracing-core to a version which doesn't depend on lazy-static. * Update crossbeam-utils to a version that doesn't depend on
Migrate most of wasmtime from lazy_static to once_cell (#4368)* Update tracing-core to a version which doesn't depend on lazy-static. * Update crossbeam-utils to a version that doesn't depend on lazy-static. * Update crossbeam-epoch to a version that doesn't depend on lazy-static. * Update clap to a version that doesn't depend on lazy-static. * Convert Wasmtime's own use of lazy_static to once_cell. * Make `GDB_REGISTRATION`'s comment a doc comment. * Fix compilation on Windows.
Making caching support optional in Wasmtime (#2119)This commit moves all of the caching support that currently lives in `wasmtime-environ` into a `wasmtime-cache` crate and makes it optional. The
Making caching support optional in Wasmtime (#2119)This commit moves all of the caching support that currently lives in `wasmtime-environ` into a `wasmtime-cache` crate and makes it optional. The goal here is to slim down the `wasmtime-environ` crate and clearly separate boundaries where caching is a standalone and optional feature, not intertwined with other crates.