maikor-vm-interface 0.1.10

Interface for VM (simulates hardware)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#[cfg(feature = "argb")]
const ARGB: bool = true;
#[cfg(not(feature = "argb"))]
const ARGB: bool = false;
#[cfg(feature = "rgba")]
const RGBA: bool = true;
#[cfg(not(feature = "rgba"))]
const RGBA: bool = false;

fn main() {
    match (ARGB, RGBA) {
        (true, true) => panic!("Only one of the features `argb` or `rgba` can be enabled"),
        (false, false) => panic!("One of the features `argb` or `rgba` must be enabled"),
        _ => {}
    }
}