Cargo Features

[dependencies]
assert_no_alloc = { version = "1.1.2", default-features = false, features = ["warn_debug", "warn_release", "disable_release"] }
default = disable_release

The disable_release feature is set by default whenever assert_no_alloc is added without default-features = false somewhere in the dependency tree.

warn_debug

Affects assert_no_alloc::violation_count, assert_no_alloc::reset_violation_count

warn_release

Affects assert_no_alloc::violation_count, assert_no_alloc::reset_violation_count

disable_release default

Affects assert_no_alloc::assert_no_alloc, assert_no_alloc::permit_alloc