v04_typed/v04_typed.rs
1use r_resources::include_resources;
2include_resources!();
3
4fn main() {
5 println!("=== r-resources v0.4.0 (typed resources) ===\n");
6
7 // Color typed from resources (build-generated)
8 let c = color_t::ACCENT;
9 println!(
10 "Color rgba=({}, {}, {}, {}) rgba_u32=0x{:08X}",
11 c.r(),
12 c.g(),
13 c.b(),
14 c.a(),
15 c.to_rgba_u32()
16 );
17
18 // URL typed from resources (build-generated)
19 let api = url_t::API_BASE;
20 println!("Url: {}://{}{}", api.scheme(), api.host(), api.path());
21}