kornelski / cargo-deb

Make Debian packages directly from Rust/Cargo projects
https://lib.rs/cargo-deb
MIT License
431 stars 52 forks source link

[Feature Request]: Parallel Building #90

Open lexi-the-cute opened 1 year ago

lexi-the-cute commented 1 year ago

I'd like to request parallel building. For example, using the same flags as cargo build. An example is using cargo deb -j 4 --target=aarch64-unknown-linux-gnu --variant=rasberrypios when there's 2 logical CPUs.

kornelski commented 1 year ago

cargo deb just runs cargo build, and Cargo builds in parallel by default, i.e. the default for -j is the number of cores you have. So it should be parallel already. Note that it can be parallelized only on the crate level, so if you're building one crate it will just build that one.