After splitting with
form, it's 3948 files.
On my Ryzen box,
cargo build takes 7-8 minutes (with both "dev" and "release" profiles)
With "dev" profile,
rustc that builds this crate grows to more than 16GB RSS / 20GB VSIZE, and
target dir afterwards takes 4GB. The
target dir is even larger when the library is split with
form utility (so for now I've just
rustfmted the generated single
(Interesting: with "release" profile, it's 160MB RSS and 228MB
sscache somehow doesn't help (when I run
cargo build ; cargo clean ; cargo build on a local crate that uses peripheral crate, both
cargo build commands take minutes to complete). Incremental builds without cleaning the
target dir don't help much either.
Any ideas how to work with that?
I thought about splitting the thing into multiple crates or using features to avoid compiling code for unused peripherals. Both approaches require new features in
form, but I can try that. Any other ideas/pointers?