Skip to content

Commit

Permalink
chore!: update atomic dependency (#95)
Browse files Browse the repository at this point in the history
* update manifests

* add bytemuck::Pod req for CustomFloat

* add clippy exception to pass 1.80 CI
  • Loading branch information
imrn99 authored Jul 26, 2024
1 parent 1a9e98b commit 3a84104
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ num = { version = "0.4.3" }
rand = { version = "0.8.5" }
tinyvec = { version = "1.6.1" }
rayon = { version = "1.10.0" }
atomic = { version = "0.5.3" } # further upgrade == breaking change
atomic = { version = "0.6.0" }
bytemuck = { version = "1.16.1" }
hwlocality = { version = "1.0.0-alpha.5" }
libc = { version = "0.2.155" }
rustc-hash = { version = "2.0.0" }
Expand Down
3 changes: 2 additions & 1 deletion fastiron/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ num = { workspace = true }
rand = { workspace = true, features = ["small_rng"] }
tinyvec = { workspace = true }
rayon = { workspace = true }
atomic = { workspace = true } # further upgrade == breaking change
atomic = { workspace = true }
bytemuck = { workspace = true }
hwlocality = { workspace = true }
libc = { workspace = true }
rustc-hash = { workspace = true }
Expand Down
2 changes: 2 additions & 0 deletions fastiron/src/constants.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ pub trait CustomReferenceFloat: Float + FromPrimitive {
pub trait CustomFloat:
Float
+ CustomReferenceFloat
+ bytemuck::Pod
+ Default
// conversions
+ FromPrimitive
Expand Down Expand Up @@ -140,6 +141,7 @@ impl CustomReferenceFloat for f64 {
impl<
T: Float
+ CustomReferenceFloat
+ bytemuck::Pod
+ Default
+ FromPrimitive
+ FromStr
Expand Down
1 change: 1 addition & 0 deletions fastiron/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@
//! [2]: https://github.com/cea-hpc/fastiron

#![warn(clippy::disallowed_types)]
#![allow(clippy::doc_lazy_continuation)] // TODO: remove & fix lints

pub mod constants;
pub mod data;
Expand Down

0 comments on commit 3a84104

Please sign in to comment.