basic rust template

This commit is contained in:
Fabien Freling 2025-06-17 13:59:05 +02:00
commit 2f3fac1a58
9 changed files with 1026 additions and 0 deletions

26
flake.nix Normal file
View file

@ -0,0 +1,26 @@
{
inputs = {
nixpkgs.url = "nixpkgs/nixos-unstable";
fenix = {
url = "github:nix-community/fenix";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { self, fenix, nixpkgs }:
let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
rust-toolchain = fenix.packages.${system}.stable.toolchain;
in {
devShell.${system} = with pkgs; mkShell {
nativeBuildInputs = [
rust-toolchain
cargo-generate
# rust-analyzer-nightly
just
];
};
};
}