!FBuJyWXTGcGtHTPphC:nixos.org

Nix Rust

668 Members
Rust150 Servers

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


SenderMessageTime
28 Oct 2025
@crop_tech:matrix.orgcropthank you for clarifying22:39:09
29 Oct 2025
@crop_tech:matrix.orgcrop I switched to fenix with complete toolchain. The problem is that rustfmt (or whatever is the default for formatting) somehow doesn't recognize that the project is written in edition 2024. It fails with an error something along the line "let chains only supported in edition 2024". 11:38:45
@crop_tech:matrix.orgcropThe editor i use is helix11:39:13
@charles:computer.surgeryCharles what's your rustfmt.toml say 14:41:13
@crop_tech:matrix.orgcropI don't have one in the project. Are there other places where i should look?17:10:20
@antifuchs:asf.computerantifuchs Make sure which rustfmt doesn’t pick up an older rustup installation? 17:21:22
@charles:computer.surgeryCharlesthat might be your problem. i'm not sure if rustup cares to read Cargo.toml to figure out the edition18:49:07
@charles:computer.surgeryCharlesyou do at least have the edition set properly in Cargo.toml, yeah?18:49:56
@charles:computer.surgeryCharles* that might be your problem. i'm not sure if rustfmt cares to read Cargo.toml to figure out the edition18:50:52
@charles:computer.surgeryCharles maybe it does if you cargo fmt but not if you rustfmt, you could try both and see what happens and then check how helix is invoking the formatter 18:51:26
@crop_tech:matrix.orgcrop Yes. I have all the expected binaries. And a cargo toml with edition 2024. And rustfmt print-config shows the wrong edition. But because i kept working it doesn't fail anymore 18:51:49
@crop_tech:matrix.orgcropCargo fmt as well18:52:20
@crop_tech:matrix.orgcrop At least i know now what i should configure if i run into the problem again. Should not be nix specific 18:53:18

Show newer messages


Back to Room ListRoom Version: 6