!FBuJyWXTGcGtHTPphC:nixos.org

Nix Rust

662 Members
Rust148 Servers

Load older messages


SenderMessageTime
8 Aug 2025
@kity:kity.wtfproblems changed their profile picture.02:34:43
@glepage:matrix.orgGaétan Lepage

Hi,
I have some trouble building rerun:

Web viewer .wasm built in 279.5s

Generating JS bindings for wasm…
Error: Failed to run wasm-bindgen: cannot import from modules (`env`) with `--no-modules`. This is often because some dependency is calling `std::time::Instant::now()` or similar. You can try diagnosing this with:
wasm2wat /build/source/target_wasm/wasm32-unknown-unknown/web-release/re_viewer.wasm | rg '"env"'
wasm2wat /build/source/target_wasm/wasm32-unknown-unknown/web-release/re_viewer.wasm | rg 'call .now\b' -B 20

You can also try https://rustwasm.github.io/twiggy/usage/command-line-interface/paths.html#twiggy-paths

Any idea?

14:34:53
@kjeremy:matrix.orgkjeremy

I have a cmake project that is also a cargo workspace. So there is a top-level Cargo.lock and multiple Cargo.toml files. How do I build? I'm using:

cargoDeps = rustPlatform.importCargoLock {
    lockFile = "${src.outPath}/Cargo.lock";
};

but at some point nix still tries to download from crates.io and obviously fails

18:56:53
@qyliss:fairydust.spaceAlyssa RossDepends on what your CMake build system is doing18:57:23
@kjeremy:matrix.orgkjeremyIt's nothing exciting: https://github.com/eclipse-zenoh/zenoh-plugin-ros2dds/blob/main/CMakeLists.txt18:57:47
@kjeremy:matrix.orgkjeremy maybe i need to patch the cargo invocation 19:14:19
@kjeremy:matrix.orgkjeremy I figured it out. I had to add rustPlatform.cargoSetupHook 19:26:55
9 Aug 2025
@0x545a:matrix.org0x545a joined the room.15:15:41
@theeasternfurry:beautifulblossomgarden.io.vntheeasternfurry set a profile picture.15:54:54
@dmitrii_s:matrix.orgdmitrii_s joined the room.16:09:51
10 Aug 2025
@theeasternfurry:beautifulblossomgarden.io.vntheeasternfurry joined the room.02:31:17
@yuzuki:matrix.kikuri.moeyuzuki joined the room.09:12:09
11 Aug 2025
@emilazy:matrix.orgemily Toma: is it expected that fetchCargoVendor is super slow or is something weird about my setup? 13:46:41
@tomasajt:matrix.orgToma It is not that speed-optimized, but I don't think it should be that slow. What do you mean by super slow? 1 crate / second? 13:50:14
@emilazy:matrix.orgemilylike waiting >15 minutes for a <2000 line Cargo.lock file to download13:53:14
@emilazy:matrix.orgemilythis is inside a Linux VM remote builder, so it is possible something is screwy there13:53:29
@emilazy:matrix.orgemilyjust wanted to check if I should be surprised or not13:53:41
@emilazy:matrix.orgemily seems it's getting completely stuck on the first tarball it fetches. I have no idea why. downloads instantly with curl inside the VM. might be a Lix passta thing. it fetches a Git repo successfully before that. hmm. I could swear it was just being really slow but not totally hanging yesterday 15:06:43
@emilazy:matrix.orgemily it seems like session.get(…) is never returning 15:06:49
@benjaminsparks:chat.alugha.appBen SparksI'd observed this before as well for a few days back in May / June I think. The vendoring process would slow to a crawl15:14:21
@emilazy:matrix.orgemily
DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): crates.io:443

and then nothing. fun

15:14:24
@emilazy:matrix.orgemilyis that the same building-Linux-package-in-remote-builder-VM-on-macOS config?15:14:50
@benjaminsparks:chat.alugha.appBen SparksI think it was; currently trying to find old messages of mine where I had asked in one nix-related channel if crates.io rate-limited15:16:18
@emilazy:matrix.orgemily May / June makes passta an unlikely culprit too (unless it was late June and you use Lix) 15:17:02
@benjaminsparks:chat.alugha.appBen Sparks
$ nix --version
nix (Lix, like Nix) 2.91.3
15:17:34
@emilazy:matrix.orgemilyon the builder VM too? :)15:17:54
@emilazy:matrix.orgemilywould depend on exact timing then I suppose15:18:12
@benjaminsparks:chat.alugha.appBen SparksI wouldn't rely on this timespan btw until I find further proof of when the issues occurred. I also never found out why this happened; it just "went away" at some point15:19:20
@tomasajt:matrix.orgToma

emily: could you try with the changes in this PR: https://github.com/NixOS/nixpkgs/pull/400865

(while testing if you only build cargoDeps.vendorStaging you won't have many rebuilds)

15:33:57
@tomasajt:matrix.orgTomaCurrently the timeout logic in fetchCargoVendor is pretty bad (not even sure if it's working properly) and this tries to fix it, while also doing some general improvements (at least it tries to)15:34:55

Show newer messages


Back to Room ListRoom Version: 6