diff options
Diffstat (limited to 'users/wpcarro/scratch')
-rw-r--r-- | users/wpcarro/scratch/rust/.gitignore | 1 | ||||
-rw-r--r-- | users/wpcarro/scratch/rust/README.md | 11 | ||||
-rw-r--r-- | users/wpcarro/scratch/rust/shell.nix | 7 |
3 files changed, 19 insertions, 0 deletions
diff --git a/users/wpcarro/scratch/rust/.gitignore b/users/wpcarro/scratch/rust/.gitignore new file mode 100644 index 000000000000..9f970225adb6 --- /dev/null +++ b/users/wpcarro/scratch/rust/.gitignore @@ -0,0 +1 @@ +target/ \ No newline at end of file diff --git a/users/wpcarro/scratch/rust/README.md b/users/wpcarro/scratch/rust/README.md new file mode 100644 index 000000000000..9ff7dd97eaf6 --- /dev/null +++ b/users/wpcarro/scratch/rust/README.md @@ -0,0 +1,11 @@ +# Rust + +Watch me fumble around as I learn Rust. + +## Usage + +```shell +$ nix-shell /depot -A users.wpcarro.scratch.rust +$ cargo new json && cd ./json +$ cargo run json +``` diff --git a/users/wpcarro/scratch/rust/shell.nix b/users/wpcarro/scratch/rust/shell.nix new file mode 100644 index 000000000000..064e7d8bb38a --- /dev/null +++ b/users/wpcarro/scratch/rust/shell.nix @@ -0,0 +1,7 @@ +{ pkgs, ... }: + +pkgs.mkShell { + buildInputs = [ + pkgs.cargo + ]; +} |