Rust Tips
Published on
Last updated on
Technical
Rust disable parallel build and test
recently I am build a rust application using claude code on a remote VPS. but the remote VPS server is not so powerfull, when cargo starts to build, it will consume all resource and make the server irresponsive, so i have to disable the parellel build and test. though it will become slower but will not exhaust all the server.
to configure this, add or update config file ~/.cargo/config.toml
[build]jobs = 1
[env]RUST_TEST_THREADS = "1"