Nix Rust | 651 Members | |
| Rust | 147 Servers |
| Sender | Message | Time |
|---|---|---|
| 6 Aug 2025 | ||
| 18:30:52 | ||
| 7 Aug 2025 | ||
| 17:31:33 | ||
| 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 | 23:10:42 | |
| * 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 | 23:12:04 | |
In reply to @damccull:matrix.orgmaybe buildAndTestSubdir? it's a bit confusingly documented i agree | 23:18:36 | |
| So this is what I'm using in my flake:
I want to run | 23:23:23 | |
| 8 Aug 2025 | ||
| Think I've got it. | 00:05:10 | |
| 12:07:13 | ||
| 02:34:43 | ||
| Hi,
Any idea? | 14:34:53 | |
| 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:
but at some point nix still tries to download from crates.io and obviously fails | 18:56:53 | |
| Depends on what your CMake build system is doing | 18:57:23 | |
| It's nothing exciting: https://github.com/eclipse-zenoh/zenoh-plugin-ros2dds/blob/main/CMakeLists.txt | 18:57:47 | |
maybe i need to patch the cargo invocation | 19:14:19 | |
I figured it out. I had to add rustPlatform.cargoSetupHook | 19:26:55 | |
| 9 Aug 2025 | ||
| 15:15:41 | ||
| 15:54:54 | ||
| 16:09:51 | ||
| 10 Aug 2025 | ||
| 02:31:17 | ||
| 09:12:09 | ||
| 11 Aug 2025 | ||
Toma: is it expected that fetchCargoVendor is super slow or is something weird about my setup? | 13:46:41 | |
| 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 | |
| like waiting >15 minutes for a <2000 line Cargo.lock file to download | 13:53:14 | |
| this is inside a Linux VM remote builder, so it is possible something is screwy there | 13:53:29 | |
| just wanted to check if I should be surprised or not | 13:53:41 | |
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 | |
it seems like session.get(…) is never returning | 15:06:49 | |
| I'd observed this before as well for a few days back in May / June I think. The vendoring process would slow to a crawl | 15:14:21 | |
and then nothing. fun | 15:14:24 | |
| is that the same building-Linux-package-in-remote-builder-VM-on-macOS config? | 15:14:50 | |