From 95f302f95da11bc6e891ae2ab675c43ce0167ad7 Mon Sep 17 00:00:00 2001 From: William Carroll Date: Sun, 26 Jun 2022 17:55:07 -0700 Subject: feat(wpcarro/rust): Create a sandbox for learning Rust See README Change-Id: I007a4d5c3b840986f6d3bc93aaa72d26daaa9b12 Reviewed-on: https://cl.tvl.fyi/c/depot/+/5895 Reviewed-by: wpcarro Autosubmit: wpcarro Tested-by: BuildkiteCI --- users/wpcarro/scratch/rust/.gitignore | 1 + users/wpcarro/scratch/rust/README.md | 11 +++++++++++ users/wpcarro/scratch/rust/shell.nix | 7 +++++++ 3 files changed, 19 insertions(+) create mode 100644 users/wpcarro/scratch/rust/.gitignore create mode 100644 users/wpcarro/scratch/rust/README.md create mode 100644 users/wpcarro/scratch/rust/shell.nix (limited to 'users') diff --git a/users/wpcarro/scratch/rust/.gitignore b/users/wpcarro/scratch/rust/.gitignore new file mode 100644 index 0000000000..9f970225ad --- /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 0000000000..9ff7dd97ea --- /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 0000000000..064e7d8bb3 --- /dev/null +++ b/users/wpcarro/scratch/rust/shell.nix @@ -0,0 +1,7 @@ +{ pkgs, ... }: + +pkgs.mkShell { + buildInputs = [ + pkgs.cargo + ]; +} -- cgit 1.4.1