From 17c313dd3c52c0db97c446a36d34657773175183 Mon Sep 17 00:00:00 2001 From: Volker Mische Date: Thu, 13 Apr 2023 14:29:43 +0200 Subject: [PATCH] chore: update dependencies and set MSRV (#50) This commit updates to the latest dependencies that don't lead to breaking changes. It also sets the minimum supported Rust version. It's version 1.62.1 due to the `temp-env` dependency. --- ec-gpu-gen/Cargo.toml | 5 +++-- ec-gpu-gen/src/source.rs | 2 +- rust-toolchain | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/ec-gpu-gen/Cargo.toml b/ec-gpu-gen/Cargo.toml index 913408c..8fba074 100644 --- a/ec-gpu-gen/Cargo.toml +++ b/ec-gpu-gen/Cargo.toml @@ -7,6 +7,7 @@ description = "Code generator for field and eliptic curve operations on the GPUs homepage = "https://github.com/filecoin-project/ff-cl-gen" repository = "https://github.com/filecoin-project/ff-cl-gen" license = "MIT/Apache-2.0" +rust-version = "1.62.1" [dependencies] bitvec = "1.0.1" @@ -20,7 +21,7 @@ log = "0.4.14" num_cpus = "1.13.0" once_cell = "1.8.0" rayon = "1.5.1" -rust-gpu-tools = { version = "0.6.1", default-features = false, optional = true } +rust-gpu-tools = { version = "0.7.0", default-features = false, optional = true } sha2 = "0.10" thiserror = "1.0.30" yastl = "0.1.2" @@ -34,7 +35,7 @@ blstrs = { version = "0.6.0", features = ["__private_bench", "gpu"] } rand = "0.8" lazy_static = "1.2" pairing = "0.22.0" -temp-env = "0.2.0" +temp-env = "0.3.0" rand_core = "0.6.3" rand_xorshift = "0.3.0" diff --git a/ec-gpu-gen/src/source.rs b/ec-gpu-gen/src/source.rs index 4813ccd..d4db3ab 100644 --- a/ec-gpu-gen/src/source.rs +++ b/ec-gpu-gen/src/source.rs @@ -737,7 +737,7 @@ mod tests { #[cfg(feature = "opencl")] impl opencl::KernelArgument for GpuScalar { fn push(&self, kernel: &mut opencl::Kernel) { - kernel.builder.set_arg(&self.0); + unsafe { kernel.builder.set_arg(&self.0) }; } } diff --git a/rust-toolchain b/rust-toolchain index bb120e8..b77a81d 100644 --- a/rust-toolchain +++ b/rust-toolchain @@ -1 +1 @@ -1.59.0 +1.62.1