Skip to content

Commit

Permalink
WIP: bumping atomic crate is stuck on non-fieldless enums
Browse files Browse the repository at this point in the history
Signed-off-by: Pierre Fenoll <pierrefenoll@gmail.com>
  • Loading branch information
fenollp committed Jul 27, 2024
1 parent d9efab8 commit 4876d0e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 3 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down
5 changes: 4 additions & 1 deletion examples/demo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 4876d0e

Please sign in to comment.