Nix Rust | 671 Members | |
| Rust | 151 Servers |
| Sender | Message | Time |
|---|---|---|
| 11 Jun 2026 | ||
| 11:44:01 | ||
| 23:50:42 | ||
| 13 Jun 2026 | ||
| 03:22:51 | ||
| 15 Jun 2026 | ||
| 14:48:11 | ||
| 17:32:11 | ||
| 17 Jun 2026 | ||
Download Screenshot 2026-06-17 at 02.44.02.png | 07:44:55 | |
| I am building a rust package on my remote builders (orb stack vms with nixos [26.11]) but seems most of the work is just running on a single core. It it like this for everyone else, or just me? | 07:45:19 | |
| I have an M4 Mac as host, if that matters | 07:45:36 | |
| Depends on the rustc configuration | 07:46:32 | |
But a lot of projects, especially the 🚀 BLAZING FAST ✨️ ones will force codegen-units=1 to get the bestest performancest | 07:47:02 | |
damn, forgot about that pesky codegen-units setting. sometimes i regret using rust lol | 07:55:13 | |
| it's more for minimal executable size I thought | 08:00:06 | |
| Nope, https://doc.rust-lang.org/rustc/codegen-options/index.html#codegen-units | 09:50:25 | |
| Places like https://github.com/johnthagen/min-sized-rust#reduce-parallel-code-generation-units-to-increase-optimization recommend it for "maximum size reduction optimizations" (and I think that isn't the only place I've seen that suggestion) | 09:52:25 | |
| (Doesn't really matter if it's true, there'll be a few projects finding that and trusting the advice) | 09:53:16 | |
| 18 Jun 2026 | ||
| 18:45:38 | ||
| 18:46:18 | ||
| 19:11:27 | ||
| 22:11:08 | ||
| 22 Jun 2026 | ||
| how is there not a single example of how to set RUST_SRC_PATH when using craneLib.devShell? | 04:47:53 | |
| like, anywhere | 04:47:58 | |
In reply to @colemickens:matrix.orgyeah... i couldn't find one either. but looks like you would just pass that arg and it would get threaded to mkShell. | 05:37:25 | |
| I am not crane-smart enough to figure out how to derive that from crane's toolchain based on the scaffolding I have | 05:38:06 | |
| the random snippets online just grab it from pkgs.rustPlatform which just doens't feel correct at all for crane? | 05:38:23 | |
| If your using nixpkgs to populate craneLib like this in their examples It looks like it would pull cargo, clippy, rustc, and rustfmt from nixpkgs. So I guess the Are you using nixpkgs or another toolchain provider? | 05:58:22 | |
| 08:47:33 | ||
| if you're using both oxalica/rust-overlay and ipetkov/crane, e.g. to pick crane's toolchain from rust-overlay, then you can do something like the following to pick the correct rust src: (shown using different scaffolding than flake-utils because i don't like it)
| 12:47:21 | |
| Thank you both. Both helped me advance my understanding and sort this out, really appreciate you both. | 17:30:49 | |
| 17:44:20 | ||
| 23 Jun 2026 | ||
| 07:44:24 | ||