Skip to content

A lightweight WebAssembly runtime that is fast, secure, and standards-compliant

fix: skip importing `std::path::Path` regardless of `cache` feature (#12479)

Ho Kim47e1cd59dc25
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index f0bf47a0ad..fce65d5608 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -364,6 +364,7 @@ jobs:
-p wasmtime --no-default-features --features runtime,stack-switching
-p wasmtime --no-default-features --features debug
-p wasmtime --no-default-features --features debug,gc
+ -p wasmtime --no-default-features --features runtime,cache
-p wasmtime --features incremental-cache
-p wasmtime --features profile-pulley
-p wasmtime --all-features
diff --git a/crates/wasmtime/src/config.rs b/crates/wasmtime/src/config.rs
index 45d01e007e..1dbb3235bf 100644
--- a/crates/wasmtime/src/config.rs
+++ b/crates/wasmtime/src/config.rs
@@ -3,7 +3,7 @@ use alloc::sync::Arc;
use bitflags::Flags;
use core::fmt;
use core::str::FromStr;
-#[cfg(any(feature = "cache", feature = "cranelift", feature = "winch"))]
+#[cfg(any(feature = "cranelift", feature = "winch"))]
use std::path::Path;
pub use wasmparser::WasmFeatures;
use wasmtime_environ::{ConfigTunables, TripleExt, Tunables};