Generate and insert Rustdocs into your Rust projects without a huge model or agent spaghetti 🦀 (github.com)
from exgf@programming.dev to programming@programming.dev on 03 Oct 03:09
https://programming.dev/post/38479235

cross-posted from: programming.dev/post/38477847

Awful Rustdocs is a CLI tool that generates or improves Rustdoc comments by harvesting symbols via rust_ast.nu, enriching each item with ast-grep context (callers, intra-body calls, qualified paths), and prompting your LLM to produce concise, high-quality docs.

You don’t need hundreds of prompts and agents if you’re smart about your context.

I’m running it on all my Rust projects right now using the Systems Programming Qwen 3 4B finetune I created, and it saves me an incredible amount of time by creating docs that are almost always good enough to publish straight off but act more as a draft for me. It cuts down on a lot of repetitive typing and lets me get back to doing what I love (writing code).

It requires Nushell, but you should probably already be using that, and if this is how you find out about Nushell, then even better, make the jump; it’s worth it.

#programming

threaded - newest

asudox@lemmy.asudox.dev on 03 Oct 05:24 next collapse

You can’t write your own docs? Well, I guess nobody would use your shitty project anyway. Probably generated by an agent as well.

The name of this project is at least accurrate, but I have my suspicions that it is also generated by AI. OP, are you the “dev” of this?

exgf@programming.dev on 03 Oct 06:31 next collapse

Well aren’t you a bright little ray of light. At this moment your question is akin to saying “You can’t write all the scaffolding instead of running cargo new --bin oh_wow_im_so_leet_i_disparage_my_brothers_and_sisters_sharing_open_source_software_for_free”

Go skim through my Github if you want to call me a “developer”, pick a project and contribute.

Who in their right mind would sit around writing insane regex for weeks, of course this particular project was augmented with a conversation with an LLM.

Nice undocumented fork of project though. Proud of u.

UnRelatedBurner@sh.itjust.works on 03 Oct 07:00 next collapse

hey, exgf, have you heard of a “ragebait”?

<img alt="" src="https://media.tenor.com/l1VocdKqrlcAAAAM/cyberbully-cyberbullying.gif">

exgf@programming.dev on 03 Oct 18:26 collapse

It’s only effective if the person has actual done something.

asudox@lemmy.asudox.dev on 03 Oct 09:19 next collapse

Is that so? Have a nice day, bud.

Hundun@beehaw.org on 06 Oct 20:02 collapse

My sibling in craft, docs are not “boilerplate”, they are the main freaking sauce. That is why they should be written by a human who understands stuff. I genuinely believe you are missing the point of the practice.

Hundun@beehaw.org on 06 Oct 20:04 collapse

That was mean as heck though. One can be correct and approachable at the same time.

locuester@lemmy.zip on 03 Oct 07:40 collapse

Nice project. Seems a bit heavy on the dependency side.

Psst: step 2 of the install instructions has a question to you from the LLM writing the docs. lol

exgf@programming.dev on 03 Oct 18:25 next collapse

Every project is way too heavy on the dependency side imo, removing as many deps as I can from my projects is on the TODO list.

exgf@programming.dev on 03 Oct 18:31 collapse

Oof, thank you for the catch.