Cargo Features

[dependencies]
freebsd-kmi-rs = { version = "0.3.0", default-features = false, features = ["FBSD_13_1", "FBSD_14_0", "GLOBAL_ALLOC_DISABLED", "GLOBAL_ALLOC_EXCLUDE_PANICHANDLER", "GLOBAL_ALLOC_EXCLUDE_ALLOC_ERROR_HNDL", "GLOBAL_ALLOC_FLAG_WAITOK", "GLOBAL_ALLOC_FLAG_NOWAIT", "GLOBAL_ALLOC_FLAG_USERESERVE", "LOCK_DEBUG"] }
default = FBSD_14_0, GLOBAL_ALLOC_FLAG_NOWAIT

These default features are set whenever freebsd-kmi-rs is added without default-features = false somewhere in the dependency tree.

FBSD_13_1

version

FBSD_14_0 default
GLOBAL_ALLOC_DISABLED

functionality

--- GlobalAlloc
when added, the GlobalAlloc will not be included

GLOBAL_ALLOC_EXCLUDE_PANICHANDLER

when added, a default panic_handler will not be included

GLOBAL_ALLOC_EXCLUDE_ALLOC_ERROR_HNDL

when added, a default alloc_error_handler will not be included

GLOBAL_ALLOC_FLAG_WAITOK

- malloc allocation flags: either
instructs malloc that it is ok to wait

GLOBAL_ALLOC_FLAG_NOWAIT default

- or
instructs malloc that it is not ok to wait

GLOBAL_ALLOC_FLAG_USERESERVE

additional flag to use a reserve when alloc fail can not be tolerated

LOCK_DEBUG

--- other