{"id":15674934,"url":"https://github.com/ageron/aoc2022-rust","last_synced_at":"2026-03-02T08:32:00.242Z","repository":{"id":65018746,"uuid":"574387413","full_name":"ageron/aoc2022-rust","owner":"ageron","description":null,"archived":false,"fork":false,"pushed_at":"2022-12-30T09:58:13.000Z","size":164,"stargazers_count":14,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-24T07:39:03.887Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ageron.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}},"created_at":"2022-12-05T07:42:42.000Z","updated_at":"2025-05-04T01:12:37.000Z","dependencies_parsed_at":"2023-01-13T15:17:20.256Z","dependency_job_id":null,"html_url":"https://github.com/ageron/aoc2022-rust","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ageron/aoc2022-rust","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ageron%2Faoc2022-rust","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ageron%2Faoc2022-rust/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ageron%2Faoc2022-rust/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ageron%2Faoc2022-rust/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ageron","download_url":"https://codeload.github.com/ageron/aoc2022-rust/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ageron%2Faoc2022-rust/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29995912,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-02T01:47:34.672Z","status":"online","status_checked_at":"2026-03-02T02:00:07.342Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-10-03T15:53:18.806Z","updated_at":"2026-03-02T08:32:00.225Z","avatar_url":"https://github.com/ageron.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"Advent of Code 2022 in Rust\n===========================\n\nIf you've never heard of Advent of Code, you're missing out. Check it out now at [adventofcode.com](https://adventofcode.com/about)!\n\nI mostly do AoC puzzles for fun, generally coding in Python, but I've also found that it's a great way to get some experience with other programming languages, such as Julia or Rust.\n\nThis repository contains all my solutions to the [AoC 2022](https://adventofcode.com/2022) puzzles using Rust.\n\nAs I'm still learning Rust, the code may not always be as simple or idiomatic as it could be. If you have suggestions for things I could improve, please don't hesitate to file an issue or submit a PR. Thanks!\n\nUsage\n-----\n\nMake sure you have Rust and Git installed, then open a terminal and run:\n\n```shell\ngit clone https://github.com/ageron/aoc2022-rust\ncd aoc2022-rust\ncargo run --release\n```\n\nOn my MacBook, this runs in about 1.7 seconds.\n\nYou can specify days to run if you want, for example this will run days 2, 4, and 6:\n\n```\ncargo run --release 2 4 6\n```\n\nGetting the data\n----------------\n\nI've also included a little `get_data.py` utility to automatically download the data of the day, at the right time (you'll get a countdown if you're early). I was too lazy to code it in Rust, but perhaps I'll port it one day. To use it, just type the following command in a terminal, replacing `{day}` with the day you want:\n\n```\ncd /path/to/this/repository\npython get_data.py 2022 {day}\n```\n\nThe script requires the `requests` and `pytz` libraries, which you can install like this:\n\n```\npython -m pip install --user requests pytz\n```\n\nThe first time you run `get_data.py`, you will be asked to login to AoC in your browser, [find your session cookie](https://github.com/wimglenn/advent-of-code-wim/issues/1), and save it into a `.session` file in the current directory.\n\nHave fun!\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fageron%2Faoc2022-rust","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fageron%2Faoc2022-rust","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fageron%2Faoc2022-rust/lists"}