From ed7cf35175c0f03df3716b2e37b7ffdb6f21cfac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Onur=20=C3=96zkan?= Date: Fri, 5 Jun 2026 22:54:31 +0300 Subject: [PATCH 1/2] build as rlib only MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Remove forced cdylib/staticlib crate types from the library target as that forces downstream embedded crates to enable crc-fast/panic-handler, which then conflicts with the application's own panic handler. Signed-off-by: Onur Özkan --- Cargo.toml | 1 - 1 file changed, 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index e2e3563..3276817 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -18,7 +18,6 @@ rust-version = "1.89" [lib] name = "crc_fast" -crate-type = ["lib", "cdylib", "staticlib"] bench = true [dependencies] From 6b28e3f4e0dd0c18ac59ffa433d6c4c051abccec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Onur=20=C3=96zkan?= Date: Fri, 5 Jun 2026 22:56:41 +0300 Subject: [PATCH 2/2] use core arch intrinsics in avx512 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This keeps the SIMD module usable when crc-fast is built without std. Signed-off-by: Onur Özkan --- src/arch/x86_64/avx512.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/arch/x86_64/avx512.rs b/src/arch/x86_64/avx512.rs index a95ff53..7add928 100644 --- a/src/arch/x86_64/avx512.rs +++ b/src/arch/x86_64/avx512.rs @@ -8,7 +8,7 @@ use crate::arch::x86::sse::X86SsePclmulqdqOps; use crate::traits::ArchOps; -use std::arch::x86_64::*; +use core::arch::x86_64::*; /// x86_64-only AVX512+PCLMULQDQ tier - delegates to SSE tier and overrides XOR3 operations /// Uses AVX512 ternary logic for XOR3 operations with PCLMULQDQ