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.ymlindex 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-featuresdiff --git a/crates/wasmtime/src/config.rs b/crates/wasmtime/src/config.rsindex 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};