!FBuJyWXTGcGtHTPphC:nixos.org

Nix Rust

683 Members
Rust153 Servers

Load older messages


SenderMessageTime
21 Dec 2025
@vivekanandan_ks:matrix.orgvivekanandan_ks

Hi All
Yesterday, I started looking for setting up an environment to learn rust😅.

I dwelled on setting up the environment and basic build through the help of some wiki and mainly vimjoyer's video.
Here's a hello world template of mine.

https://github.com/vivekanandan-ks/ksv-rust-try/blob/main/flake.nix

I have these configured:
Devshells :

  1. using nixpkgs and cargo, rustc etc (only stable from nixpkgs)
  2. using fenix for the toolchain (since this can be used for stable, beta, nightly releases)

Packages:

  1. plain: pkgs.rustPlatform.buildRustPackage
  2. naersk
  3. fenix + plain
  4. fenix + naersk

Any suggestion or improvements over this please😅

07:57:06
@k900:0upti.meK900 Honestly if your goal is to learn Rust, just nix-shell -p rustc cargo 07:58:31
@vivekanandan_ks:matrix.orgvivekanandan_ksMy goal is to package mainly, also wanted to learn rust on the way😅08:03:36
@k900:0upti.meK900 If you want to package for nixpkgs, the only thing you can use is rustPlatform 08:04:12
@k900:0upti.meK900 No out of tree dependencies are allowed 08:04:24
@acidbong:envs.net@acidbong:envs.net
In reply to @vivekanandan_ks:matrix.org
My goal is to package mainly, also wanted to learn rust on the way😅
then it's just a matter of creating a package with rustPlatform.buildRustPackage and a devshell with inputsFrom = [thatPackage]; nativeBuildInputs = [rust-analyzer]; and a formatter of your choice (rustfmt or genemichaels)
08:12:13
@vivekanandan_ks:matrix.orgvivekanandan_ks

Looks like there's more for me to learn. But it somewhat feels easier than the rabbit hole I went for python packaging in nix🥲

Looks like rust toolchain ecosystem is better

08:52:19
24 Dec 2025
@hedgemage:unredacted.org@hedgemage:unredacted.org left the room.03:37:57
@acidbong:envs.net@acidbong:envs.net i'd say there's less to learn (I find Fenix and such too convoluted for me) 05:02:36
@vivekanandan_ks:matrix.orgvivekanandan_ks

Yes.
It's just for trying out other toolchain like beta, nightly etc.
It's not that hard too😅.

But I went with naersk for local development.

05:07:10
@vivekanandan_ks:matrix.orgvivekanandan_ks

I'm scratching the absolute basics now ❤️ I love certain design so far.

I only know python before this. 😅

05:08:24
@damccull:matrix.orgdamccullRedacted or Malformed Event08:37:03
@pltrz_:matrix.orgpltrz joined the room.12:32:53
@amadaluzia:unredacted.orgamadaluzia changed their profile picture.16:52:59
25 Dec 2025
@makuru:catgirl.cloudMakuru 📞(WAAF / 4850) changed their display name from Makuru to Makuru 📞(WAAF / 4850).10:28:37
26 Dec 2025
@isabel:isabelroses.comisabel changed their profile picture.11:37:56
@yuzuki:matrix.kikuri.moeyuzuki changed their profile picture.13:48:49
@aktaboot:tchncs.deaktaboot changed their profile picture.19:25:53
27 Dec 2025
@goober_tony:matrix.orgtonii joined the room.00:34:38
@goober_tony:matrix.orgtoniiim losing it, does anyone know what could be wrong, trying to package a tauri app.
Download im losing it, does anyone know what could be wrong, trying to package a tauri app.
00:39:39
@rosssmyth:matrix.orgrosssmythpost code05:04:19
29 Dec 2025
@tumble1999:matrix.orgTumblehas anyone used tauri to build android app on nixos?19:57:23
@acidbong:envs.net@acidbong:envs.net left the room.20:09:21
@tumble1999:matrix.orgTumble1000023282.png
Download 1000023282.png
23:07:46
@tumble1999:matrix.orgTumbleAww so close yet so far23:07:50
30 Dec 2025
@hythera:matrix.org@hythera:matrix.org left the room.23:17:47
29 Oct 2021
@grahamc:nixos.org@grahamc:nixos.org set the history visibility to "world_readable".19:57:43
@grahamc:nixos.org@grahamc:nixos.org changed the room name to "" from "".19:57:43
@grahamc:nixos.org@grahamc:nixos.org changed the room topic to "" from "".19:57:43
@server_stats:nordgedanken.devServer Stats Discoverer (traveler bot) joined the room.19:58:21

Show newer messages


Back to Room ListRoom Version: 6