From 8c57ade495b61a1595f9d8845848cea1ab6c90aa Mon Sep 17 00:00:00 2001 From: Michael Zhang Date: Sat, 21 Jan 2023 03:03:54 -0600 Subject: [PATCH] hand in --- assignment-0/.gitignore | 2 +- assignment-0/Makefile | 7 +++++++ flake.nix | 3 ++- 3 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 assignment-0/Makefile diff --git a/assignment-0/.gitignore b/assignment-0/.gitignore index c5348e3..12ccadc 100644 --- a/assignment-0/.gitignore +++ b/assignment-0/.gitignore @@ -1,4 +1,4 @@ /target input out.ppm - +handin.tar.gz diff --git a/assignment-0/Makefile b/assignment-0/Makefile new file mode 100644 index 000000000..8b31ba0 --- /dev/null +++ b/assignment-0/Makefile @@ -0,0 +1,7 @@ +.PHONY: clean + +handin.tar.gz: + tar -czvf $@ target/release/assignment-0 Cargo.* input out.ppm README.md src + +clean: + rm -f handin.tar.gz diff --git a/flake.nix b/flake.nix index 77f36b9..78974e9 100644 --- a/flake.nix +++ b/flake.nix @@ -12,7 +12,8 @@ toolchain = pkgs.fenix.stable; in rec { devShell = pkgs.mkShell { - packages = (with pkgs; [ cargo-watch cargo-deny cargo-edit ]) + packages = + (with pkgs; [ cargo-watch cargo-deny cargo-edit zip unzip ]) ++ (with toolchain; [ cargo rustc rustfmt clippy ]); CARGO_UNSTABLE_SPARSE_REGISTRY = "true"; };