Skip to content

Commit c751046

Browse files
committed
remove libc
1 parent a341b52 commit c751046

File tree

3 files changed

+1
-3
lines changed

3 files changed

+1
-3
lines changed

Cargo.lock

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ bench = true
2222
crc = "3"
2323
digest = { version = "0.10", features = ["alloc"] }
2424
rand = "0.9"
25-
libc = "0.2"
2625
regex = "1.11"
2726
rustversion = "1.0"
2827

src/ffi.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ pub extern "C" fn crc_fast_get_calculator_target(algorithm: CrcFastAlgorithm) ->
515515

516516
/// Gets the version of this library
517517
#[no_mangle]
518-
pub extern "C" fn crc_fast_get_version() -> *const libc::c_char {
518+
pub extern "C" fn crc_fast_get_version() -> *const c_char {
519519
const VERSION: &CStr =
520520
match CStr::from_bytes_with_nul(concat!(env!("CARGO_PKG_VERSION"), "\0").as_bytes()) {
521521
Ok(version) => version,

0 commit comments

Comments
 (0)