aboutsummaryrefslogtreecommitdiff
path: root/c
diff options
context:
space:
mode:
authorJack O'Connor <[email protected]>2025-09-29 15:21:18 -0700
committerJack O'Connor <[email protected]>2026-01-08 09:13:24 -0800
commit7d6e242636a9cecb5ba9a5bcfee189ca734b0350 (patch)
treed150cba6c7bb8cf425ef858407d197531c55466c /c
parent0b64ce2aa2772c6df8b9058104924020febfd889 (diff)
update to the 2024 edition
While we're taking this MSRV bump, we can also update `constant_time_eq`, which uses the 2024 edition in its most recent versions.
Diffstat (limited to 'c')
-rw-r--r--c/blake3_c_rust_bindings/Cargo.toml2
-rw-r--r--c/blake3_c_rust_bindings/src/lib.rs6
2 files changed, 4 insertions, 4 deletions
diff --git a/c/blake3_c_rust_bindings/Cargo.toml b/c/blake3_c_rust_bindings/Cargo.toml
index 4c3a252..8cb53d4 100644
--- a/c/blake3_c_rust_bindings/Cargo.toml
+++ b/c/blake3_c_rust_bindings/Cargo.toml
@@ -7,7 +7,7 @@
name = "blake3_c_rust_bindings"
version = "0.0.0"
description = "TESTING ONLY Rust bindings for the BLAKE3 C implementation"
-edition = "2021"
+edition = "2024"
[features]
# By default the x86-64 build uses assembly implementations. This feature makes
diff --git a/c/blake3_c_rust_bindings/src/lib.rs b/c/blake3_c_rust_bindings/src/lib.rs
index c2b3989..f5f7023 100644
--- a/c/blake3_c_rust_bindings/src/lib.rs
+++ b/c/blake3_c_rust_bindings/src/lib.rs
@@ -133,7 +133,7 @@ pub mod ffi {
pub cv_stack: [u8; 1728usize],
}
- extern "C" {
+ unsafe extern "C" {
// public interface
pub fn blake3_hasher_init(self_: *mut blake3_hasher);
pub fn blake3_hasher_init_keyed(self_: *mut blake3_hasher, key: *const u8);
@@ -198,7 +198,7 @@ pub mod ffi {
#[cfg(any(target_arch = "x86", target_arch = "x86_64"))]
pub mod x86 {
- extern "C" {
+ unsafe extern "C" {
// SSE2 low level functions
pub fn blake3_compress_in_place_sse2(
cv: *mut u32,
@@ -314,7 +314,7 @@ pub mod ffi {
#[cfg(feature = "neon")]
pub mod neon {
- extern "C" {
+ unsafe extern "C" {
// NEON low level functions
pub fn blake3_hash_many_neon(
inputs: *const *const u8,