feat(rust): add rust to the templates

This commit is contained in:
Artur Manuel 2024-08-14 23:44:43 +01:00
commit 9083ff41ab
Failed to generate hash of commit
8 changed files with 139 additions and 0 deletions

View file

@ -0,0 +1,8 @@
{ rustPlatform }: let
pname = "rust-app";
version = "0.1.0";
in rustPlatform.buildRustPackage {
inherit pname version;
src = ../.;
cargoLock.lockFile = ../Cargo.lock;
}

View file

@ -0,0 +1,7 @@
{ mkShell, rust-app, rust-bin }:
mkShell {
inputsFrom = [ rust-app ];
buildInputs = [
rust-bin.stable.latest.default
];
}