-
Notifications
You must be signed in to change notification settings - Fork 1.1k
ctest: Add extraction of relevant types. #4485
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
Conversation
Would it be a good idea to add tests at this point for extraction as well? By just counting up how many aliases, structs, unions etc. |
A test wouldn't be bad. I would just make a single |
There seems to be some kind of bug with |
That's not a bug - the type is indeed used when |
ctest-next/src/ffi_items.rs
Outdated
} | ||
|
||
#[cfg(test)] | ||
mod tests { |
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.
Could you put the tests in a separate tests.rs
file? And then move the all_items.rs
contents to a const ALL_ITEMS: &str = r#"..."#;
in tests.rs
so it doesn't need to be a standalone file. You can just skip the expand
step.
This is the last fix then please squash and LGTM!
You will need to rebase as well to fix some of the CI here |
Thank you! |
Adds support for extracting relevant types (such as Structs, Unions, Aliases, etc.) from Rust code.