!FBuJyWXTGcGtHTPphC:nixos.org

Nix Rust

672 Members
Rust149 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
3 Dec 2025
@rosssmyth:matrix.orgrosssmyth

For an example of the caching, you can see what I did with Wild. Basically the assumption is "the Cargo.lock and flake.lock files do not change very often (compared to the rest of the souce)"

So there's a dedicated job that refreshes the cache when the lockfiles change
Then another job for running with the cached dependencies
And a cron job to periodically update the flake lockfile

22:37:03
@rosssmyth:matrix.orgrosssmyth You can use nightly and beta with buildRustPackage just as easily as the other options, so I wouldn't really say that's an advantage. It's even shown in the reference how to 22:38:21
@rosssmyth:matrix.orgrosssmythYou just can't in Nixpkgs22:38:34
@neobrain:matrix.orgneobrain rosssmyth: How do you handle day-to-day development? Do you enter a nix shell or do you always nix run/build? If it's purely the former, I'm guessing the main benefit of the caching is for CI? 22:39:26
@neobrain:matrix.orgneobrain * rosssmyth: How do you handle day-to-day development? Do you enter a nix shell (and then use Cargo manually) or do you always nix run/build? If it's purely the former, I'm guessing the main benefit of the caching is for CI? 22:39:45
@rosssmyth:matrix.orgrosssmyth The packages that allow it are rust-overlay and the other one I can't remember
https://nixos.org/manual/nixpkgs/unstable/#using-rust-nightly-in-a-derivation-with-buildrustpackage
22:40:03
@rosssmyth:matrix.orgrosssmythGenerally both. The caching in CI is pretty much always a win, then caching when I'm just doing day-to-day dev is also great cause I always like to verify that things build alright in the sandbox when I'm developing 22:41:26
@marienz:matrix.orgMarien Zwart
In reply to @rosssmyth:matrix.org
The packages that allow it are rust-overlay and the other one I can't remember
https://nixos.org/manual/nixpkgs/unstable/#using-rust-nightly-in-a-derivation-with-buildrustpackage
https://github.com/nix-community/fenix ?
22:42:22
@rosssmyth:matrix.orgrosssmythyeah22:42:30
@neobrain:matrix.orgneobrainI see, makes sense. Thanks for the explanation!22:43:29
4 Dec 2025
@i-am-logger:matrix.orgIdo Samuelson joined the room.01:45:35
@onur-ozkan:matrix.orgonur-ozkan joined the room.04:20:40

Show newer messages


Back to Room ListRoom Version: 6