From 6d426751eb303414ff7955fd33fe2f09efe7575b Mon Sep 17 00:00:00 2001 From: imrn99 <95699343+imrn99@users.noreply.github.com> Date: Mon, 22 Jul 2024 20:25:32 +0200 Subject: [PATCH 1/3] update manifests --- Cargo.toml | 3 ++- fastiron/Cargo.toml | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 8a35d947..bd50b6b2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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" } diff --git a/fastiron/Cargo.toml b/fastiron/Cargo.toml index 037270c8..6343ef66 100644 --- a/fastiron/Cargo.toml +++ b/fastiron/Cargo.toml @@ -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 } From 480784108465a80b8147e96236cba4f50adf8d26 Mon Sep 17 00:00:00 2001 From: imrn99 <95699343+imrn99@users.noreply.github.com> Date: Mon, 22 Jul 2024 20:34:44 +0200 Subject: [PATCH 2/3] add bytemuck::Pod req for CustomFloat --- fastiron/src/constants.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fastiron/src/constants.rs b/fastiron/src/constants.rs index 5dbc04ed..622bf0db 100644 --- a/fastiron/src/constants.rs +++ b/fastiron/src/constants.rs @@ -62,7 +62,7 @@ pub trait UtilsFloat: { } /// Custom super-trait for floating point number -pub trait CustomFloat: Float + FromPrimitive + OpsFloat + UtilsFloat { +pub trait CustomFloat: Float + bytemuck::Pod + FromPrimitive + OpsFloat + UtilsFloat { // floating ref /// Threshold upper-value for decimal number. From acddc4cc39938b45d39fec11e157d8a03e313407 Mon Sep 17 00:00:00 2001 From: imrn99 <95699343+imrn99@users.noreply.github.com> Date: Fri, 26 Jul 2024 08:44:33 +0200 Subject: [PATCH 3/3] add clippy exception to pass 1.80 CI --- fastiron/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/fastiron/src/lib.rs b/fastiron/src/lib.rs index 0f526c91..0c45c8d4 100644 --- a/fastiron/src/lib.rs +++ b/fastiron/src/lib.rs @@ -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;