!FBuJyWXTGcGtHTPphC:nixos.org

Nix Rust

636 Members
Rust147 Servers

Load older messages


SenderMessageTime
9 Oct 2025
@niklaskorz:matrix.orgniklaskorzhttps://github.com/developmentseed/obstore/blob/fbaeb7fa772f21e9b8f54b7eeb1f19a3f5b07336/Cargo.toml#L41-L4212:19:57
@glepage:matrix.orgGaétan LepageRemove them you mean?12:20:16
@niklaskorz:matrix.orgniklaskorzyes, or maybe see what upstream commit removed them12:20:29
@niklaskorz:matrix.orgniklaskorzbecause master doesn't have those anymore12:20:33
@niklaskorz:matrix.orgniklaskorz* because main doesn't have those anymore12:20:43
@niklaskorz:matrix.orgniklaskorzthey removed them as part of https://github.com/developmentseed/obstore/commit/7cff737f4d86eeee8ddeb69bca47aecbfd997065#diff-2e9d962a08321605940b5a657135052fbcef87b5e360662bb527c96d9a61554212:21:24
@niklaskorz:matrix.orgniklaskorz* they removed them as part of https://github.com/developmentseed/obstore/commit/7cff737f4d86eeee8ddeb69bca47aecbfd99706512:21:30
@niklaskorz:matrix.orgniklaskorznot sure if that cleanly applies to 0.8.212:21:51
@glepage:matrix.orgGaétan LepageRemoving the last lines doesn't help unfortunately... I still get the same error.12:33:31
@niklaskorz:matrix.orgniklaskorzhm my next best bet would be removing it from both Cargo.toml and Cargo.lock, don't have time to check myself right now unfortunately13:16:51
@bananapoop:matrix.orgBanana Poop set a profile picture.14:49:08
@bananapoop:matrix.orgBanana Poop changed their profile picture.14:50:08
@bananapoop:matrix.orgBanana Poop changed their profile picture.14:54:28
@dacid44:matrix.orgdacid44 do you guys often have issues with nix develop, namely rust-analyzer running outside of it and invalidating a bunch of the incremental compilation? 15:58:53
@notgne2:wizbos.club@notgne2:wizbos.club left the room.19:56:50
@tomasajt:matrix.orgTomaI have been on bit of a break lately, but I remembered that I really wanted to have https://github.com/NixOS/nixpkgs/pull/387337 be part of the next release21:12:26
@tomasajt:matrix.orgToma Since it's a breaking change there is a stricter time limit for it getting merged21:12:35
@tomasajt:matrix.orgTomaAlso, it has like 27 likes, so I guess it should be considered pretty important to have21:13:10
@glepage:matrix.orgGaétan Lepage Thanks for the help niklaskorz! 23:28:10
11 Oct 2025
@anders:sorby.xyzAnders I am trying to fix packaging for relibc so that cross compilation to RedoxOS can be enabled again. But I run into trouble when I try to make all:
error occurred: Failed to find tool. Is x86_64-linux-gnu-gcc installed?
I am not cross compiling so how do I fix this?
10:29:11
@anders:sorby.xyzAnders Also, how do I correctly include a git submodule when doing a src = ./. import? 10:32:24
@rosssmyth:matrix.orgrosssmythit is hard to say anything without seeing code15:47:38
@anders:sorby.xyzAndersI got it working15:48:03
@anders:sorby.xyzAndersBut now I have an issue with what I assume is mismatched toolchains15:48:31
@anders:sorby.xyzAnders
relibc-latest> cargo rustc --release -Z build-std=core,alloc,compiler_builtins --target=x86_64-unknown-linux-gnu -- --emit link=/build/source/target/x86_64-unknown-linux-gnu/release/librelibc.a
relibc-latest> error: failed to select a version for the requirement `cfg-if = "^1.0"` (locked to 1.0.1)
relibc-latest> candidate versions found which didn't match: 1.0.3
relibc-latest> location searched: directory source `/build/cargo-vendor-dir` (which is replacing registry `crates-io`)
relibc-latest> required by package `std v0.0.0 (/nix/store/xfljfal6ycn3q5m93v8ycc3qvwn46i8j-rust-nightly-2025-10-03/lib/rustlib/src/rust/library/std)`
relibc-latest>     ... which satisfies path dependency `std` (locked to 0.0.0) of package `sysroot v0.0.0 (/nix/store/xfljfal6ycn3q5m93v8ycc3qvwn46i8j-rust-nightly-2025-10-03/lib/rustlib/src/rust/library/sysroot)`
15:49:10
@anders:sorby.xyzAndersSo my cargo.lock insists on using 1.0.3 while std needs 1.0.1. Why can't it resolve this? Can I force this somehow?15:50:37
@anders:sorby.xyzAndersThe code can be found here https://tangled.org/@anders.sorby.xyz/relibc/tree/add-nix-build if anyone is interested16:55:39
13 Oct 2025
@anders:sorby.xyzAndersBear in mind I am a self thaught professional developer who is relatively new to rust and c build systems. I have opened a thread on discourse too https://discourse.nixos.org/t/rust-building-and-resolving-cfg-if/7079314:48:09
@anders:sorby.xyzAnders I tracked it down to the unstable feature build-std
https://doc.rust-lang.org/cargo/reference/unstable.html#build-std
15:00:52
@anders:sorby.xyzAndersRemoving that solved the issue15:01:06

Show newer messages


Back to Room ListRoom Version: 6