feat: Rust templates
This commit is contained in:
parent
50a0f0abc2
commit
e5faf58ba8
33 changed files with 630 additions and 1 deletions
19
rust/cargo-stable/crane/package.nix
Normal file
19
rust/cargo-stable/crane/package.nix
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
{
|
||||
craneLib,
|
||||
}:
|
||||
|
||||
let
|
||||
commonArgs = {
|
||||
src = craneLib.cleanCargoSource ./.;
|
||||
strictDeps = true;
|
||||
|
||||
buildInputs = [
|
||||
# Additional runtime dependencies
|
||||
];
|
||||
|
||||
passthru.commonArgs = commonArgs;
|
||||
};
|
||||
|
||||
cargoArtifacts = craneLib.buildDepsOnly commonArgs;
|
||||
crate = craneLib.buildPackage (commonArgs // { inherit cargoArtifacts; });
|
||||
in crate
|
||||
Loading…
Add table
Add a link
Reference in a new issue