!FBuJyWXTGcGtHTPphC:nixos.org

Nix Rust

707 Members
Rust163 Servers

Load older messages


SenderMessageTime
22 Feb 2022
* @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.orgwiredhikari 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
9 Mar 2022
@atharvaamritkar:matrix.orgwiredhikariHello I am a bit new to nix packaging for rust apps, could anyone share some resources apart from https://nixos.org/manual/nixpkgs/stable/#rust06:22:25
@slby:matrix.orgslby
In reply to @atharvaamritkar:matrix.org
Hello I am a bit new to nix packaging for rust apps, could anyone share some resources apart from https://nixos.org/manual/nixpkgs/stable/#rust
https://github.com/kolloch/crate2nix https://github.com/yusdacra/nix-cargo-integration/ https://github.com/nix-community/naersk https://github.com/nix-community/fenix https://github.com/oxalica/rust-overlay https://www.tomhoule.com/2021/building-rust-wasm-with-nix-flakes/ https://hoverbear.org/blog/rust-bindgen-in-nix/ https://nixos.wiki/wiki/Rust
09:00:49
@tomberek:matrix.orgtomberek@slby: while still experimental and a bit in flux, https://github.com/nix-community/dream2nix#test-the-experimental-version-of-dream2nix has been an quick/easy way to get rust apps packaged when needed, not ideal for Nixpkgs yet.13:14:53
@nickhu:matrix.orgNick Hu+1 for yusdacra/nix-cargo-integration, it's really a nice framework. Although I would suggest using the version with crate2nix support, as dream2nix is not stable enough in my experience16:03:13

Show newer messages


Back to Room ListRoom Version: 6