!FBuJyWXTGcGtHTPphC:nixos.org

Nix Rust

711 Members
Rust163 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
8 Aug 2025
@rrose:ungleich.chrorosen changed their display name from Robert to rorosen.12:07:13
@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

Show newer messages


Back to Room ListRoom Version: 6