Skip to content
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

Feature: stable header generation #77

Merged

Conversation

danielhenrymantilla
Copy link
Collaborator

@danielhenrymantilla danielhenrymantilla commented Oct 14, 2021

This makes the generated header feature fixed-order iteration over the #[ffi_export]-ed functions (sorted by name), to palliate the lack of order-of-iteration guarantees from the internal inventory crate. For the rare case where people liked the previous heuristic better, there is a way to opt out of this new heurstic, through the .stable_header(false) adaptor on the builder.

This allows the so-generated header files to be tracked into, say, git and whatnot.

@danielhenrymantilla danielhenrymantilla added the K-feature Kind: proposed new code to implement new behaviour label Oct 14, 2021
@danielhenrymantilla danielhenrymantilla self-assigned this Oct 14, 2021
This makes the generated header feature fixed-order iteration
over the `#[ffi_export]`-ed functions (sorted by name), to
palliate the lack of order-of-iteration guarantees from the internal
`inventory` crate.

This allows the so-generated header files to be tracked into, say, `git`
and whatnot.
@danielhenrymantilla danielhenrymantilla force-pushed the feature/fixed-order-header-generation branch from 6f6b8a2 to 5f46194 Compare October 14, 2021 18:26
@danielhenrymantilla danielhenrymantilla merged commit f8c3115 into ditto-node-js Oct 14, 2021
@danielhenrymantilla danielhenrymantilla deleted the feature/fixed-order-header-generation branch October 14, 2021 18:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
K-feature Kind: proposed new code to implement new behaviour
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant