Skip to content

Commit

Permalink
Maximum amount of parallel jobs for Cargo
Browse files Browse the repository at this point in the history
  • Loading branch information
Xithrius committed Jan 3, 2024
1 parent 4f28a2f commit b8eb8e6
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions site/content/posts/cargo-set-build-jobs.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
title: "Maximum amount of parallel jobs for Cargo"
date: "2024-01-03"
---

Sometimes Cargo makes my CPU cores go to the surface temperature of the sun. To avoid this, set the `build.jobs` integer in `~/.cargo/config.toml` to something below your CPU core count:

```toml
[build]
jobs = 4
```

Source: https://doc.rust-lang.org/cargo/reference/config.html#buildjobs

1 comment on commit b8eb8e6

@vercel
Copy link

@vercel vercel bot commented on b8eb8e6 Jan 3, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

xithrius-cloud – ./

xithrius-cloud-git-main-xithrius.vercel.app
xithrius-cloud-xithrius.vercel.app
xithrius.cloud

Please sign in to comment.