Hosting Rust crate documentation with Nginx (kdwarn.net)
from kdwarn@programming.dev to rust@programming.dev on 22 Apr 13:49
https://programming.dev/post/13106327

Docs.rs is great, but if you want to host yourself it’s pretty easy.

#rust

threaded - newest

secana@programming.dev on 22 Apr 18:30 collapse

Or use kellnr.io to host your crates. It automatically builds the corresponding docs and hosts them for you. Disclaimer: I’m the author.

sugar_in_your_tea@sh.itjust.works on 22 Apr 22:45 collapse

Dark mode

I’m sold.

kdwarn@programming.dev on 23 Apr 14:11 collapse

FYI you get that with self-hosting Rust docs too.

sugar_in_your_tea@sh.itjust.works on 23 Apr 15:04 collapse

Yup, but crates.io doesn’t have a dark theme. Fortunately cargo search exists though.

kdwarn@programming.dev on 23 Apr 15:22 collapse

Ah, I see. If you want a whole registry.

sugar_in_your_tea@sh.itjust.works on 24 Apr 00:28 collapse

I meant for the private and cached packages, not a full mirror. Having at least dark mode on all parts of the UI, not just the docs, is nice, and I wish crates.io supported it.

I don’t care about dark mode enough to mirror all of crates.io, I’d rather just use a browser addon on to toggle the background and text.