wasmtime-internal-cache 42.0.2

INTERNAL: Support for automatic module caching with Wasmtime
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use wasmtime_internal_cache::create_new_config;

#[test]
fn test_cache_write_default_config() {
    let dir = tempfile::tempdir().expect("Can't create temporary directory");
    let config_path = dir.path().join("cache-config.toml");

    let result = create_new_config(Some(&config_path));
    assert!(result.is_ok());
    assert!(config_path.exists());
    assert_eq!(config_path, result.unwrap());
}