Compare commits

..

No commits in common. "00000450f8cc66abce5704b0993f0e95033e2aae" and "00000430641c378a6a7c727366a57f2a64291d7a" have entirely different histories.

4 changed files with 39 additions and 18 deletions

View File

@ -1,2 +1,2 @@
TOKEN=secret
YEAR=year
YEAR=2022

24
Cargo.lock generated
View File

@ -19,7 +19,10 @@ checksum = "f26201604c87b1e01bd3d98f8d5d9a8fcbb815e8cedb41ffccbeb4bf593a35fe"
[[package]]
name = "aoc"
version = "45.0.0"
version = "43.0.0"
dependencies = [
"itertools",
]
[[package]]
name = "autocfg"
@ -102,13 +105,19 @@ checksum = "03d8c417d7a8cb362e0c37e5d815f5eb7c37f79ff93707329d5a194e42e54ca0"
[[package]]
name = "download"
version = "45.0.0"
version = "43.0.0"
dependencies = [
"dotenvy",
"pico-args",
"reqwest",
]
[[package]]
name = "either"
version = "1.8.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "90e5c1c8368803113bf0c9584fc495a58b86dc8a29edbf8fe877d21d9507e797"
[[package]]
name = "encoding_rs"
version = "0.8.31"
@ -351,6 +360,15 @@ version = "2.7.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "11b0d96e660696543b251e58030cf9787df56da39dab19ad60eae7353040917e"
[[package]]
name = "itertools"
version = "0.12.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "25db6b064527c5d482d0423354fcd07a89a2dfe07b67892e62411946db7f07b0"
dependencies = [
"either",
]
[[package]]
name = "itoa"
version = "1.0.5"
@ -625,7 +643,7 @@ checksum = "7b4b9743ed687d4b4bcedf9ff5eaa7398495ae14e61cba0a295704edbc7decde"
[[package]]
name = "scaffold"
version = "45.0.0"
version = "43.0.0"
dependencies = [
"dotenvy",
"pico-args",

View File

@ -1,15 +1,3 @@
[workspace.package]
description = "template for advent of code"
readme = "README.md"
version = "45.0.0"
edition = "2021"
license = "MIT"
authors = ["Matej Janežič <janezic.mj@gmail.com>"]
repository = "https://github.com/janezicmatej/aoc-template.git"
[workspace]
members = ["utils/download", "utils/scaffold"]
[package]
name = "aoc"
description.workspace = true
@ -21,4 +9,19 @@ authors.workspace = true
repository.workspace = true
[dependencies]
# many cool stuff for iterators
itertools = "0.12.0"
[workspace]
members = ["utils/download", "utils/scaffold"]
[workspace.package]
description = "template for advent of code"
readme = "README.md"
version = "43.0.0"
edition = "2021"
license = "MIT"
authors = ["Matej Janežič <janezic.mj@gmail.com>"]
repository = "https://github.com/janezicmatej/aoc-template.git"

View File

@ -11,8 +11,8 @@
- `src/` :
- `bin/`:
- `<day>.rs`: solution files
- `lib.rs`: library entrypoint, reusable code goes here
- `template.rs`: contains template code
- `utils/`: utils files go here
- `lib.rs`: contains framework code
- `utils/`: binary packages with convenience scripts structured using cargo workspaces
- `.env.example`: example dotenv file