{"id":22174319,"url":"https://github.com/brianschubert/advent-of-rust","last_synced_at":"2025-03-24T18:17:05.561Z","repository":{"id":163004605,"uuid":"116193293","full_name":"brianschubert/Advent-Of-Rust","owner":"brianschubert","description":"Solutions for the Advent of Code 2015, 2016, and 2018 challenges in Rust","archived":false,"fork":false,"pushed_at":"2020-01-02T20:04:17.000Z","size":550,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-01-29T22:46:42.418Z","etag":null,"topics":["adventofcode","rust"],"latest_commit_sha":null,"homepage":"","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/brianschubert.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":"2018-01-03T23:48:23.000Z","updated_at":"2020-12-02T22:26:50.000Z","dependencies_parsed_at":"2023-07-18T18:37:01.610Z","dependency_job_id":null,"html_url":"https://github.com/brianschubert/Advent-Of-Rust","commit_stats":null,"previous_names":["brianschubert/advent-of-rust"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brianschubert%2FAdvent-Of-Rust","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brianschubert%2FAdvent-Of-Rust/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brianschubert%2FAdvent-Of-Rust/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brianschubert%2FAdvent-Of-Rust/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brianschubert","download_url":"https://codeload.github.com/brianschubert/Advent-Of-Rust/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245325223,"owners_count":20596818,"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":["adventofcode","rust"],"created_at":"2024-12-02T07:43:52.854Z","updated_at":"2025-03-24T18:17:05.541Z","avatar_url":"https://github.com/brianschubert.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Advent of Rust\n[![Build Status](https://travis-ci.com/blueschu/Advent-Of-Rust.svg?branch=master)](https://travis-ci.com/blueschu/Advent-Of-Rust)\n\nMy solutions to the [Advent of Code][adventofcode] puzzles, written in [Rust][rust].\n\nAs with my [previous attempt][aoc-kotlin] at solving the AoC 2017 \npuzzles in Kotlin, these solutions represent my first endeavors with \nthe Rust programming language. \n\n## Some Language Details\n\nSolutions for the 2015 and 2016 events were initially compiled with Rust\nv1.23.0 (2015 edition) and have since been migrated to support Rust \nv1.36.0 (2018 edition). All solutions that were written for the 2018 \nevent were compiled with Rust \u003e= v1.36.0 (2018 edition) from the start.\n\nRust written for the AoC 2018 event is formatted with the\nstandard [`rust-fmt`](https://github.com/rust-lang/rustfmt) tool. \nCode from the 2015 and 2016 events follows a personal style that \npredates `rust-fmt`.\n\n## Running a Solution\n\nSolutions may be run using cargo with the following format:\n\n```bash\n$ cargo run year day [input-file]\n```\nFor example, to run the solution for the puzzle from Day 2 of 2016, you can write:\n\n```bash\n$ cargo run 2016 2\n```\n\nIf you would like to use your own input file, simply include the path to \nit as the third argument:\n\n```bash\n$ cargo run 2016 2 ~/my/input/file\n```\n\nIt is worth noting that a handful of solutions take advantage of patterns\nthat exist in my puzzle inputs, but which may not be present in all valid \ninputs. As such, my solutions _might_ be liable to panic when given input \ndifferent from the ones that they were designed against.\n\nIf all goes well, you should be met with an output that resembles the \nfollowing:\n    \n    Solving 2016 day 02 ... OK\n    Input: ./resources/y2016/day02.txt\n    \n    Part 1: `99332` [0.000457333s]\n    Part 2: `DD483` [0.000369839s]\n    \n    Setup, Parsing: 0.000747620s\n    Total Elapsed: 0.001574792s\n\n\n\n## Running Tests\n\nNearly all modules in this repository come equipped with unit tests.\n\nMost solutions are packaged with unit tests for both the examples in \nthe puzzle descriptions as well as for the actual solutions for my inputs.\n\nIf you would like to run these tests, you can use the `cargo test` command,\nwhich is documentation in the [Cargo Book][cargo-book]\n\nAs an example, to run all the tests associated with the puzzle from Day 2 of 2016, \nyou can write:\n\n```bash\n$ cargo test 2016::day02\n```\n\nA handful of the included unit tests take a few minutes to run. \nCargo will ignore these tests by default, but, if you would like to run them,\npass the `--ignored` flag with the _test binary's_ arguments (after a `--`):\n\n```bash\n$ cargo test 2016::day02 -- --ignored\n```\n\n(Don't forget some popcorn!)\n\n## Copyright \u0026 License\nCopyright \u0026copy; 2018, 2019 Brian Schubert - available under [MIT License][license].\n\n[adventofcode]: https://adventofcode.com/\n[rust]: https://www.rust-lang.org/en-US/\n[aoc-kotlin]: https://github.com/blueschu/Advent-Of-Code\n[license]: https://github.com/blueschu/Advent-Of-Rust/blob/master/LICENSE\n[cargo-book]: https://doc.rust-lang.org/cargo/guide/tests.html\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrianschubert%2Fadvent-of-rust","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrianschubert%2Fadvent-of-rust","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrianschubert%2Fadvent-of-rust/lists"}