Skip to content

Commit 810459b

Browse files
committed
Removed libc dependency by using std::os::raw types.
1 parent 5d3524b commit 810459b

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

Cargo.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,5 @@ exclude = [".gitignore"]
1313

1414
build = "build.rs"
1515

16-
[dependencies]
17-
libc = ">= 0.1, < 0.3"
18-
1916
[build-dependencies]
2017
gcc = "0.3"

src/lib.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
//! Rust interface for Objective-C's `@throw` and `@try`/`@catch` statements.
22
3-
extern crate libc;
4-
53
use std::mem;
4+
use std::os::raw::{c_int, c_void};
65
use std::ptr;
7-
use libc::{c_int, c_void};
86

97
#[link(name = "objc", kind = "dylib")]
108
extern { }

0 commit comments

Comments
 (0)