{"id":23610074,"url":"https://github.com/fa-sharp/advent-of-code-2023","last_synced_at":"2025-11-05T23:30:23.452Z","repository":{"id":210363942,"uuid":"726333920","full_name":"fa-sharp/advent-of-code-2023","owner":"fa-sharp","description":null,"archived":false,"fork":false,"pushed_at":"2024-09-19T09:29:06.000Z","size":150,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-27T15:15:55.901Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fa-sharp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-12-02T04:34:38.000Z","updated_at":"2024-09-19T09:29:10.000Z","dependencies_parsed_at":"2023-12-02T09:37:33.389Z","dependency_job_id":null,"html_url":"https://github.com/fa-sharp/advent-of-code-2023","commit_stats":null,"previous_names":["fa-sharp/advent-of-code-2023"],"tags_count":0,"template":false,"template_full_name":"fspoettel/advent-of-code-rust","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fa-sharp%2Fadvent-of-code-2023","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fa-sharp%2Fadvent-of-code-2023/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fa-sharp%2Fadvent-of-code-2023/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fa-sharp%2Fadvent-of-code-2023/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fa-sharp","download_url":"https://codeload.github.com/fa-sharp/advent-of-code-2023/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239475964,"owners_count":19645041,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-27T15:15:58.779Z","updated_at":"2025-11-05T23:30:23.424Z","avatar_url":"https://github.com/fa-sharp.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cimg src=\"./.assets/christmas_ferris.png\" width=\"164\"\u003e\n\n# 🎄 Advent of Code 2023\n\nSolutions for [Advent of Code](https://adventofcode.com/) in [Rust](https://www.rust-lang.org/).\n\n(Thanks to fspoettel for [this template repository](https://github.com/fspoettel/advent-of-code-rust) on GitHub!)\n\n\u003c!--- advent_readme_stars table ---\u003e\n## 2023 Results\n\n| Day | Part 1 | Part 2 |\n| :---: | :---: | :---: |\n| [Day 1](https://adventofcode.com/2023/day/1) | ⭐ | ⭐ |\n| [Day 2](https://adventofcode.com/2023/day/2) | ⭐ | ⭐ |\n| [Day 3](https://adventofcode.com/2023/day/3) | ⭐ | ⭐ |\n| [Day 4](https://adventofcode.com/2023/day/4) | ⭐ | ⭐ |\n\u003c!--- advent_readme_stars table ---\u003e\n\n\u003c!--- benchmarking table ---\u003e\n## Benchmarks\n\n| Day | Part 1 | Part 2 |\n| :---: | :---: | :---:  |\n| [Day 1](./src/bin/01.rs) | `98.3µs` | `3.7ms` |\n| [Day 2](./src/bin/02.rs) | `97.3µs` | `98.4µs` |\n| [Day 3](./src/bin/03.rs) | `120.3ms` | `123.8ms` |\n\n**Total: 248.09ms**\n\u003c!--- benchmarking table ---\u003e\n\n---\n\n## Template setup\n\nThis template supports all major OS (macOS, Linux, Windows).\n\n### Create your repository 📝\n\n1.  Open [the template repository](https://github.com/fspoettel/advent-of-code-rust) on Github.\n2.  Click [Use this template](https://github.com/fspoettel/advent-of-code-rust/generate) and create your repository.\n3.  Clone your repository to your computer.\n4.  If you are solving a previous year's advent of code, change the `AOC_YEAR` variable in `.cargo/config.toml` to reflect the year you are solving.\n\n### Setup rust 💻\n\n1.  Install the [Rust toolchain](https://www.rust-lang.org/tools/install).\n2.  (recommended) Install the [rust-analyzer](https://rust-analyzer.github.io/manual.html) extension for your code editor.\n3.  (optional) Install a native debugger. If you are using VS Code, [CodeLLDB](https://marketplace.visualstudio.com/items?itemName=vadimcn.vscode-lldb) is a good option.\n\n---\n\n✨ You can start solving puzzles now! Head to the [Usage section](#usage) to see how to use this template. If you like, you can configure [some optional features](#optional-template-features).\n\n## Usage\n\n### Scaffold a day\n\n```sh\n# example: `cargo scaffold 1`\ncargo scaffold \u003cday\u003e\n\n# output:\n# Created module file \"src/bin/01.rs\"\n# Created empty input file \"data/inputs/01.txt\"\n# Created empty example file \"data/examples/01.txt\"\n# ---\n# 🎄 Type `cargo solve 01` to run your solution.\n```\n\nIndividual solutions live in the `./src/bin/` directory as separate binaries. _Inputs_ and _examples_ live in the the `./data` directory.\n\nEvery [solution](https://github.com/fspoettel/advent-of-code-rust/blob/main/src/template/commands/scaffold.rs#L9-L35) has _tests_ referencing its _example_ file in `./data/examples`. Use these tests to develop and debug your solutions against the example input.\n\n\u003e [!TIP]\n\u003e If a day has different example inputs for both parts, you can use the `read_file_part()` helper in your tests instead of `read_file()`. For example, if this applies to day 1, you can create a second example file `01-2.txt` and invoke the helper like `let result = part_two(\u0026advent_of_code::template::read_file_part(\"examples\", DAY, 2));` to read it in `test_part_two`.\n\n\u003e [!TIP]\n\u003e when editing a solution, `rust-analyzer` will display buttons for running / debugging unit tests above the unit test blocks.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffa-sharp%2Fadvent-of-code-2023","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffa-sharp%2Fadvent-of-code-2023","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffa-sharp%2Fadvent-of-code-2023/lists"}