feat(rust): add rust to the templates
This commit is contained in:
parent
cd612f03ad
commit
9083ff41ab
8 changed files with 139 additions and 0 deletions
8
templates/rust/nix/package.nix
Normal file
8
templates/rust/nix/package.nix
Normal 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;
|
||||
}
|
7
templates/rust/nix/shell.nix
Normal file
7
templates/rust/nix/shell.nix
Normal file
|
@ -0,0 +1,7 @@
|
|||
{ mkShell, rust-app, rust-bin }:
|
||||
mkShell {
|
||||
inputsFrom = [ rust-app ];
|
||||
buildInputs = [
|
||||
rust-bin.stable.latest.default
|
||||
];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue