Reduces the minimum compile time a bit by reducing the feature set of syn, making more dependencies optional and changing to dependency resolver version 2. I got inspired by #285 to at least make the build time somewhat better. This reduces it by about 30% on my slow laptop (from ~15 seconds to ~10 seconds), but your mileage may vary and it also depends on what other dependencies are in the mix.
Breaking Change
Increases MSRV to 1.60.0 to get the ? syntax in cargo features. Required for making approx optional.
approx is now optional, but still enabled by default.
The crate will no longer find itself by default if it's renamed in Cargo.tom. It requires the find-crate feature.
Slow Laptop Benchmarks
Slow laptop type Microsoft Surface Pro 7 i5
Slow OS setup Ubuntu in WSL2 in Windows 11
Processor Intel(R) Core(TM) i5-1035G4 CPU @ 1.10GHz 1.50 GHz
Installed RAM 8,00 GB (7,60 GB usable)
System type 64-bit operating system, x64-based processor
rustc 1.62.0 (a8314ef7d 2022-06-27)
Reduces the minimum compile time a bit by reducing the feature set of
syn
, making more dependencies optional and changing to dependency resolver version 2. I got inspired by #285 to at least make the build time somewhat better. This reduces it by about 30% on my slow laptop (from ~15 seconds to ~10 seconds), but your mileage may vary and it also depends on what other dependencies are in the mix.Breaking Change
?
syntax in cargo features. Required for makingapprox
optional.approx
is now optional, but still enabled by default.Cargo.tom
. It requires thefind-crate
feature.Slow Laptop Benchmarks
Commands
Debug mode:
Release mode:
Before
After