!FBuJyWXTGcGtHTPphC:nixos.org

Nix Rust

671 Members
Rust151 Servers

Load older messages


SenderMessageTime
7 Feb 2026
@simonbrandner:matrix.orgŠimon Brandner set a profile picture.16:40:42
@denommus:matrix.orgdenommusnaersk was indeed to blame, the path-info of a naersk package includes everything used by the build. I used crate2nix and it was much smaller. But... crate2nix has some sort of bug where I can't use rust-overlay nor fenix17:14:28
@denommus:matrix.orgdenommusI will now try crane17:15:38
@denommus:matrix.orgdenommuscrane also has a smaller path-info17:48:28
@denommus:matrix.orgdenommusyeah, crane produced a smaller image. It could be even smaller, but crane produces a single derivation out of the entire workspace, while crate2nix generates one derivation per crate. So I can have an image per crate in crate2nix's case. While in crane each image will have all the binaries of the crates18:20:42
@denommus:matrix.orgdenommusso I guess I'll open an issue for crate2nix to fix the issue with fenix and rust-overlay18:21:03
@benjaminsparks:chat.alugha.appBen SparksThe only thing that changed recently is that IFD imports can now choose their rust and cargo versions: https://github.com/nix-community/crate2nix/pull/390 Does following this approach change with crate2nix for you?18:30:19
@benjaminsparks:chat.alugha.appBen Sparks* The thing that would influence this, that changed recently, is that IFD imports can now choose their rust and cargo versions: https://github.com/nix-community/crate2nix/pull/390 Does following this approach change with crate2nix for you?18:30:40
9 Feb 2026
@novedevo:matrix.orgnovedevo changed their display name from Devon to novedevo.18:42:35
@novedevo:matrix.orgnovedevo set a profile picture.18:43:58
@amadaluzia:unredacted.orgamadaluzia removed their profile picture.22:31:11
@amadaluzia:unredacted.orgamadaluzia set a profile picture.22:32:21
10 Feb 2026
@mon:tchncs.depneumatic changed their display name from ribosomerocker to pneumatic.10:28:50
@denommus:matrix.orgdenommusI'm not using IFD11:29:08
@denommus:matrix.orgdenommusas promised, I opened an issue: https://github.com/nix-community/crate2nix/issues/43611:29:31
@denommus:matrix.orgdenommushm, it works with IFD11:39:27
@ret2pop:matrix.nullring.xyzret2pop changed their display name from ret2pop ⚡️ to ret2pop.22:01:38
11 Feb 2026
@denommus:matrix.orgdenommus I think I'll try with IFD, but I still need help with one thing: how do I make the flake read the .sqlx files? I couldn't find this information on Google 12:58:30
@benjaminsparks:chat.alugha.appBen Sparks Which .sqlx files are you talking about? Why should your flake have to read them?= 13:27:31
@benjaminsparks:chat.alugha.appBen Sparks * Which .sqlx files are you talking about? Why should your flake have to read them? 13:27:33
@denommus:matrix.orgdenommus they're generated by cargo sqlx prepare, and are used to validate my queries without a db connection. In theory having those files is perfect for pure builds with sqlx macros 13:28:42
@benjaminsparks:chat.alugha.appBen Sparkscan they not be added to the repository? or are they unwieldy build artifacts13:30:34
@denommus:matrix.orgdenommus that's the thing, they are in the repo, but for some reason crate2nix is not seeing them 13:35:16
@catbrained:tchncs.decatbrained (she/her)Where in the repo are they? They might get filtered out. I haven't user crate2nix myself but I think it applies some filter to the directory to figure out what to include/ignore. I've run into something similar with crane, and I had to explicitly tell it to include certain files13:50:35
@catbrained:tchncs.decatbrained (she/her) * 13:51:08
@denommus:matrix.orgdenommusyeah, I also had to be explicit with crane, hence why I'm asking how to be explicit with crate2nix. The files are in the root directory of the project14:49:29
@benjaminsparks:chat.alugha.appBen Sparkstheyre not in https://github.com/Denommus/crate2nix-sample. which is likely why the flake is not picking them up14:50:36
@benjaminsparks:chat.alugha.appBen Sparksif you've initialised your flake in a folder that represent a git repo, flakes will ignore any files that are not in that repo14:51:01
@denommus:matrix.orgdenommusthat's just a sample to show how the system breaks with rust-overlay if I'm not using IFD, it's unrelated to my actual code14:52:27
@tomasajt:matrix.orgTomaCould some people take a quick look at this fairly simple change to fetchCargoVendor to make it more robust. https://github.com/NixOS/nixpkgs/pull/486983 I think it's good to go, but I don't think it's good to merge things into staging without the approval of others.15:41:12

There are no newer messages yet.


Back to Room ListRoom Version: 6