blarg
This commit is contained in:
parent
f2a4de9bd9
commit
49f2a7d820
6 changed files with 24 additions and 2 deletions
7
Cargo.lock
generated
7
Cargo.lock
generated
|
|
@ -9,6 +9,13 @@ dependencies = [
|
||||||
"gendays",
|
"gendays",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "aoc2025"
|
||||||
|
version = "0.1.0"
|
||||||
|
dependencies = [
|
||||||
|
"gendays",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "gendays"
|
name = "gendays"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
[workspace]
|
[workspace]
|
||||||
members = [ "aoc2024" , "gendays"]
|
members = [ "gendays", "aoc2024", "aoc2025" ]
|
||||||
resolver = "3"
|
resolver = "3"
|
||||||
|
|
||||||
[workspace.dependencies]
|
[workspace.dependencies]
|
||||||
|
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
2024 is just a test for now
|
|
||||||
12
aoc2025/Cargo.toml
Normal file
12
aoc2025/Cargo.toml
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
[package]
|
||||||
|
name = "aoc2025"
|
||||||
|
version = "0.1.0"
|
||||||
|
edition = "2024"
|
||||||
|
|
||||||
|
[[bin]]
|
||||||
|
name = "aoc2025"
|
||||||
|
path = "main.rs"
|
||||||
|
|
||||||
|
[dependencies]
|
||||||
|
gendays = { workspace = true }
|
||||||
|
|
||||||
1
aoc2025/main.rs
Normal file
1
aoc2025/main.rs
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
gendays::gen_days![aoc2025];
|
||||||
|
|
@ -2,6 +2,9 @@ use std::fs;
|
||||||
|
|
||||||
use proc_macro::TokenStream;
|
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]
|
#[proc_macro]
|
||||||
pub fn gen_days(item: TokenStream) -> TokenStream {
|
pub fn gen_days(item: TokenStream) -> TokenStream {
|
||||||
let path = format!("{item}");
|
let path = format!("{item}");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue