ab_core_primitives/
lib.rs1#![cfg_attr(any(target_os = "none", target_os = "unknown"), no_std)]
4#![warn(rust_2018_idioms, missing_debug_implementations, missing_docs)]
5#![feature(
6 const_trait_impl,
7 const_try,
8 portable_simd,
9 ptr_as_ref_unchecked,
10 step_trait,
11 trusted_len
12)]
13#![cfg_attr(feature = "alloc", feature(new_zeroed_alloc))]
14#![expect(incomplete_features, reason = "generic_const_exprs")]
15#![feature(generic_const_exprs)]
18
19pub mod address;
20pub mod balance;
21pub mod block;
22#[cfg(feature = "scale-codec")]
23pub mod checksum;
24pub mod ed25519;
25pub mod hashes;
26pub mod pieces;
27pub mod pos;
28pub mod pot;
29pub mod sectors;
30pub mod segments;
31pub mod shard;
32pub mod solutions;
33pub mod transaction;
34
35#[cfg(feature = "alloc")]
36extern crate alloc;
37
38const _: () = {
39 assert!(
40 size_of::<usize>() >= size_of::<u32>(),
41 "Must be at least 32-bit platform"
42 );
43};