From a7caf88f9340a2e209e5863c50142254053efe32 Mon Sep 17 00:00:00 2001 From: Irene Knapp Date: Mon, 21 Dec 2020 23:29:57 -0800 Subject: updated Cargo files --- Cargo.lock | 17 ++++++++++ Cargo.nix | 112 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Cargo.toml | 2 ++ 3 files changed, 131 insertions(+) diff --git a/Cargo.lock b/Cargo.lock index 1a72d14..fccfa2c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -164,10 +164,27 @@ dependencies = [ "assert_cmd", ] +[[package]] +name = "advent_21" +version = "0.1.0" +dependencies = [ + "advent_lib", + "assert_cmd", +] + +[[package]] +name = "advent_22" +version = "0.1.0" +dependencies = [ + "advent_lib", + "assert_cmd", +] + [[package]] name = "advent_lib" version = "0.1.0" dependencies = [ + "lalrpop", "lalrpop-util", ] diff --git a/Cargo.nix b/Cargo.nix index 9fa34dc..c5446f4 100644 --- a/Cargo.nix +++ b/Cargo.nix @@ -218,6 +218,36 @@ rec { # File a bug if you depend on any for non-debug work! debug = internal.debugCrate { inherit packageId; }; }; + "advent_20" = rec { + packageId = "advent_20"; + build = internal.buildRustCrateWithFeatures { + packageId = "advent_20"; + }; + + # Debug support which might change between releases. + # File a bug if you depend on any for non-debug work! + debug = internal.debugCrate { inherit packageId; }; + }; + "advent_21" = rec { + packageId = "advent_21"; + build = internal.buildRustCrateWithFeatures { + packageId = "advent_21"; + }; + + # Debug support which might change between releases. + # File a bug if you depend on any for non-debug work! + debug = internal.debugCrate { inherit packageId; }; + }; + "advent_22" = rec { + packageId = "advent_22"; + build = internal.buildRustCrateWithFeatures { + packageId = "advent_22"; + }; + + # Debug support which might change between releases. + # File a bug if you depend on any for non-debug work! + debug = internal.debugCrate { inherit packageId; }; + }; "advent_lib" = rec { packageId = "advent_lib"; build = internal.buildRustCrateWithFeatures { @@ -748,6 +778,81 @@ rec { } ]; + }; + "advent_20" = rec { + crateName = "advent_20"; + version = "0.1.0"; + edition = "2018"; + crateBin = [ + { name = "advent_20"; path = "src/main.rs"; } + ]; + src = (builtins.filterSource sourceFilter ./20); + authors = [ + "Irene Knapp " + ]; + dependencies = [ + { + name = "advent_lib"; + packageId = "advent_lib"; + } + ]; + devDependencies = [ + { + name = "assert_cmd"; + packageId = "assert_cmd"; + } + ]; + + }; + "advent_21" = rec { + crateName = "advent_21"; + version = "0.1.0"; + edition = "2018"; + crateBin = [ + { name = "advent_21"; path = "src/main.rs"; } + ]; + src = (builtins.filterSource sourceFilter ./21); + authors = [ + "Irene Knapp " + ]; + dependencies = [ + { + name = "advent_lib"; + packageId = "advent_lib"; + } + ]; + devDependencies = [ + { + name = "assert_cmd"; + packageId = "assert_cmd"; + } + ]; + + }; + "advent_22" = rec { + crateName = "advent_22"; + version = "0.1.0"; + edition = "2018"; + crateBin = [ + { name = "advent_22"; path = "src/main.rs"; } + ]; + src = (builtins.filterSource sourceFilter ./22); + authors = [ + "Irene Knapp " + ]; + dependencies = [ + { + name = "advent_lib"; + packageId = "advent_lib"; + } + ]; + devDependencies = [ + { + name = "assert_cmd"; + packageId = "assert_cmd"; + } + ]; + }; "advent_lib" = rec { crateName = "advent_lib"; @@ -763,6 +868,13 @@ rec { packageId = "lalrpop-util"; } ]; + buildDependencies = [ + { + name = "lalrpop"; + packageId = "lalrpop"; + features = [ "lexer" ]; + } + ]; }; "aho-corasick" = rec { diff --git a/Cargo.toml b/Cargo.toml index 154b354..8ee9c55 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -21,4 +21,6 @@ members = [ "18", "19", "20", + "21", + "22", ] -- cgit 1.4.1