!FBuJyWXTGcGtHTPphC:nixos.org

Nix Rust

639 Members
Rust146 Servers

Load older messages


SenderMessageTime
8 Oct 2025
@niklaskorz:matrix.orgniklaskorznow that, on the other hand:21:23:13
@niklaskorz:matrix.orgniklaskorz
error[E0554]: `#![feature]` may not be used on the stable release channel
 --> generic-rt/src/lib.rs:3:1
  |
3 | #![feature(core_intrinsics)]
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
21:23:16
@qyliss:fairydust.spaceAlyssa RossI'd be surprised if we end up packaging redox's downstream rustc fwiw21:23:47
@qyliss:fairydust.spaceAlyssa Rossbut last development update says they "just need to finish up" moving to upstream so maybe that's not too much of a concern21:25:05
9 Oct 2025
@glepage:matrix.orgGaƩtan Lepage

I'm trying to package a python package using maturin in nixpkgs.
I use

  cargoDeps = rustPlatform.fetchCargoVendor {
    inherit
      pname
      version
      src
      sourceRoot
      cargoRoot
      ;
    hash = "sha256-m3SNWjHsQcrH6v8Z6CnURhuXNQRgvtGreM0g91rOv6Q=";
  };

But it fails with

Executing maturinBuildHook
maturinBuildHook flags: --jobs=64 --offline --target x86_64-unknown-linux-gnu --manylinux off --strip --release --out /build/source/obstore/dist --interpreter python3.13
error: failed to load source for dependency `object_store`

Caused by:
  Unable to update https://github.com/apache/arrow-rs-object-store?rev=f422dce1528ee2a089d8061af639c3f2a9cd43af#f422dce1

Caused by:
  can't checkout from 'https://github.com/apache/arrow-rs-object-store': you are in the offline mode (--offline)
šŸ’„ maturin failed

The Cargo.lock has this at the end:

[[patch.unused]]
name = "object_store"
version = "0.12.2"
source = "git+https://github.com/apache/arrow-rs-object-store?rev=f422dce1528ee2a089d8061af639c3f2a9cd43af#f422dce1528ee2a089d8061af639c3f2a9cd43af";

Am I supposed to do something extra to fetch this dep?

12:02:50
@niklaskorz:matrix.orgniklaskorzAre you sure the fetchCargoVendor hash is up to date and not using an older version of the package's cache?12:04:57
@niklaskorz:matrix.orgniklaskorz ah wait, I missed the patch.unused part 12:05:46
@glepage:matrix.orgGaƩtan Lepage For reference, here is the PR: https://github.com/NixOS/nixpkgs/pull/450218
(obstore package)
12:08:35
@niklaskorz:matrix.orgniklaskorz that doesn't appear anywhere in the upstream Cargo.lock 12:18:13
@niklaskorz:matrix.orgniklaskorzah, it's the obstore package that is failing, not nutpie12:18:36
@niklaskorz:matrix.orgniklaskorzhonestly I think the solution is just patching out these lines in Cargo.toml:12:19:46
@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

Show newer messages


Back to Room ListRoom Version: 6