diff --git a/Cargo.lock b/Cargo.lock index 36a5d89..f6ff87c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -208,7 +208,6 @@ dependencies = [ "crc", "criterion", "digest", - "libc", "rand", "regex", "rustversion", diff --git a/Cargo.toml b/Cargo.toml index 699b5a4..7108c11 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -22,7 +22,6 @@ bench = true crc = "3" digest = { version = "0.10", features = ["alloc"] } rand = "0.9" -libc = "0.2" regex = "1.11" rustversion = "1.0" diff --git a/src/ffi.rs b/src/ffi.rs index 611a2f4..ab90391 100644 --- a/src/ffi.rs +++ b/src/ffi.rs @@ -515,7 +515,7 @@ pub extern "C" fn crc_fast_get_calculator_target(algorithm: CrcFastAlgorithm) -> /// Gets the version of this library #[no_mangle] -pub extern "C" fn crc_fast_get_version() -> *const libc::c_char { +pub extern "C" fn crc_fast_get_version() -> *const c_char { const VERSION: &CStr = match CStr::from_bytes_with_nul(concat!(env!("CARGO_PKG_VERSION"), "\0").as_bytes()) { Ok(version) => version,