badboy / mdbook-mermaid

A preprocessor for mdbook to add mermaid support
Mozilla Public License 2.0
306 stars 32 forks source link

Cargo.toml: add `default-features = false` to reduce unused dependency #21

Closed gifnksm closed 2 years ago

gifnksm commented 2 years ago

Disabled some unused default features in the dependency crate. This change reduces the number of dependency crates and thus compile time.

Before this change:

$ rg -cF '[[package]]' Cargo.lock
223
$ cargo clean; time cargo build --release -q -j8
cargo build --release -q -j8  255.32s user 12.72s system 670% cpu 39.998 total

After this change:

$ rg -cF '[[package]]' Cargo.lock
97
$ cargo clean; time cargo build --release -q -j8
cargo build --release -q -j8  144.88s user 5.80s system 470% cpu 32.032 total