You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am working on a project that uses bindgen to generate a pretty significant amount of bindings (produces ~35k lines of rust). I noticed that this process was very slow in debug mode (5 minutes), and very fast in release mode (10 seconds). Here is an example of what I mean (both release and debug have been built before, so only the build.rs actions are re-triggered):
In my opinion, it would make sense to default to using release mode for build.rs scripts, perhaps that could be overriden in the cargo.toml. In either way, it would be nice to have a way to set release mode for build.rs independently from the host crate.
The text was updated successfully, but these errors were encountered:
This could tie maybe into Firefox’s request to have different settings that are currently in "profiles" (specifically enabling debug assertions and checked arithmetic) for different crates.
Hello,
I am working on a project that uses bindgen to generate a pretty significant amount of bindings (produces ~35k lines of rust). I noticed that this process was very slow in debug mode (5 minutes), and very fast in release mode (10 seconds). Here is an example of what I mean (both release and debug have been built before, so only the build.rs actions are re-triggered):
For reference, you can see the setup in this repo: https://github.com/jamesmunns/nrf52dk-sys (let me know if you need help reproducing, this repo is still a WIP).
In my opinion, it would make sense to default to using release mode for
build.rs
scripts, perhaps that could be overriden in thecargo.toml
. In either way, it would be nice to have a way to set release mode forbuild.rs
independently from the host crate.The text was updated successfully, but these errors were encountered: