I'm experiencing long consecutive build times when embedding Servo as part of my binary. For example, using this tutorial for embedding Servo, after the initial build is done, any modification to my code will require 40s+ to rebuild the binary on 4th gen quad-core i7:
Here is sample output from Cargo:
❯ cargo build
Finished dev [unoptimized + debuginfo] target(s) in 0.1 secs
❯ touch src/main.rs
❯ cargo build
Compiling servo-embedding-example v0.1.0
Finished dev [unoptimized + debuginfo] target(s) in 57.9 secs
I'm running a very recent nightly toolchain:
❯ rustc --version
rustc 1.25.0-nightly (15a1e2844 2018-01-20)
❯ cargo --version
cargo 0.26.0-nightly (6a8eb71f6 2018-01-13)
And incremental build is on:
❯ echo $CARGO_INCREMENTAL
1
I'm not planning on updating Servo often but I need it my application. Is there any way to speed up the build time?