Skip to content

Commit 63632b8

Browse files
Disable profiling feature in wasmtime to remove ittapi dependency
This fixes Windows linking errors with strnlen_s by removing the ittapi-sys dependency, which is only needed for Intel VTune profiling support. All default features are enabled except 'profiling'.
1 parent a582589 commit 63632b8

File tree

2 files changed

+25
-59
lines changed

2 files changed

+25
-59
lines changed

Cargo.lock

Lines changed: 0 additions & 58 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/wasi-vfs-cli/Cargo.toml

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,30 @@ structopt = "0.3.21"
1212
tokio = { version = "1", features = ["rt"] }
1313
wasm-encoder = "0.243.0"
1414
wasmparser = "0.243.0"
15-
wasmtime = "40.0.0"
15+
# Use all default features except "profiling" which brings in ittapi-sys that causes
16+
# Windows linking errors with strnlen_s (requires Visual Studio 2026+ or specific SDK versions)
17+
wasmtime = { version = "40.0.0", default-features = false, features = [
18+
"async",
19+
"cache",
20+
"gc",
21+
"gc-drc",
22+
"gc-null",
23+
"wat",
24+
"parallel-compilation",
25+
"cranelift",
26+
"pooling-allocator",
27+
"demangle",
28+
"addr2line",
29+
"coredump",
30+
"debug-builtins",
31+
"runtime",
32+
"component-model",
33+
"component-model-async",
34+
"threads",
35+
"stack-switching",
36+
"std",
37+
"debug",
38+
"compile-time-builtins",
39+
] }
1640
wasmtime-wasi = "40.0.0"
1741
wasmtime-wizer = { version = "40.0.0", features = ["wasmtime"] }

0 commit comments

Comments
 (0)