!FBuJyWXTGcGtHTPphC:nixos.org

Nix Rust

694 Members
Rust155 Servers

Load older messages


SenderMessageTime
22 May 2025
@emilazy:matrix.orgemily -Zbuild-std at least helps… 09:12:39
@k900:0upti.meK900One day we'll have cargo-std-aware09:13:08
@emilazy:matrix.orgemily patch Rust to accept -Zbuild-std on stable, do separate-Rust-crate-packaging, make std one of them 🙃 09:13:14
@k900:0upti.meK900One day09:13:15
@emilazy:matrix.orgemily it'll be awful with the current Rust packaging scheme. because we would build std for every single application 09:13:38
@emilazy:matrix.orgemily oh, I guess not because the FOD is compressed, right? Toma: why do we compress the FOD again? 12:08:43
@emilazy:matrix.orgemilyanyway, maybe we could move the unpacking of the FOD into the actual Rust package build?12:08:54
@qyliss:fairydust.spaceAlyssa RossWe'd need to do fetchCargoVendor2 for that12:13:56
@tomasajt:matrix.orgTomaIt is compressed, because it is how they are downloaded, and it is also not uncompressed so that we don't have file system case sensitiveness bite us with different hashes12:13:59
@qyliss:fairydust.spaceAlyssa Ross(Which doesn't mean we shouldn't)12:14:06
@qyliss:fairydust.spaceAlyssa Rossah right12:14:12
@emilazy:matrix.orgemilyfair12:16:26
@tomasajt:matrix.orgToma
In reply to @tomasajt:matrix.org
It is compressed, because it is how they are downloaded, and it is also not uncompressed so that we don't have file system case sensitiveness bite us with different hashes
Also, just in general, the goal was to have the dumbest possible FOD logic so that under no circumstance will the hash break.
12:16:29
@emilazy:matrix.orgemilyI think moving it into a hook of the actual build would be good?12:16:35
@emilazy:matrix.orgemilythat way nothing gets persisted12:16:47
@tomasajt:matrix.orgTomaIt would be better. Though we'd need some interesting workarounds... An interesting option would be to have the non-FOD part jus be a directory with a symlink to the FOD and a marker file that the hook can detect.12:19:40
@tomasajt:matrix.orgToma* It would be better. Though we'd need some interesting workarounds... An interesting option would be to have the non-FOD part just be a directory with a symlink to the FOD and a marker file that the hook can detect.12:19:59
@tomasajt:matrix.orgTomaIdeally we'd get rid of the double layering, but I don't know how viable that is really at this point... (It's not backportable, there are no marker files in the FOD part, except maybe the way the directories were named)12:22:39
@emilazy:matrix.orgemilywhat kind of workarounds?12:23:28
@emilazy:matrix.orgemilywe can get rid of the double layering if we remove the intermediate derivation, right?12:23:50
@emilazy:matrix.orgemilybecause it will always be the FOD12:24:09
@emilazy:matrix.orgemily or is the problem importCargoLock? 12:24:13
@emilazy:matrix.orgemilyi.e. having to distinguish the two12:24:39
@tomasajt:matrix.orgTomaI guess fetchCargoTarball doesnt exist officially anymore12:25:26
@tomasajt:matrix.orgTomaSo we're more free to assume our own impl12:25:40
@emilazy:matrix.orgemilyright12:26:46
@emilazy:matrix.orgemilyI don't think the symlink and marker is a bad idea though, but maybe it's not necessary?12:26:54
@emilazy:matrix.orgemily wait, can't we just set a passthru on the FOD? 12:30:17
@emilazy:matrix.orgemilyto identify it at eval time?12:30:21
@emilazy:matrix.orgemilythat doesn't break any hashes12:30:23

Show newer messages


Back to Room ListRoom Version: 6