Robzz / cargo-docset

Cargo subcommand to generate a Dash/Zeal docset for your Rust packages.
Apache License 2.0
100 stars 4 forks source link

Download docs.rs documentation for arbitrary crates #49

Open mlthlschr opened 1 year ago

mlthlschr commented 1 year ago

Not a feature request but an offer for PR.

The other day I stumbled across your project. It works quite well for locally available crates, however I wondered if it could also provide the docs for any other crate without needing to clone them.

As it does not yet, I hacked around your solution a bit and created a solution using the data downloadable at docs.rs. You can find it at https://git.sr.ht/~mlthlschr/cargo-docset/tree . Let me know if you are interested in pulling this functionality into your project. Then I can clean up the code a bit, move the repo to github and create a PR.

Robzz commented 1 year ago

Thanks for the submission, yeah this sounds like a really useful feature, I'll try and take a look at your work in the next couple weeks hopefully