Cargo Features

[dependencies]
usdt-impl = { version = "0.5.0", default-features = false, features = ["asm", "des"] }
default = asm

The asm feature is set by default whenever usdt-impl is added without default-features = false somewhere in the dependency tree.

asm default
des = dof

The des feature enables dof and company to be able to deserialize special sections emitted in the binary which describe the probes. Except on platforms with linker integration for USDT probes (currently only MacOS), that data is required in order to register the probes with the kernel.

Enables des of dof

Affects usdt-impl::record

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.

dof not mac mac des?