!FBuJyWXTGcGtHTPphC:nixos.org

Nix Rust

671 Members
Rust152 Servers

Load older messages


SenderMessageTime
20 Dec 2025
@vivekanandan_ks:matrix.orgvivekanandan_ks joined the room.12:27:21
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.netAcid Bong
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
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
@voyager:t2bot.ioMatrix Traveler (bot) joined the room.19:59:14
@ralith:ralith.comRalith joined the room.20:00:28
@grahamc:nixos.org@grahamc:nixos.orgchanged room power levels.20:00:52
@grahamc:nixos.org@grahamc:nixos.org invited @mjolnir:nixos.orgNixOS Moderation Bot.20:01:04
@mjolnir:nixos.orgNixOS Moderation Bot joined the room.20:01:05
@grahamc:nixos.org@grahamc:nixos.orgchanged room power levels.20:01:08
Room Avatar Renderer.20:02:40
@hexa:lossy.networkhexa joined the room.20:04:36
@kity:kity.wtfash (it/its) 🏳️‍⚧️ joined the room.20:06:27
@noah:matrix.chatsubo.cafeChurch joined the room.20:18:19
@figsoda:matrix.orgfigsoda joined the room.20:33:22
@withoutwithin:matrix.orgXe Iaso joined the room.20:59:23
@tomberek:matrix.orgtomberek joined the room.21:02:26
@noah:matrix.chatsubo.cafeChurch changed their display name from noah ⚡️ to Church.21:02:31
@0x4a6f:matrix.org[0x4A6F] joined the room.21:17:23
@andi:kack.itandi- joined the room.22:37:38
@siraben:matrix.orgsiraben joined the room.23:30:18
@grahamc:nixos.org@grahamc:nixos.orgchanged room power levels.23:54:54

Show newer messages


Back to Room ListRoom Version: 6