Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yitsushi/advent-of-code-2022
My Advent of Code playground with Rust
https://github.com/yitsushi/advent-of-code-2022
advent-of-code advent-of-code-2022 rust
Last synced: 8 days ago
JSON representation
My Advent of Code playground with Rust
- Host: GitHub
- URL: https://github.com/yitsushi/advent-of-code-2022
- Owner: yitsushi
- License: mit
- Created: 2022-12-01T13:40:52.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-01-01T01:58:59.000Z (about 2 years ago)
- Last Synced: 2024-04-15T14:03:07.655Z (10 months ago)
- Topics: advent-of-code, advent-of-code-2022, rust
- Language: Rust
- Homepage: https://yitsushi.github.io/advent-of-code-2022
- Size: 1.44 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Advent of Code: 2022
[![codecov](https://codecov.io/gh/yitsushi/advent-of-code-2022/branch/main/graph/badge.svg)](https://codecov.io/gh/yitsushi/advent-of-code-2022)
[![Quality Check](https://github.com/yitsushi/advent-of-code-2022/actions/workflows/quality-check.yaml/badge.svg)](https://github.com/yitsushi/advent-of-code-2022/actions/workflows/quality-check.yaml)First of all, I have no idea what I'm doing. I like challenges and doing Advent
of Code using a language I barely know, well that's the perfect challenge and
opportunity to learn. The commit history can be a good journal about my journey
with rust, however don't take any of this as a good practice. I really don't know
how a rust developer works in the wild, this project structure is totally an
opinionated structure, and the produced code is definitely not a professional
rust code, don't copy it and take it as "that's how to do it". Technically you
can copy it and I have no objections if you understand **I take zero
responsibilities if you break anything in production**, or you get a lot of
down votes on StackOverflow because you copied something that shouldn't exist.## Run
```bash
# Run on the first part of the first day.
cargo run -- --day=1 --part=1# Same but print timing information.
cargo run -- --day=1 --part=1 --time-it
```## Build
```bash
# With the provided Makefile
make build# With cargo
cargo build --release
```## Run tests
```bash
# With the provided Makefile
make test# With cargo
cargo test --workspace# Run on a specific lib
cargo test -p solution# Run on a specific day
cargo test -p solution day02
```## Generate a new day from template
```bash
# Scaffold the 3rd Day.
make generate_day03
```