diff options
author | William Carroll <wpcarro@gmail.com> | 2022-06-27T00·55-0700 |
---|---|---|
committer | wpcarro <wpcarro@gmail.com> | 2022-06-27T16·20+0000 |
commit | 95f302f95da11bc6e891ae2ab675c43ce0167ad7 (patch) | |
tree | 93a7982576d30a3d41152634dc7925b5a489a7b0 /users/wpcarro/scratch/rust | |
parent | d8ccb3b9e17f8c489255478ee87de739a64b564a (diff) |
feat(wpcarro/rust): Create a sandbox for learning Rust r/4256
See README Change-Id: I007a4d5c3b840986f6d3bc93aaa72d26daaa9b12 Reviewed-on: https://cl.tvl.fyi/c/depot/+/5895 Reviewed-by: wpcarro <wpcarro@gmail.com> Autosubmit: wpcarro <wpcarro@gmail.com> Tested-by: BuildkiteCI
Diffstat (limited to 'users/wpcarro/scratch/rust')
-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 + ]; +} |