From 17171c211c904afe3cea7f2842336828b0a6509e Mon Sep 17 00:00:00 2001 From: Folkert de Vries Date: Thu, 27 Feb 2025 22:13:18 +0100 Subject: [PATCH] remove libc dependency of `bzip2-sys` --- bzip2-sys/Cargo.toml | 1 - bzip2-sys/lib.rs | 5 ++--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/bzip2-sys/Cargo.toml b/bzip2-sys/Cargo.toml index f84eb650..f289b84f 100644 --- a/bzip2-sys/Cargo.toml +++ b/bzip2-sys/Cargo.toml @@ -19,7 +19,6 @@ name = "bzip2_sys" path = "lib.rs" [dependencies] -libc = "0.2" [build-dependencies] pkg-config = "0.3.9" diff --git a/bzip2-sys/lib.rs b/bzip2-sys/lib.rs index b6f36607..4a73a8bb 100644 --- a/bzip2-sys/lib.rs +++ b/bzip2-sys/lib.rs @@ -1,8 +1,7 @@ #![doc(html_root_url = "https://docs.rs/bzip2-sys/0.1")] +#![no_std] -extern crate libc; - -use std::ffi::{c_char, c_int, c_uint, c_void}; +use core::ffi::{c_char, c_int, c_uint, c_void}; pub const BZ_RUN: c_int = 0; pub const BZ_FLUSH: c_int = 1;