| 4 Aug 2025 |
| kfiz joined the room. | 20:33:12 |
| kfiz changed their display name from kfiz 🏳️⚧️ to kfiz. | 21:18:59 |
| impqxr joined the room. | 21:52:01 |
| 5 Aug 2025 |
| isabel changed their profile picture. | 09:49:06 |
| kfiz set a profile picture. | 20:14:27 |
| 6 Aug 2025 |
| vidariondr set a profile picture. | 18:30:52 |
| 7 Aug 2025 |
| The Little Waltz joined the room. | 17:31:33 |
damccull | How do I find out what "buildRustPackage" has as far as options? Like, I see it has a 'buildFeatures' option by looking at someone else's code, but does it have a buildPackages option, for instance? Where would I look to find that out?
Basically I want to specify which particular binary in the cargo.toml to build. Normally would do this with cargo build --package mybin but not sure how in the buildRustPackage helper.
| 23:10:42 |
damccull | * How do I find out what "buildRustPackage" has as far as options? Like, I see it has a 'buildFeatures' option by looking at someone else's code, but does it have a cargoPackages option, for instance? Where would I look to find that out?
Basically I want to specify which particular binary in the cargo.toml to build. Normally would do this with cargo build --package mybin but not sure how in the buildRustPackage helper.
| 23:12:04 |
dramforever | In reply to @damccull:matrix.org
How do I find out what "buildRustPackage" has as far as options? Like, I see it has a 'buildFeatures' option by looking at someone else's code, but does it have a cargoPackages option, for instance? Where would I look to find that out?
Basically I want to specify which particular binary in the cargo.toml to build. Normally would do this with cargo build --package mybin but not sure how in the buildRustPackage helper.
maybe buildAndTestSubdir? it's a bit confusingly documented i agree | 23:18:36 |
damccull | So this is what I'm using in my flake:
rustPackage =
package: features:
(pkgs.makeRustPlatform {
cargo = pkgs.rust-bin.stable.latest.minimal;
rustc = pkgs.rust-bin.stable.latest.minimal;
}).buildRustPackage
{
inherit (cargoToml.package) name version;
src = ./.;
cargoLock.lockFile = ./Cargo.lock;
buildFeatures = features;
buildInputs = rustBuildInputs;
nativeBuildInputs = [ rustToolchain ];
cargoInstallFlags = [
"--package"
package
];
};
I want to run cargo build --package dioxus-cli --features no-downloads specifically. Then copy the bin to the right location for future use, but first I just want to get it building.
| 23:23:23 |
| 8 Aug 2025 |
damccull | Think I've got it. | 00:05:10 |
| rorosen changed their display name from Robert to rorosen. | 12:07:13 |
| problems changed their profile picture. | 02:34:43 |
Gaé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 | 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 |
Alyssa Ross | Depends on what your CMake build system is doing | 18:57:23 |
kjeremy | It's nothing exciting: https://github.com/eclipse-zenoh/zenoh-plugin-ros2dds/blob/main/CMakeLists.txt | 18:57:47 |
kjeremy | maybe i need to patch the cargo invocation | 19:14:19 |
kjeremy | I figured it out. I had to add rustPlatform.cargoSetupHook | 19:26:55 |
| 9 Aug 2025 |
| 0x545a joined the room. | 15:15:41 |
| theeasternfurry set a profile picture. | 15:54:54 |
| dmitrii_s joined the room. | 16:09:51 |
| 10 Aug 2025 |
| theeasternfurry joined the room. | 02:31:17 |
| yuzuki joined the room. | 09:12:09 |
| 11 Aug 2025 |
emily | Toma: is it expected that fetchCargoVendor is super slow or is something weird about my setup? | 13:46:41 |
Toma |
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 |
emily | like waiting >15 minutes for a <2000 line Cargo.lock file to download | 13:53:14 |
emily | this is inside a Linux VM remote builder, so it is possible something is screwy there | 13:53:29 |
emily | just wanted to check if I should be surprised or not | 13:53:41 |