6 releases

Uses old Rust 2015

0.1.5 Apr 25, 2018
0.1.4 Jun 2, 2016
0.1.3 Nov 5, 2015
0.1.2 Oct 18, 2015
0.1.1 Jun 6, 2015

#1413 in Hardware support

Download history 1830/week @ 2024-12-25 4030/week @ 2025-01-01 6070/week @ 2025-01-08 3775/week @ 2025-01-15 2513/week @ 2025-01-22 2465/week @ 2025-01-29 3130/week @ 2025-02-05 2876/week @ 2025-02-12 2741/week @ 2025-02-19 3303/week @ 2025-02-26 2649/week @ 2025-03-05 3543/week @ 2025-03-12 3494/week @ 2025-03-19 3051/week @ 2025-03-26 2699/week @ 2025-04-02 2893/week @ 2025-04-09

22,616 downloads per month
Used in 70 crates (6 directly)

MIT license

27KB
356 lines

IOKit Rust Bindings

The IOKit-sys package provides declarations and linkage for the IOKit C library on OS X. Following the *-sys package conventions, the IOKit-sys package does not define higher-level abstractions over the native library.

Usage

Add IOKit-sys as a dependency in Cargo.toml:

[dependencies]
IOKit-sys = "0.1"

Import the IOKit_sys crate and use the functions as they're defined in the native IOKit library provided by Apple.

extern crate IOKit_sys as io;

Contributing

You may find that you need some functionality that is missing from IOKit-sys. If that's the case, please open an issue on Github or send a pull request with the added functionality.

If you plan to submit a pull request, please note the structure of the code. There is one file for each header file in the IOKit framework. For example, src/io_return.rs contains the definitions from IOKit/IOReturn.h. The definitions in each file are more or less in the same order that they appear in the matching header file. Each file is then re-exported in the crate root, e.g., pub use io_return::*.

Contributors

License

Copyright © 2015 David Cuddeback

Distributed under the MIT License.

Dependencies

~165KB