1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#![no_std]
#![cfg_attr(feature = "nightly_testing", feature(arbitrary_enum_discriminant))]
#![cfg_attr(feature = "nightly_testing", feature(transparent_unions))]
#![cfg_attr(feature = "nightly_testing", feature(transparent_enums))]
mod assert_zeroable;
pub mod zeroable_docs;
extern crate self as zeroable;
#[doc(noinline)]
pub use bytemuck;
pub use bytemuck::Zeroable;
pub use zeroable_derive::Zeroable;
pub use crate::assert_zeroable::AssertZeroable;
#[cfg(all(test, not(feature = "testing")))]
compile_error! { "tests must be run with the \"testing\" feature" }
#[cfg(feature = "testing")]
mod tests;