-
Notifications
You must be signed in to change notification settings - Fork 43
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
Exports from some public mods aren't included in headers #161
Comments
This seems to be dtolnay/inventory#52
From that issue, and https://github.com/dtolnay/inventory/pull/57/files, it is mentioned that using # On macOS
CARGO_PROFILE_DEV_CODEGEN_UNITS=1 cargo r --features=headers
|
Alas, I don't know of a reliable way to handle this; in order for the header generation of So I'll have to close this issue, but feel free to post any further questions you may have, or ideas related to this 🙂 |
Check the attachments for a complete reproduction Cargo project.
I have a lib.rs file that re-exports some crate modules. Like this:
Within the exported mod (my_mod.rs), I have an item called
tokenizer
, which does not end up in the generated header, in spite of it being#[ffi_export]
. This is my primary complaint.However, the plot thickens because, if I then uncomment
useless_enum
from the same file, both items are now included in the generated header.Here is a complete repro case, just as described. It follows the same structure as the QuickStart example, so you can generate the header by running:
safer_ffi_bug_regression.zip
Thank you
The text was updated successfully, but these errors were encountered: