Skip to content

Commit 17171c2

Browse files
committed
remove libc dependency of bzip2-sys
1 parent bbc4b47 commit 17171c2

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

bzip2-sys/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ name = "bzip2_sys"
1919
path = "lib.rs"
2020

2121
[dependencies]
22-
libc = "0.2"
2322

2423
[build-dependencies]
2524
pkg-config = "0.3.9"

bzip2-sys/lib.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
#![doc(html_root_url = "https://docs.rs/bzip2-sys/0.1")]
2+
#![no_std]
23

3-
extern crate libc;
4-
5-
use std::ffi::{c_char, c_int, c_uint, c_void};
4+
use core::ffi::{c_char, c_int, c_uint, c_void};
65

76
pub const BZ_RUN: c_int = 0;
87
pub const BZ_FLUSH: c_int = 1;

0 commit comments

Comments
 (0)