21 releases

0.6.0-alpha.0 May 25, 2023
0.5.2 Jul 23, 2021
0.5.1 Apr 5, 2020
0.4.3 Feb 27, 2020
0.1.1 Oct 17, 2019

#897 in Unix APIs

Download history 69/week @ 2024-09-21 1/week @ 2024-09-28 2/week @ 2024-10-05 4/week @ 2024-10-12 55/week @ 2024-10-19 123/week @ 2024-10-26 105/week @ 2024-11-02

287 downloads per month
Used in linux_modules

MIT/Apache

105KB
2K SLoC

Linapi

standard-readme compliant linapi crates.io version and link linapi Crates.io license linapi docs.rs badge

High level bindings to various Linux APIs and interfaces

This crate provides high-level, safe, Rust bindings to the various Linux Kernel APIs and interfaces.

This crate is currently experimental, and the API will change.

Background

The goal of this crate is to provide relatively high-level bindings, specifically for the Linux Kernel.

The kernel exposes a lot of information through filesystems like sysfs, and there aren't a lot of good structured ways to handle it, on top of it being sparsely documented.

So this crate does the work of handling it for you!

Install

[dependencies]
linapi = "0.5.3"

Dependencies

  • The Linux Kernel. This crate has only been tested with version 5.5.3.

Usage

See the documentation for details

Changelog

Please see CHANGELOG for version history

Contributing

This crate is not looking for contributors at this time.

However, feel free to ask questions and request bindings using github issues, or suggest/discuss API improvements.

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as below, without any additional terms or conditions.

License

Licensed under either of

at your option.

Dependencies

~6–15MB
~220K SLoC