Cargo Features
[dependencies]
wiggle = { version = "26.0.1", default-features = false, features = ["wiggle_metadata", "tracing_log", "wasmtime", "wasmtime_async"] }
- wiggle_metadata default = witx
-
The wiggle proc-macro emits some code (inside
pub mod metadata
) guarded by thewiggle_metadata
feature flag. We use this feature flag so that users of wiggle are not forced to take a direct dependency on thewitx
crate unless they want it.Enables wiggle_metadata of wiggle-macro
- tracing_log
-
The
tracing
crate can use thelog
ecosystem of backends with this non-default feature. We don't need to provide this by default, but its useful for users that don't want to usetracing-subscriber
to get the logs out of wiggle-generated libraries. - wasmtime default wasmtime_async
-
This feature enables integration with wasmtime.
Enables wasmtime
Affects
wiggle::wasmtime_crate
… - wasmtime_async default
-
Support for async in the wasmtime crates.
- default = wasmtime, wasmtime_async, wiggle_metadata
-
These default features are set whenever
wiggle
is added without
somewhere in the dependency tree.default-features = false
Features from optional dependencies
In crates that don't use the dep:
syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.