Skip to content

Commit

Permalink
Merge pull request #2860 from fermyon/expose-call-hook
Browse files Browse the repository at this point in the history
Expose the wasmtime/call-hook feature from spin-core
  • Loading branch information
rylev authored Sep 24, 2024
2 parents bb0065d + 1a5e552 commit a6c1fa7
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,6 @@ toml = "0.8"
tracing = { version = "0.1", features = ["log"] }
tracing-opentelemetry = { version = "0.26", default-features = false, features = ["metrics"] }
url = "2"

wasi-common-preview1 = { version = "25.0.0", package = "wasi-common", features = [
"tokio",
] }
Expand Down
6 changes: 6 additions & 0 deletions crates/core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,9 @@ spin-factors-test = { path = "../factors-test" }
spin-locked-app = { path = "../locked-app" }
tokio = { version = "1", features = ["macros", "rt", "rt-multi-thread"] }
wasmtime-wasi = { workspace = true }

[features]
# Enables support for the `wasmtime::Store::call_hook` API which enables injecting custom
# logic around all entries/exits from WebAssembly. This has a slight performance
# cost for all host functions.
call-hook = ["wasmtime/call-hook"]
2 changes: 1 addition & 1 deletion crates/factor-key-value/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ tracing = { workspace = true }

[dev-dependencies]
spin-factors-test = { path = "../factors-test" }
spin-key-value-spin = { path = "../key-value-spin" }
spin-key-value-redis = { path = "../key-value-redis" }
spin-key-value-spin = { path = "../key-value-spin" }
tempfile = { workspace = true }
tokio = { version = "1", features = ["macros", "rt"] }

Expand Down
2 changes: 1 addition & 1 deletion crates/runtime-config/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ toml = { workspace = true }
[dev-dependencies]
spin-factors-test = { path = "../factors-test" }
spin-world = { path = "../world" }
tokio = { version = "1", features = ["macros"] }
tempfile = "3.2"
tokio = { version = "1", features = ["macros"] }
toml = "0.8"

[lints]
Expand Down

0 comments on commit a6c1fa7

Please sign in to comment.