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

chore: generate C bindings for minimap crate only into output dir #100

Merged
merged 1 commit into from
Dec 23, 2024

Conversation

ivan-aksamentov
Copy link
Member

In minimap-sys crate: this removes hardcoded bindings.rs in favor of always dynamically rebuilding them with rust-bindgen. The vendored feature of minimap-sys is removed and is always enabled now.

This is required to avoid clashes when compiling for different platforms and operating systems - the bindings are generated slightly differently on different setups.

It's a best practice anyways.

In `minimap-sys` crate: this removes hardcoded `bindings.rs` in favor of always dynamically rebuilding them with `rust-bindgen`. The `vendored` feature of `minimap-sys` is removed and is always enabled now.

This is required to avoid clashes when compiling for different platforms and operating systems - the bindings are generated slightly differently on different setups.

It's a [best practice](https://rust-lang.github.io/rust-bindgen/tutorial-3.html) anyways.
@ivan-aksamentov ivan-aksamentov merged commit d4494a1 into rust Dec 23, 2024
14 checks passed
@ivan-aksamentov ivan-aksamentov deleted the chore/minimap-bindings branch December 23, 2024 05:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant