jordanbray / chess

A rust library to manage chess move generation
https://jordanbray.github.io/chess/
MIT License
231 stars 54 forks source link

Enable optimization on the build script no matter which profile is used for the crate itself. This should fix #58. #67

Closed KarelPeeters closed 1 year ago

KarelPeeters commented 2 years ago

Cargo by default does not optimizer the build script, but it's easy to change that setting, see https://doc.rust-lang.org/cargo/reference/profiles.html#build-dependencies.

KarelPeeters commented 2 years ago

The point of this PR is to fix the slow build times described in #58, for me it takes the runtime of the build script from 2 minutes down to less than a second.