Cargo Features

Zeroable has no features set by default.

[dependencies]
zeroable = { version = "0.2.0", features = ["print_type", "nightly_testing", "testing", "nightly_docs"] }
print_type

For improved debugging, prints the type name of T in AssertZeroable<T>'s ' Debug implementation.

nightly_testing = nightly_docs, testing

Internal feature to enable tests that require Rust nightly.

Affects shouldnt_compile::UnionTransparentNonCompiling, shouldnt_compile::EnumTransparentNonCompiling

testing nightly_testing?

Internal feature for tests

nightly_docs nightly_testing?

This enables doctests that require nightly,
otherwise they are ignored by the test runner (they appear as ignored in the docs).

Enables extern_crate_alloc of bytemuck