Skip to content

Commit

Permalink
Merge pull request #140 from waywardmonkeys/remove-libc
Browse files Browse the repository at this point in the history
Remove dependency on `libc`.
  • Loading branch information
bvssvni authored Jul 25, 2024
2 parents 63acafd + 5ef8290 commit c3d4d67
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
3 changes: 0 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,3 @@ bundled = []
[build-dependencies]
cc = "1"
pkg-config = "0.3.11"

[dependencies]
libc = "0.2.42"
8 changes: 3 additions & 5 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
#![allow(non_upper_case_globals)]
#![deny(missing_copy_implementations)]

use libc::{
c_char, c_int, c_long, c_short, c_uchar, c_uint, c_ulong, c_ushort, c_void, ptrdiff_t, size_t,
};
use core::ffi::{c_char, c_int, c_long, c_short, c_uchar, c_uint, c_ulong, c_ushort, c_void};

mod tt_tables;
pub use crate::tt_tables::*;
Expand All @@ -27,8 +25,8 @@ pub type FT_UShort = c_ushort;
pub type FT_Long = c_long;
pub type FT_ULong = c_ulong;
pub type FT_Bool = c_uchar;
pub type FT_Offset = size_t;
pub type FT_PtrDist = ptrdiff_t;
pub type FT_Offset = usize;
pub type FT_PtrDist = isize;
pub type FT_String = c_char;
pub type FT_Tag = FT_UInt32;
pub type FT_Error = c_int;
Expand Down

0 comments on commit c3d4d67

Please sign in to comment.