From 3210a71e1b0c1123fd61df2cf9ed1773056449da Mon Sep 17 00:00:00 2001 From: mtkennerly Date: Sat, 30 Sep 2023 12:54:49 +0800 Subject: [PATCH] Move '--test-threads 1' to a config file --- .cargo/config | 3 +++ CONTRIBUTING.md | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.cargo/config b/.cargo/config index ba32123..a52fad7 100644 --- a/.cargo/config +++ b/.cargo/config @@ -1,3 +1,6 @@ +[env] +RUST_TEST_THREADS = "1" + [target.x86_64-pc-windows-msvc] rustflags = ["-Ctarget-feature=+crt-static"] diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 8381472..69e9199 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,8 +1,8 @@ ## Development -Rust 1.38.0 or newer is recommended. +Use the latest version of Rust. -* Run tests (avoid concurrency since the integration tests make real services): - * `cargo test -- --test-threads 1` +* Run tests: + * `cargo test` * Activate pre-commit hooks (requires Python) to handle formatting/linting: ``` pip install --user pre-commit