rust-lang / libc

Raw bindings to platform APIs for Rust
https://docs.rs/libc
Apache License 2.0
2.11k stars 1.04k forks source link

Deprecate all Linux kernel APIs #1391

Open gnzlbg opened 5 years ago

gnzlbg commented 5 years ago

Libc currently only exposes a lot of Linux kernel APIs, but leaves doing so to other crates for other operating systems.

We probably should do the same that we do for MacOS and Windows, that is, have a different crate, e.g., linux, that's just like mach, winapi, etc. and that it is tested against different Linux kernel versions.

Once we have that in place, we can start deprecating kernel APIs from here, and recommend users to use other crates instead.

newpavlov commented 5 years ago

Good idea! Unfortunately linux crate is owned by @mahkoh and before doing deprecation I would prefer for it to be transferred to someone more active and interested in maintaining it.

mahkoh commented 5 years ago

Nope.

gnzlbg commented 5 years ago

@newpavlov I have a linux-rs crate that uses rust-bindgen to auto generate the bindings form the headers. I wanted to turn that into something more like the llvm crate before releasing it.