mirror of
https://github.com/nix-community/nix-init.git
synced 2024-09-11 08:05:42 +03:00
12 lines
262 B
Bash
Executable File
12 lines
262 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -eu
|
|
|
|
dir=$(mktemp -d)
|
|
cp "src/lang/rust/fixtures/$1.toml" "$dir/Cargo.toml"
|
|
mkdir "$dir/src"
|
|
touch "$dir/src/lib.rs"
|
|
cargo generate-lockfile --manifest-path "$dir/Cargo.toml"
|
|
cp "$dir/Cargo.lock" "src/lang/rust/fixtures/$1-lock.toml"
|
|
rm -r "$dir"
|