cluConstData 2.1.2

Compile-time macros for building persistent data structures in no_std and const environments. Supports buffer composition, and numeric formatting.
1
2
3
4
5
6
7
8
9
10
11
use cluConstData::const_data;

const_data! {
	const DATA: [u8; 5] = &[0x01, 0x02], &[0x03], &[0x04, 0x05];
}

fn main() {
	assert_eq!(DATA, [0x01, 0x02, 0x03, 0x04, 0x05]);

	println!("{DATA:?}");
}