!FBuJyWXTGcGtHTPphC:nixos.org

Nix Rust

639 Members
Rust147 Servers

Load older messages


SenderMessageTime
1 Nov 2025
@emilazy:matrix.orgemilysince IIRC Rust only supports the last couple LLVM versions17:16:48
@emilazy:matrix.orgemilyof course this will also be a problem for Mozilla…17:16:54
@ihar.hrachyshka:matrix.orgIhar Hrachyshkathey are still on llvm1917:18:14
@ihar.hrachyshka:matrix.orgIhar Hrachyshkalooking at adopting 20 I think17:18:19
@ihar.hrachyshka:matrix.orgIhar Hrachyshkafun fact - mozilla dude had to compile 21 himself because they apparently don't release builds of 21 for macos yet?17:18:53
@emilazy:matrix.orgemilyI thought they switched to 20 already.17:20:39
@emilazy:matrix.orgemilybut are they on an old Rust then? because I'd be surprised if latest Rust supports LLVM 1917:20:51
@ihar.hrachyshka:matrix.orgIhar Hrachyshkahttps://bugzilla.mozilla.org/show_bug.cgi?id=192325517:23:02
@emilazy:matrix.orgemily fyi, this is the function: https://searchfox.org/firefox-main/source/image/encoders/png/nsPNGEncoder.cpp#718. I am wondering if something dodgy is going on with alignment here. (perhaps → #mozilla:nixos.org) 17:23:39
@ihar.hrachyshka:matrix.orgIhar Hrachyshkatheir rust policy: https://github.com/mozilla-firefox/firefox/blob/main/docs/writing-rust-code/update-policy.md17:26:08
@ihar.hrachyshka:matrix.orgIhar HrachyshkaFirefox 143 Rust 1.86.0 1.82.0 Firefox 144 Rust 1.89.0 ?17:27:08
@ihar.hrachyshka:matrix.orgIhar Hrachyshkabisect for llvm would be 15 steps if all goes well (I don't know how often I'd need to skip in the process)17:35:44
@emilazy:matrix.orgemilybetween our 20.x package tag and our 21.x package tag I assume?17:51:15
@ihar.hrachyshka:matrix.orgIhar Hrachyshkayes.17:52:36
@glepage:matrix.orgGaétan Lepage changed their profile picture.22:53:12
@glepage:matrix.orgGaétan Lepage changed their profile picture.22:54:12
2 Nov 2025
@abbhey:matrix.orgp2p joined the room.01:27:51
@yoquec.com:matrix.orgyoquec joined the room.12:05:00
@dawnofmidnight:catgirl.cloud@dawnofmidnight:catgirl.cloud changed their display name from whispers to whispers (it/fae).17:58:07
@amadaluzia:unredacted.orgamadaluzia joined the room.22:29:53
3 Nov 2025
@kttns0ut:matrix.org@kttns0ut:matrix.org joined the room.10:14:55
@crop_tech:matrix.orgcropis there a declarative alternative to cargo install?10:15:23
@acidbong:envs.netAcid Bong
In reply to @crop_tech:matrix.org
is there a declarative alternative to cargo install?

write a recipe with rustPlatform.buildRustPackage and nix build it

except it's not an alternative, it's a Nixpkgs builder exactly for Cargo

10:21:31
@crop_tech:matrix.orgcrop

i am trying to build rustfilt with this:

  rustfilt = pkgs.rustPlatform.buildRustPackage rec {
    pname = "rustfilt";
    version = "0.2.1";

    src = pkgs.fetchCrate {
      inherit pname version;
      sha256 = "sha256-Xo6qM2qdzkvoLkOsxksKdpi1rkpBKPGrPxz4zJ3EVyY=";
    };

    cargoHash = "";
    cargoDepsName = pname;
  };

but the problem is that the package doesn't contain a cargo lock file
so it fails in fetch-cargo-vendor-util

11:26:41
@crop_tech:matrix.orgcropi tried to use the src from github but i now run into this problem: https://github.com/NixOS/nixpkgs/issues/39287212:41:11
@crop_tech:matrix.orgcropok solved by switching to master and not use the taged version12:49:36
@acidbong:envs.netAcid Bong
In reply to @crop_tech:matrix.org

i am trying to build rustfilt with this:

  rustfilt = pkgs.rustPlatform.buildRustPackage rec {
    pname = "rustfilt";
    version = "0.2.1";

    src = pkgs.fetchCrate {
      inherit pname version;
      sha256 = "sha256-Xo6qM2qdzkvoLkOsxksKdpi1rkpBKPGrPxz4zJ3EVyY=";
    };

    cargoHash = "";
    cargoDepsName = pname;
  };

but the problem is that the package doesn't contain a cargo lock file
so it fails in fetch-cargo-vendor-util

fetch the crate (or clone the repo), generate the lockfile (cargo generate-lockfile), put the lockfile in your nix config and change cargo* attrs to cargoLock.lockFile = ./Cargo.lock;
13:06:25
@makuru:catgirl.cloudMakuru Why does rustc build for me but fenix not? 15:35:46
@makuru:catgirl.cloudMakuruHere the flake:15:36:16
@makuru:catgirl.cloudMakuruDownload flake.nix15:36:16

Show newer messages


Back to Room ListRoom Version: 6