Skip to content

Commit a6c1fa7

Browse files
authored
Merge pull request #2860 from fermyon/expose-call-hook
Expose the wasmtime/call-hook feature from spin-core
2 parents bb0065d + 1a5e552 commit a6c1fa7

File tree

4 files changed

+8
-3
lines changed

4 files changed

+8
-3
lines changed

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,6 @@ toml = "0.8"
152152
tracing = { version = "0.1", features = ["log"] }
153153
tracing-opentelemetry = { version = "0.26", default-features = false, features = ["metrics"] }
154154
url = "2"
155-
156155
wasi-common-preview1 = { version = "25.0.0", package = "wasi-common", features = [
157156
"tokio",
158157
] }

crates/core/Cargo.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,9 @@ spin-factors-test = { path = "../factors-test" }
1919
spin-locked-app = { path = "../locked-app" }
2020
tokio = { version = "1", features = ["macros", "rt", "rt-multi-thread"] }
2121
wasmtime-wasi = { workspace = true }
22+
23+
[features]
24+
# Enables support for the `wasmtime::Store::call_hook` API which enables injecting custom
25+
# logic around all entries/exits from WebAssembly. This has a slight performance
26+
# cost for all host functions.
27+
call-hook = ["wasmtime/call-hook"]

crates/factor-key-value/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ tracing = { workspace = true }
1919

2020
[dev-dependencies]
2121
spin-factors-test = { path = "../factors-test" }
22-
spin-key-value-spin = { path = "../key-value-spin" }
2322
spin-key-value-redis = { path = "../key-value-redis" }
23+
spin-key-value-spin = { path = "../key-value-spin" }
2424
tempfile = { workspace = true }
2525
tokio = { version = "1", features = ["macros", "rt"] }
2626

crates/runtime-config/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ toml = { workspace = true }
3333
[dev-dependencies]
3434
spin-factors-test = { path = "../factors-test" }
3535
spin-world = { path = "../world" }
36-
tokio = { version = "1", features = ["macros"] }
3736
tempfile = "3.2"
37+
tokio = { version = "1", features = ["macros"] }
3838
toml = "0.8"
3939

4040
[lints]

0 commit comments

Comments
 (0)