diff --git a/Cargo.toml b/Cargo.toml index eaa7a54..e727585 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,10 +11,12 @@ edition = "2021" [dependencies] log = "0.4.22" -atomic = "0.5.1" +atomic = "0.6.0" cgmath = "0.18.0" libc = "0.2.69" +bytemuck = { version = "1.13.1", features = ["derive"] } + # framebuffer memmap2 = { version = "0.9.4", optional = true } diff --git a/examples/demo.rs b/examples/demo.rs index fd700e3..69d87a6 100644 --- a/examples/demo.rs +++ b/examples/demo.rs @@ -28,7 +28,10 @@ use std::sync::Mutex; use std::thread::sleep; use std::time::Duration; -#[derive(Copy, Clone, PartialEq)] +use bytemuck::NoUninit; + +#[derive(Copy, Clone, PartialEq, NoUninit)] +#[repr(i64)] enum DrawMode { Draw(u32), Erase(u32),