!FBuJyWXTGcGtHTPphC:nixos.org

Nix Rust

420 Members
Rust102 Servers

Load older messages


SenderMessageTime
16 Jul 2024
@marius851000:mariusdavid.frMarius changed their display name from Burrito (Marius) to Marius.13:02:58
@zkourouma:matrix.orgrouma7 joined the room.17:30:02
@ahamon:matrix.orgAndy Hamon Has anyone had any success building rusty_v8 in nix? 22:13:36
@ahamon:matrix.orgAndy Hamon I'm trying to use crate2nix which seems really promising, but failing on this (used by deno_core I'm pretty sure) 22:23:55
@ahamon:matrix.orgAndy Hamon Ahh seems the solution in nixpkgs is to set RUSTY_V8_ARCHIVE 22:46:01
@ahamon:matrix.orgAndy Hamonseems easy enough22:46:07
@ahamon:matrix.orgAndy HamonYep, im cookin now!22:54:04
17 Jul 2024
@ahamon:matrix.orgAndy Hamonkinda curious what peoples opinions are of crate2nix vs cargo2nix. crate2nix seems a lot simpler to me, and is also easy to integrate into a non-flake monorepo. Out of buildRustPackage, crane, and crate2nix, crate2nix is the closes to "just works" for our very huge (hundreds of crates) workspace01:30:32
@ahamon:matrix.orgAndy Hamonby "just works" i mean compiling one tiny crate with a few inter-workspace deps. I'm sure we have a lot of crates that are cursed01:32:10
@ahamon:matrix.orgAndy Hamon * kinda curious what peoples opinions are of crate2nix vs cargo2nix vs crane. crate2nix seems a lot simpler to me, and is also easy to integrate into a non-flake monorepo. Out of buildRustPackage, crane, and crate2nix, crate2nix is the closes to "just works" for our very huge (hundreds of crates) workspace01:32:37
@blm768:matrix.orgblm768 joined the room.04:17:37
18 Jul 2024
@tewi:queer.cattewi 🏳️‍⚧️ joined the room.00:24:38
@zaphar_ps:matrix.orgzaphar_ps joined the room.02:34:16
@purepani:matrix.orgpurepani joined the room.03:12:06
@r522:matrix.org522
In reply to @ahamon:matrix.org
kinda curious what peoples opinions are of crate2nix vs cargo2nix vs crane. crate2nix seems a lot simpler to me, and is also easy to integrate into a non-flake monorepo. Out of buildRustPackage, crane, and crate2nix, crate2nix is the closes to "just works" for our very huge (hundreds of crates) workspace
i use crane because it has easy support for extra cargo-based tooling like cargo deny / clippy, etc
as far as i can see, crate2nix does have test support but it's not clear how to make clippy a check, for example
16:56:21
@kranzes:matrix.orgIlan Joselevich (Kranzes)Crate2nix generally just works, sometimes you might need to add more things to defaultCrateOverrides but that's pretty easy to do18:35:32
@kranzes:matrix.orgIlan Joselevich (Kranzes)It also supports building to wasm32-unknown-unknown now18:35:47
@kranzes:matrix.orgIlan Joselevich (Kranzes)And there's an open PR for wasi support too18:35:59
@kranzes:matrix.orgIlan Joselevich (Kranzes)Crate2nix is not actively developed though 18:36:37
@kranzes:matrix.orgIlan Joselevich (Kranzes)I recently became the maintainer as Peter does not use it anymore and I don't plan on making any major changes 18:37:24
@kranzes:matrix.orgIlan Joselevich (Kranzes)Will only make fixes 18:37:59
@ahamon:matrix.orgAndy Hamon Yeah ive had to add a few overrides but i was pretty easy. I also set things up to i can auto-discover overrides for in-tree crates if they have a crate-override.nix files 18:46:20
@ahamon:matrix.orgAndy HamonLast time I tried crane, i had a really hard time achieving both of a) use the root cargo.toml/cargo.lock b) only copy minimal srcs to the nix store18:48:23
@ahamon:matrix.orgAndy HamonCargo itself is annoyingly picky in that it wants every workspace members Cargo.toml, build.rs files, etc. to exist before it proceeds. I believe Crane had some magic to crawl for those files, but that magic also cause it to pick up an invalid cargo file in a templates directory18:49:40
@ahamon:matrix.orgAndy Hamonin general was just an uphill battle to get even the simplest workspace memeber with no deps up and running, and my solution was very ugly18:50:09
@tewi:queer.cattewi 🏳️‍⚧️ changed their profile picture.23:50:51
@tewi:queer.cattewi 🏳️‍⚧️ removed their profile picture.23:52:42
@tewi:queer.cattewi 🏳️‍⚧️ set a profile picture.23:53:17
19 Jul 2024
@hive:the-apothecary.clubMs. Connection changed their display name from tauphi to Ms.Connection.23:59:16
20 Jul 2024
@hive:the-apothecary.clubMs. Connection changed their display name from Ms.Connection to Ms. Connection.00:00:24

There are no newer messages yet.


Back to Room ListRoom Version: 6