From 49f2a7d820473922f90b9121884171fb8409d218 Mon Sep 17 00:00:00 2001 From: Rakarake Date: Sun, 30 Nov 2025 19:04:55 +0100 Subject: [PATCH] blarg --- Cargo.lock | 7 +++++++ Cargo.toml | 2 +- README.md | 1 - aoc2025/Cargo.toml | 12 ++++++++++++ aoc2025/main.rs | 1 + gendays/lib.rs | 3 +++ 6 files changed, 24 insertions(+), 2 deletions(-) delete mode 100644 README.md create mode 100644 aoc2025/Cargo.toml create mode 100644 aoc2025/main.rs diff --git a/Cargo.lock b/Cargo.lock index 69f3b04..c934774 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -9,6 +9,13 @@ dependencies = [ "gendays", ] +[[package]] +name = "aoc2025" +version = "0.1.0" +dependencies = [ + "gendays", +] + [[package]] name = "gendays" version = "0.1.0" diff --git a/Cargo.toml b/Cargo.toml index a76ff34..e980903 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,5 +1,5 @@ [workspace] -members = [ "aoc2024" , "gendays"] +members = [ "gendays", "aoc2024", "aoc2025" ] resolver = "3" [workspace.dependencies] diff --git a/README.md b/README.md deleted file mode 100644 index a2dde01..0000000 --- a/README.md +++ /dev/null @@ -1 +0,0 @@ -2024 is just a test for now diff --git a/aoc2025/Cargo.toml b/aoc2025/Cargo.toml new file mode 100644 index 0000000..9130619 --- /dev/null +++ b/aoc2025/Cargo.toml @@ -0,0 +1,12 @@ +[package] +name = "aoc2025" +version = "0.1.0" +edition = "2024" + +[[bin]] +name = "aoc2025" +path = "main.rs" + +[dependencies] +gendays = { workspace = true } + diff --git a/aoc2025/main.rs b/aoc2025/main.rs new file mode 100644 index 0000000..164c0af --- /dev/null +++ b/aoc2025/main.rs @@ -0,0 +1 @@ +gendays::gen_days![aoc2025]; diff --git a/gendays/lib.rs b/gendays/lib.rs index 7b935e8..e91b760 100644 --- a/gendays/lib.rs +++ b/gendays/lib.rs @@ -2,6 +2,9 @@ use std::fs; use proc_macro::TokenStream; +/// Takes a path to the aoc year directory and generates module declarations +/// and argument parsing for each day found in that directory, each day +/// must begin with "day". #[proc_macro] pub fn gen_days(item: TokenStream) -> TokenStream { let path = format!("{item}");