Stream: nix

Topic: rust-flake (Nixify Rust projects)


view this post on Zulip Srid (Jul 13 2024 at 03:28):

https://github.com/juspay/rust-flake now supports multiple crates from cargo workspace

image.png

view this post on Zulip Quinn (Jul 13 2024 at 17:41):

oh cool. NCI is frustrating me with wasm and trunk right now. so if you have an example for wasm and trunk, that might get me to switch

view this post on Zulip Srid (Jul 13 2024 at 22:45):

@Quinn rust-flake is designed to be basically a (flake-parts) wrapper over https://crane.dev/ - so if you can get something working with crane, it should map straightforwardly to rust-flake.

view this post on Zulip Shivaraj B H (Jul 17 2024 at 19:03):

oh cool. NCI is frustrating me with wasm and trunk right now. so if you have an example for wasm and trunk, that might get me to switch

Do you have an existing repo with wasm and trunk? I could try to package it using rust-flake

view this post on Zulip Quinn (Jul 17 2024 at 19:05):

this is the current deal https://github.com/quinn-dougherty/gatekept-traffic-PoC/tree/master/src.rs i haven't done a ton of debugging as to why its not working. I will say my emacs lsp is jank in that it works when i direnv to an NCI full rust environment of the project, but it all depends on rustup not being installed. it all comes crashing down if emacs finds a rustup. that's a separate issue tho-- it'd be dope if it even built in CI.

view this post on Zulip Shivaraj B H (Jul 17 2024 at 19:07):

Alright, I will give it a try tomorrow, its almost bed time here.


Last updated: Nov 15 2024 at 12:33 UTC