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 <[email protected]>
  • Loading branch information
fenollp committed Jul 27, 2024
1 parent 6711432 commit d742106
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,11 @@ edition = "2021"
[dependencies]
log = "0.4.14"
once_cell = "1.9.0"
atomic = "0.5.1"
cgmath = "0.18.0"
libc = "0.2.69"

atomic = "0.6.0"
bytemuck = { version = "1.13.1", features = ["derive"] }

# framebuffer
memmap2 = { version = "0.5.2", 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)]

Check failure on line 33 in examples/demo.rs

View workflow job for this annotation

GitHub Actions / Test Suite

Only fieldless enums are supported for NoUninit

Check failure on line 33 in examples/demo.rs

View workflow job for this annotation

GitHub Actions / Test Suite on gnueabihf

Only fieldless enums are supported for NoUninit

Check failure on line 33 in examples/demo.rs

View workflow job for this annotation

GitHub Actions / Demo with gnueabihf

Only fieldless enums are supported for NoUninit

Check failure on line 33 in examples/demo.rs

View workflow job for this annotation

GitHub Actions / Demo with musl

Only fieldless enums are supported for NoUninit
#[repr(i64)]
enum DrawMode {
Draw(u32),
Erase(u32),
Expand Down

0 comments on commit d742106

Please sign in to comment.