-
Notifications
You must be signed in to change notification settings - Fork 18
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
Update bindgen script and bindings #125
Conversation
- Added the `bindgen-ctru-sys` to be able to use `ParseCallbacks` when generating the bindings. - Updated `doxygen-rs` to 0.4, which has a faster engine and more extensible internal (even though there are some regressions). - Removes the `docstring-to-rustdoc` package because it is no longer needed.
Add `bindgen-ctru-sys` package and update bindings
@ian-h-chamberlain It seems the CI is running this command: |
@Techie-Pi Some comments within the generated bindings are getting mistaken as doctests by |
|
Yeah, I think it's probably fine. I think we can just remove
It looks like some of the documentation contains entries with 4 spaces, is treated as "rust code" by the doctest runner. Example: extern "C" {
#[must_use]
#[doc = "Process management\n# **\n* Gets the handle of a process.\n* # Arguments\n\n* `process` (direction out) - The handle of the process\n* processId The ID of the process to open\n*/"]
pub fn svcOpenProcess(process: *mut Handle, processId: u32_) -> Result;
} The docstring expanded looks like this:
The second-to-last line gets treated like a bullet containing a code block, which of course fails to compile:
The original comment looks like it uses the spaces to align params: ///@name Process management
///@{
/**
* @brief Gets the handle of a process.
* @param[out] process The handle of the process
* @param processId The ID of the process to open
*/ |
That's interesting tbh, I'll fix it later and publish a new version. Edit: Just published 0.4.2 which should fix (or at least improve) it. |
This is a continuation of #110, rebased on a local branch to aid collaboration on this issue.