!FBuJyWXTGcGtHTPphC:nixos.org

Nix Rust

670 Members
Rust152 Servers

Load older messages


SenderMessageTime
18 Feb 2022
@bachp:matrix.orgPascal Bach joined the room.13:48:13
19 Feb 2022
@brian:maven-group.orgbrian joined the room.15:28:26
22 Feb 2022
@0x4a6f:matrix.org[0x4A6F] colemickens 🏳️‍🌈: AFAIK cargoLock doesn't work for inclusion into nixpkgs. 20:41:46
@colemickens:matrix.orgcolemickens:( okay, I was a bit afraid of that20:42:08
* @colemickens:matrix.orgcolemickens isn't sure he gets why/how that is though20:42:30
@0x4a6f:matrix.org[0x4A6F] I've tried cargoLock in following commit and was send away with this error. 20:46:14
@0x4a6f:matrix.org[0x4A6F] Gazing at rfcs#109... 20:50:36
@cole-h:matrix.orgcole-hPretty sure cargoLock is IFD unless you copy the Cargo.lock into the nix expression(s directory)20:50:46
@cole-h:matrix.orgcole-h Rather, trying to use cargoLock.lockFile = src + "/Cargo.lock"; is IFD. Referencing the actual file by copying it into Nixpkgs is (maybe? probably?) not. 20:51:35
@hexa:lossy.networkhexayep, copying it into nixpkgs is fine21:05:16
@0x4a6f:matrix.org[0x4A6F]Thanks, but I'll stick to cargoSha256 for now. Cargo.lock is mostly in pkgs/build-support.22:28:40
27 Feb 2022
@slby:matrix.orgslbyHey! If I set cargoRoot, is it also possible to point cargoLock to a different file?19:03:03
@slby:matrix.orgslby Also if I depend on a crate from the same git repo, but the Cargo.toml has a relative path in it, how can I specify it in nix? 19:13:07
28 Feb 2022
@florian:web3.foundationFlorian | W3F changed their display name from Florian | W3F to Florian | W3F - OoO 02.03..10:14:26
2 Mar 2022
@florian:web3.foundationFlorian | W3F changed their display name from Florian | W3F - OoO 02.03. to Florian | W3F.08:16:38
3 Mar 2022
@colemickens:matrix.orgcolemickens changed their display name from colemickens 🏳️‍🌈 to colemickens.07:10:15
4 Mar 2022
@nixinator:nixos.devnixinator joined the room.01:20:18
@nixinator:nixos.devnixinatori have a problem with rust finding fonts, works ok in 'nix develop' shell with 'cargo test' , however, running a cargo test via the derivations fails :-(01:21:38
@ralith:ralith.comRalithrust is a programming language; it does not interact with fonts02:05:02
@ralith:ralith.comRalithperhaps you had a problem with the font search logic implemented in a particular crate?02:05:26
@slby:matrix.orgslby

This is the problem that crate2nix gives me:

Caused by:
  feature `edition2021` is required

  consider adding `cargo-features = ["edition2021"]` to the manifest
crate2nix failed.

Does anyone know where I should specify the manifest? I am using generatedCargoNix

10:13:11
@vika:fireburn.ruVika (she/her) joined the room.20:15:49
@slby:matrix.orgslby
In reply to @slby:matrix.org

This is the problem that crate2nix gives me:

Caused by:
  feature `edition2021` is required

  consider adding `cargo-features = ["edition2021"]` to the manifest
crate2nix failed.

Does anyone know where I should specify the manifest? I am using generatedCargoNix

I needed to use the unstable channel, then it worked.
20:17:38
5 Mar 2022
@atharvaamritkar:matrix.orghikari joined the room.21:17:56
6 Mar 2022
@niklauzg:matrix.orgNiklauz joined the room.14:56:30
7 Mar 2022
@nickhu:matrix.orgNick Hu joined the room.18:33:25
@nickhu:matrix.orgNick HuCross posting from the main nixos channel: Hi, I'm trying to use naersk to build a rust project, but it seems like both the main-deps derivation and the main derivation are compiling all the dependencies of the project, would anyone be able to help me debug this?18:34:02
@nickhu:matrix.orgNick Hu *

Cross posting from the main nixos channel:

Hi, I'm trying to use naersk to build a rust project, but it seems like both the main-deps derivation and the main derivation are compiling all the dependencies of the project, would anyone be able to help me debug this?

18:52:27
@nickhu:matrix.orgNick Hu Before main begins its build phase, naersk has successfully untarred a bunch of stuff into ./target/release/..., and I also confirmed manually that the output tarball of the main-deps derivation is not empty (it's > 100MB) 18:53:30
@nickhu:matrix.orgNick HuBut for some reason whenever it starts building it wants to recompile everything18:53:47

Show newer messages


Back to Room ListRoom Version: 6