!FBuJyWXTGcGtHTPphC:nixos.org

Nix Rust

671 Members
Rust154 Servers

Load older messages


SenderMessageTime
21 Oct 2025
@hexa:lossy.networkhexa * but that would imply patching cargo\_metadata 23:21:26
@hexa:lossy.networkhexa * but that would imply patching cargo_metadata 23:21:28
22 Oct 2025
@niklaskorz:matrix.orgniklaskorzSeeing what's it used for, i.e., determining the include path inside another crate, it seems easier to just replace the whole detection instead (so just the invocation of that function)06:56:07
@niklaskorz:matrix.orgniklaskorz* Seeing what it's used for, i.e., determining the include path inside another crate, it seems easier to just replace the whole detection instead (so just the invocation of that function)06:56:30
@niklaskorz:matrix.orgniklaskorztesting that now, let's see07:52:35
@niklaskorz:matrix.orgniklaskorzit's still building so I guess that's a good sign08:10:06
@qyliss:fairydust.spaceAlyssa Rossthanks for the ping. I'll look today. Catching up after having been sick.09:30:07
@niklaskorz:matrix.orgniklaskorz * let's give Alyssa Ross some more time to react but otherwise I'd merge it tomorrow 09:30:42
@niklaskorz:matrix.orgniklaskorz hexa: build passing 👀 09:34:58
@niklaskorz:matrix.orgniklaskorzgrafik.png
Download grafik.png
09:35:32
@niklaskorz:matrix.orgniklaskorzsending the diff as a PR review in a moment09:36:07
23 Oct 2025
@niklaskorz:matrix.orgniklaskorz https://nvd.nist.gov/vuln/detail/CVE-2025-62518 22:04:02
@niklaskorz:matrix.orgniklaskorz"tarmageddon"22:04:25
@niklaskorz:matrix.orgniklaskorzDoesn't really seem to be used outside uv fortunately (which was already bumped to the fixed release)22:08:43
@niklaskorz:matrix.orgniklaskorzOh nvm we do have some other affected Rust packages (that don't have a fixed release)22:10:06
@niklaskorz:matrix.orgniklaskorz ripgrep-all at least 22:11:37
@niklaskorz:matrix.orgniklaskorz

This security flaw affects not only projects using async-tar but also tokio-tar, an extremely popular fork with over 7 million downloads on crates.io that has also been abandoned.

22:13:27
@niklaskorz:matrix.orgniklaskorzoh no22:13:29
@benjaminsparks:chat.alugha.appBen Sparkscould this be made into a ZHF sidequest?22:56:17
@hexa:lossy.networkhexayou mean poking upstreams to relock? 😄 22:58:08
@hexa:lossy.networkhexathat's a very exciting idea for a "sidequest"22:58:25
@hexa:lossy.networkhexa* that's a very "exciting" idea for a "sidequest"22:58:40
24 Oct 2025
@benjaminsparks:chat.alugha.appBen Sparks
In reply to @hexa:lossy.network
that's a very exciting idea for a "sidequest"
Well it's that or Cmake 4 :P
11:10:16
@benjaminsparks:chat.alugha.appBen Sparks or we can start now, since niklaskorz was kind enough to make a tracking issue
https://github.com/NixOS/nixpkgs/issues/455265
18:59:31
26 Oct 2025
@sliedes:hacklab.fiSami Liedes

I'm confused. And a Rust (ecosystem) beginner. Is there a way to run cargo udeps on NixOS on a project that uses the stable toolchain? And should I use rustup or not use rustup?

I've been developing with a direnv+flake that does pkgs.rustPlatform.buildRustPackage and for devShells takes inputsFrom that derivation. And setting RUST_SRC_PATH and removing any $HOME/.cargo/bin entries from PATH in my shellHook—not sure if the latter is right or not, and I also don't 100% remember why I've done it, but I would assume any dynamically linked binaries there to rot when the store gets GCd.

For cargo udeps, I'm told I should use cargo +nightly udeps, which tells me to use rustup, so I try rustup run nightly cargo udeps. I suspect that fails because it invokes rustc, expecting it to be the nightly toolchain rustc, or something? It outputs several error: the option Z is only accepted on the nightly compiler.

I noticed there's also a cargo-udeps packaged in nixpkgs (how if it requires nightly??), but nix-shell -p cargo-udeps --command "cargo udeps" outputs the same errors.

15:33:09
@sliedes:hacklab.fiSami Liedes *

I'm confused. And a Rust (ecosystem) beginner. Is there a way to run cargo udeps on NixOS on a project that uses the stable toolchain? And should I use rustup or not use rustup?

I've been developing with a direnv+flake that does pkgs.rustPlatform.buildRustPackage and for devShells takes inputsFrom that derivation. And setting RUST_SRC_PATH and removing any $HOME/.cargo/bin entries from PATH in my shellHook—not sure if the latter is right or not, and I also don't 100% remember why I've done it, but I would assume any dynamically linked binaries there to rot when the store gets GCd.

For cargo udeps, I'm told I should use cargo +nightly udeps, which tells me to use rustup, so I try rustup run nightly cargo udeps. I suspect that fails because it invokes rustc, expecting it to be the nightly toolchain rustc, or something? It outputs several error: the option \Z` is only accepted on the nightly compiler`.

I noticed there's also a cargo-udeps packaged in nixpkgs (how if it requires nightly??), but nix-shell -p cargo-udeps --command "cargo udeps" outputs the same errors.

15:33:34
@sliedes:hacklab.fiSami Liedes *

I'm confused. And a Rust (ecosystem) beginner. Is there a way to run cargo udeps on NixOS on a project that uses the stable toolchain? And should I use rustup or not use rustup?

I've been developing with a direnv+flake that does pkgs.rustPlatform.buildRustPackage and for devShells takes inputsFrom that derivation. And setting RUST_SRC_PATH and removing any $HOME/.cargo/bin entries from PATH in my shellHook—not sure if the latter is right or not, and I also don't 100% remember why I've done it, but I would assume any dynamically linked binaries there to rot when the store gets GCd.

For cargo udeps, I'm told I should use cargo +nightly udeps, which tells me to use rustup, so I try rustup run nightly cargo udeps. I suspect that fails because it invokes rustc, expecting it to be the nightly toolchain rustc, or something? It outputs several error: the option `Z` is only accepted on the nightly compiler.

I noticed there's also a cargo-udeps packaged in nixpkgs (how if it requires nightly??), but nix-shell -p cargo-udeps --command "cargo udeps" outputs the same errors.

15:33:50
@sliedes:hacklab.fiSami Liedes(I don't know if this is a related problem, but my rustup unstable toolchain fails to link because it tries to invoke a GCd ld-wrapper from the store.)15:34:38
@charles:computer.surgeryCharles

Is there a way to run cargo udeps on NixOS on a project that uses the stable toolchain?

No idea, not familiar with udeps

And should I use rustup or not use rustup?

I would recommend against it and instead recommend either fenix or rust-overlay

I've been developing with a direnv+flake that does pkgs.rustPlatform.buildRustPackage and for devShells takes inputsFrom that derivation. And setting RUST_SRC_PATH

This all sounds fine

and removing any $HOME/.cargo/bin entries from PATH in my shellHook—not sure if the latter is right or not, and I also don't 100% remember why I've done it, but I would assume any dynamically linked binaries there to rot when the store gets GCd.

Yeah you'll hit issues compiling/running stuff that gets installed there. Instead of doing shellHook crimes you should simply never have anything in this directory in the first place. For example, never use cargo install, always package it with nix (if no existing package is available) and install it that way

For cargo udeps, I'm told I should use cargo +nightly udeps, which tells me to use rustup

Yeah, the +toolchain syntax is a rustup thing, only works on rustup shim binaries for cargo and such, not the actual regular binaries. You can use fenix or rust-overlay to get a nightly toolchain, if you want to use stable most of the time you could have two devshells, one for stable and one for nightly

I noticed there's also a cargo-udeps packaged in nixpkgs (how if it requires nightly??)

It probably doesn't require nightly to build, just to run, but that's a guess. Also I think there are some things in nixpkgs that do actually need nightly to build, so that's not too crazy

but nix-shell -p cargo-udeps --command "cargo udeps" outputs the same errors.

Likely because it uses the toolchain from your ambient environment (which in this case is a stable toolchain) rather than e.g. being wrapped to force a particular toolchain (which would be awful UX-wise, so that's why it's not done that way)

17:20:25
27 Oct 2025
@let_rec:floss.uzrec set a profile picture.11:27:24

Show newer messages


Back to Room ListRoom Version: 6