binary_size_test/binary_size_test.rs
1//! Binary size test - minimal usage to measure overhead
2//!
3//! Run with: cargo build --release --example binary_size_test
4
5use waddling_errors::prelude::*;
6
7const ERR1: Code = error("TEST", "ONE", 1);
8const ERR2: Code = warning("TEST", "TWO", 2);
9const ERR3: Code = success("TEST", "THREE", 3);
10
11fn main() {
12 // Force the compiler to include the codes
13 println!("{}", ERR1.code());
14 println!("{}", ERR2.code());
15 println!("{}", ERR3.code());
16}