Cargo Features
[dependencies]
usdt = { version = "0.5.0", default-features = false, features = ["asm"] }
- default = asm
-
The
asm
feature is set by default wheneverusdt
is added without
somewhere in the dependency tree.default-features = false - asm default = dtrace-parser
-
Enables asm of usdt-attr-macro, usdt-impl, and usdt-macro
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.
NOTE: The use of path and version dependencies is deliberate and load-bearing.
When building from source, this will select the version in the workspace, by path. When publishing the specific version will be used. Combined with the exact version requirements, this prevents issues like oxidecomputer/usdt#69, where the public-facing
usdt
crate may pick up different versions of the internal implementation crates.