{"repo":"fspoettel/advent-of-code-rust","free":true,"listed":false,"github":"https://github.com/fspoettel/advent-of-code-rust","clone":"git clone https://github.com/fspoettel/advent-of-code-rust.git","description":"🎄Starter template for solving Advent of Code in Rust.","language":"Rust","stars":830,"topics":["advent-of-code","rust","boilerplate","starter","template"],"license":"MIT","category":"saas-starters-boilerplates","readme_excerpt":"🎄 Advent of Code {year} Solutions for Advent of Code in Rust. --- Template setup This template supports all major OS (macOS, Linux, Windows). 📝 Create your repository 1. Open the template repository on Github. 2. Click Use this template and create your repository. 3. Clone your repository to your computer. 4. 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. 💻 Setup rust 1. Install the Rust toolchain. 2. (recommended) Install the rust-analyzer extension for your code editor. 3. (optional) Install a native debugger. If you are using VS Code, CodeLLDB is a good option. --- ✨ You can start solving puzzles now! Head to the Usage section to see how to use this template. If you like, you can configure some optional features. Usage ➡️ Scaffold a day Individual solutions live in the ./src/bin/ directory as separate binaries. Inputs and examples live in the the ./data directory. Every solution has tests referencing its example file in ./data/examples . Use these tests to develop and debug your solutions against the example input. In VS Code, rust-analyzer will display buttons for running / debugging these unit tests above the unit test blocks. [!TIP] If a day has multiple example inputs, you can use the read file part() helper in your tests instead of read file() . If this e.g. applies to day 1, you can create a second example file 01-2.txt and invoke the helper like let result = part two(&ad","default_branch":null,"files":null,"tree":[],"storefront":"/r/fspoettel","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/fspoettel/advent-of-code-rust/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}