Skip to content

Commit

Permalink
Make debug builds use nightly and parallel frontend compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
theRookieCoder committed Feb 3, 2024
1 parent 52cd455 commit f0d224a
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 35 deletions.
65 changes: 40 additions & 25 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ octocrab = { version = "0.33", default-features = false, features = [
reqwest = { version = "0.11", default-features = false, features = [
"rustls-tls",
] }
tokio = { version = "1.35", default-features = false, features = [
tokio = { version = "1.36", default-features = false, features = [
"rt-multi-thread",
"macros",
] }
Expand Down
18 changes: 9 additions & 9 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@ set windows-powershell := true

# Install Ferium to cargo's binary folder
install:
cargo install --force --path .
cargo install --force --path .

# Install Ferium to cargo's binary folder but debug
install-dev:
cargo install --debug --force --path .
# Install Ferium to cargo's binary folder, but faster compilation (debug, nightly, parallel frontend)
install-dev $RUSTFLAGS="-Z threads=16":
cargo +nightly install --offline --debug --force --path .

# Delete all build and test artefacts
clean:
cargo clean
rm -rf tests/mods
rm -rf tests/md_modpack
rm -rf tests/cf_modpack
rm -rf tests/configs/running
cargo clean
rm -rf tests/mods
rm -rf tests/md_modpack
rm -rf tests/cf_modpack
rm -rf tests/configs/running

0 comments on commit f0d224a

Please sign in to comment.