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
12
use cluConstData::{concat_bytes, concat_str};

const A: &str = "const_";
const B: &str = "data";
const FULL: &str = concat_str!(A, B);

fn main() {
	println!("Merged string: {FULL}");

	let debug: &[u8] = concat_bytes!(A.as_bytes(), B.as_bytes());
	println!("Debug as bytes: {debug:?}");
}