Skip to content

Commit ff306cf

Browse files
committed
Limit local num jobs for tests
1 parent 3043a5d commit ff306cf

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

.vscode/tasks.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
{
55
"label": "rust: cargo test",
66
"type": "shell",
7-
"command": "cargo test",
7+
"command": "cargo test --jobs 4",
88
"group": {
99
"kind": "build",
1010
// "isDefault": true
@@ -36,7 +36,7 @@
3636
{
3737
"label": "rust: cargo check",
3838
"type": "shell",
39-
"command": "cargo check",
39+
"command": "cargo check --jobs 4",
4040
"group": {
4141
"kind": "build",
4242
},

Cargo.toml

-3
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ version = "0.1.0"
44
edition = "2021"
55
rust-version = "1.83"
66

7-
[build]
8-
jobs = 4
9-
107
[dependencies]
118
libp2p = { version = "0.53", features = [
129
"tcp",

justfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export LOG_LEVEL := env_var_or_default("RUST_LOG", "info")
44
default: test
55

66
test:
7-
RUST_LOG={{LOG_LEVEL}} cargo test
7+
RUST_LOG={{LOG_LEVEL}} cargo test --jobs 4
88

99
build:
1010
cargo build
@@ -14,4 +14,4 @@ run config="config.toml":
1414
RUST_LOG={{LOG_LEVEL}} cargo run -- --config={{config}}
1515

1616
check:
17-
cargo check
17+
cargo check --jobs 4

0 commit comments

Comments
 (0)