!FBuJyWXTGcGtHTPphC:nixos.org

Nix Rust

684 Members
Rust154 Servers

Load older messages


SenderMessageTime
29 Jun 2025
@vedantmgoyal:beeper.com@vedantmgoyal:beeper.com left the room.09:48:37
@dramforever:matrix.orgdramforeversanity check, there's no reason here in cargoSetupHook https://github.com/NixOS/nixpkgs/blob/master/pkgs/build-support/rust/hooks/default.nix we only set crt-static if host != target, right?17:16:16
@emilazy:matrix.orgemilyI think Rust already knows for the host platform17:29:20
@emilazy:matrix.orgemilyor something17:29:22
@dramforever:matrix.orgdramforeveroooh that would makes sense17:30:21
@dramforever:matrix.orgdramforeverbut then it also shouldn't hurt right? i want to refactor out the rustflags part into a function so we call it twice, once for host and once for target17:31:03
@qyliss:fairydust.spaceAlyssa RossRedacted or Malformed Event17:34:57
@qyliss:fairydust.spaceAlyssa Rossif you set that to static you break proc macros17:35:01
@qyliss:fairydust.spaceAlyssa Rossso you never want that17:35:03
@dramforever:matrix.orgdramforeveroof thanks for the catch17:35:40
@qyliss:fairydust.spaceAlyssa Rossgetting crt-static to work right took a huge amount of investigation and iteration17:36:23
@qyliss:fairydust.spaceAlyssa Rossso I would be very careful changing anything about it17:36:39
@dramforever:matrix.orgdramforeveryeah i'm gonna preserve this17:39:55
@dramforever:matrix.orgdramforeveruh, idk if this is too cursed to worth supporting but is that one still broken if we cross from musl static to musl dynamic?18:10:12
@qyliss:fairydust.spaceAlyssa RossYou can't build on static platforms in Nixpkgs, to my knowledge18:13:21
@dramforever:matrix.orgdramforevergood enough18:14:24
@cybergui:matrix.orgcybergui joined the room.21:14:10
30 Jun 2025
@atagen:imagisphe.reatagen joined the room.03:04:02
@apyh:matrix.orgapyh joined the room.16:51:26
@apyh:matrix.orgapyh yo dpc (migrated to @dpc:dpc.pw) , if you're still active on this account -
i'm trying to do some crane + maturin stuff and came across a 2 yr old reddit thread where you mentioned you've done some work with it.
do you have any public code showing how it works?
trying to shove a maturin build --offline into a craneLib.buildPackage is causing me to recompile things, and i can't get a nice deterministic name for the output wheel thru maturin.
16:53:37
@fxomt:pub.solar@fxomt:pub.solar changed their display name from fxomt to fxomt (lemmy.dbzer0.com) [he/him].18:18:16
@setthemfree:matrix.orgundltd When I update nixpkgs input in my flake.nix for a Rust package from 24.11 to 25.05, I get a hash mismatch on cargoHash, although I didn't change anything in Cargo.lock. Is that typical? I.e., cargoHash depends not only on Cargo.lock, but also on nixpkgs? 19:36:02
@k900:0upti.meK900In this case yes19:36:44
@k900:0upti.meK900The FOD format has changed19:36:48
@qyliss:fairydust.spaceAlyssa RossBut it shouldn't ever happen again 🤞19:37:28
@setthemfree:matrix.orgundltdI see, thanks!19:38:15
1 Jul 2025
@niklaskorz:matrix.orgniklaskorzzed-editor had a huge build time increase on darwin in the past month (roughly takes twice as long now, 1h on my local Macbook vs 30min before that, 2 hours on hydra vs 1 hour before that), and I wonder if disabling thin LTO (enabled by upstream) + increasing cargo codegen units (set to 1 by upstream) could be a viable improvement? it’s getting kind of tedious to review updates at this point, so any suggestions would be appreciated...07:58:14
@niklaskorz:matrix.orgniklaskorzLinux build time also slightly increased, but only by about ten minutes on hydra, so that is still in an acceptable margin07:58:48
@niklaskorz:matrix.orgniklaskorzthese are the profiles currently set by upstream’s Cargo.toml:08:01:13
@niklaskorz:matrix.orgniklaskorz
[profile.release]
debug = "limited"
lto = "thin"
codegen-units = 1

[profile.release.package]
zed = { codegen-units = 16 }

[profile.release-fast]
inherits = "release"
debug = "full"
lto = false
codegen-units = 16

(not sure where they use release-fast)
08:01:20

Show newer messages


Back to Room ListRoom Version: 6