New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve docs #64
Improve docs #64
Conversation
Right now, only basic things are changed (remove ``@`` annotations, trim spaces, etc.). In the future, changes will be made (mostly to _truly_ transform ``@param``to rustdoc conventions. Right now, the documentation is mostly decent, and definitely understandable
@@ -29,3 +28,5 @@ bindgen "$DEVKITPRO/libctru/include/3ds.h" \ | |||
-DARM11 \ | |||
-D__3DS__ \ | |||
> src/bindings.rs | |||
|
|||
cargo run --bin docstring-to-rustdoc -- src/bindings.rs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Related (fyi): rust-lang/rust-bindgen#955
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ohh, I didn't see that until now! Thanks, I'll check it out!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nothing's implemented there, but someone else did have the idea to open an issue at least.
@@ -29,3 +28,5 @@ bindgen "$DEVKITPRO/libctru/include/3ds.h" \ | |||
-DARM11 \ | |||
-D__3DS__ \ | |||
> src/bindings.rs | |||
|
|||
cargo run --bin docstring-to-rustdoc -- src/bindings.rs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nothing's implemented there, but someone else did have the idea to open an issue at least.
@@ -0,0 +1,70 @@ | |||
//! This script transforms _some_ Boxygen comments to Rustdoc format |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! I had been looking for something like this builtin to bindgen
but this little script is a good workaround.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm working on something more advanced on a personal repo, if you are interested to check it out: Techie-Pi/doxygen-rs
Following some suggestions from #32, I've made some changes to improve documentation.
rustdoc
suggestionsFs
(mostly minor syntax issues)--no-doc-comments
frombindgen.sh
to generate kind of docs for users ofctru-sys