Skip to content

Commit

Permalink
Merge pull request #3879 from kajacx/wai-compiler-features
Browse files Browse the repository at this point in the history
Add compiler features to wai-bindgen-wasmer
  • Loading branch information
syrusakbary authored May 18, 2023
2 parents e763f08 + b321f4d commit cb18650
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/wai-bindgen-wasmer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ wasmer = { version = "=3.3.0", path = "../api", default-features = false }

[features]
# Enables generated code to emit events via the `tracing` crate whenever wasm is
# entered and when native functions are called. Note that tracin is currently
# entered and when native functions are called. Note that tracing is currently
# only done for imported functions.
tracing = ["tracing-lib", "wai-bindgen-wasmer-impl/tracing"]

Expand All @@ -34,5 +34,10 @@ async = ["async-trait", "wai-bindgen-wasmer-impl/async"]
js = ["wasmer/js", "wasmer/std"]
sys = ["wasmer/sys"]

# Wasmer compiler (with `sys` feature only)
cranelift = ["wasmer/cranelift"]
singlepass = ["wasmer/singlepass"]
llvm = ["wasmer/llvm"]

[package.metadata.docs.rs]
features = ["wasmer/sys"]

0 comments on commit cb18650

Please sign in to comment.