!FBuJyWXTGcGtHTPphC:nixos.org

Nix Rust

671 Members
Rust154 Servers

Load older messages


SenderMessageTime
27 Oct 2025
@glepage:matrix.orgGaétan Lepage

cargo-nextest is broken on aarch64-darwin:

error: custom attribute panicked
  --> nextest-runner/src/usdt.rs:63:1
   |
63 | #[usdt::provider(provider = "nextest")]
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: message: called `Result::unwrap()` on an `Err` value: IO(Os { code: 2, kind: NotFound, message: "No such file or directory" })

error[E0433]: failed to resolve: could not find `usdt_probes` in `usdt`
   --> nextest-runner/src/usdt.rs:205:23
    |
205 |           $crate::usdt::usdt_probes::run__done!(|| {
    |                         ^^^^^^^^^^^ could not find `usdt_probes` in `usdt`
    |
   ::: nextest-runner/src/runner/imp.rs:381:9
    |
381 | /         crate::fire_usdt!(UsdtRunDone {
382 | |             run_id: self.run_id,
383 | |             profile_name: self.profile.name().to_owned(),
384 | |             total_tests: run_stats.initial_run_count,
...   |
389 | |             paused_nanos: _stopwatch_end.paused.as_nanos() as u64,
390 | |         });
    | |__________- in this macro invocation
    |
    = note: this error originates in the macro `crate::fire_usdt` (in Nightly builds, run with -Z macro-backtrace for more info)
13:17:59
@glepage:matrix.orgGaétan Lepage Bisected to https://github.com/NixOS/nixpkgs/pull/455250 13:29:19
@quadradical:federated.nexusQuadRadical (Ping) i reccomens using crane combined with fenix, i found it great myself. perhaps fenix alone is enough for you though. 13:52:15
@crop_tech:matrix.orgcrop
In reply to @quadradical:federated.nexus
i reccomens using crane combined with fenix, i found it great myself. perhaps fenix alone is enough for you though.
How would you switch between toolchains?
15:22:02
@charles:computer.surgeryCharlesmultiple devshells15:26:56
@quadradical:federated.nexusQuadRadical (Ping)yes, would work18:50:07
@quadradical:federated.nexusQuadRadical (Ping)for that fenix only is enough18:50:15
@quadradical:federated.nexusQuadRadical (Ping) but you can also for your unit tests, use crane with fenix, and then just use nix flake check to run your tests 18:50:29
@multisn8:matrix.orgmultisn8 (any) changed their display name from Multi (any) to multisn8 (any).20:55:00
28 Oct 2025
@rasmus:fricloud.dk@rasmus:fricloud.dk left the room.14:35:52
@crop_tech:matrix.orgcropa follow up question to yesterdays question. i use currently stable rust. because i want that every code i write to work on stable. i am only interested in unstable for things like miri and instrumentation (for test code coverage). ... when i choose nightly in my devenv i think there is only a very small chance that my code is treated differently compared to stable right?22:03:46
@dawnofmidnight:catgirl.cloud@dawnofmidnight:catgirl.cloudyeah, pretty much. differences in behavior are almost always either a bug (in rust) or a fix (which you'll get in a few weeks on stable, and you probably want)22:31:19
@dawnofmidnight:catgirl.cloud@dawnofmidnight:catgirl.cloud* yeah, pretty much. differences in behavior are almost always either a bug (in rust itself) or a fix (which you'll get in a few weeks on stable, and you probably want)22:31:39
@dawnofmidnight:catgirl.cloud@dawnofmidnight:catgirl.cloud * yeah, pretty much. differences in behavior are almost always either a bug (in rust itself) or a fix (which you'll get in a few weeks on stable, and you probably want)
(obviously this no longer holds true when you opt into unstable features with #![feature(...)] or -Z and such, but this is true for already-stable things)
22:34:04
@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
30 Oct 2025
@quadradical:federated.nexusQuadRadical (Ping) changed their profile picture.19:10:31
31 Oct 2025
@creepinson:matrix.orgTheo Paris joined the room.01:55:33
@uie:matrix.orguie joined the room.11:57:33

Show newer messages


Back to Room ListRoom Version: 6