fishinabarrel / linux-kernel-module-rust

Framework for writing Linux kernel modules in safe Rust
GNU General Public License v2.0
1.34k stars 119 forks source link

Write and publish docs #150

Open geofft opened 5 years ago

geofft commented 5 years ago

We should have docs for at least all public APIs, and published rustdocs linked from the README.

It's not super straightforward to use this repo with crates.io (you need a local checkout for getting to the target JSON file, see #1). docs.rs automatically publishes crates on crates.io; I'm not sure if we want to publish the crate for the sake of using that (+ getting into things like crater runs?), or just self-host docs. (I run enough websites that I'm not going to be sad about self-hosting docs somewhere....)

alex commented 5 years ago

I know you built some docs, can we make a checklist of all the public APIs visible in it, and then we can just go through and comment them, and then make sure we do the same going forward?

geofft commented 5 years ago

I'd like to mark bindings as #[doc(hidden)] since it's generated and kernel-version-specific, although there's a surprising amount of upstream kernel docs getting valiantly interpreted by Rustdoc.

Sawchord commented 3 years ago

Hi, I would like to help writing the documentation.

However, at the moment it is very hard do build the documentation to begin with. I managed to build them by putting a cargo doc into the Kbuild file of the hello-world example.

Is there are simpler way?

alex commented 3 years ago

At this point all new development is happening on https://github.com/Rust-for-Linux/linux/. If you're interested in contributing to the docs, that's the place to start.