{"id":29832312,"url":"https://github.com/hauntedhost/advent-of-code-2024","last_synced_at":"2025-07-29T11:36:49.078Z","repository":{"id":266013042,"uuid":"897088165","full_name":"hauntedhost/advent-of-code-2024","owner":"hauntedhost","description":null,"archived":false,"fork":false,"pushed_at":"2024-12-10T06:33:44.000Z","size":177,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-10T07:36:09.273Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":false,"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/hauntedhost.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-12-02T02:08:50.000Z","updated_at":"2024-12-10T06:33:48.000Z","dependencies_parsed_at":"2024-12-05T18:03:25.363Z","dependency_job_id":null,"html_url":"https://github.com/hauntedhost/advent-of-code-2024","commit_stats":null,"previous_names":["hauntedhost/advent-of-code-2024"],"tags_count":0,"template":false,"template_full_name":"fspoettel/advent-of-code-rust","purl":"pkg:github/hauntedhost/advent-of-code-2024","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hauntedhost%2Fadvent-of-code-2024","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hauntedhost%2Fadvent-of-code-2024/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hauntedhost%2Fadvent-of-code-2024/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hauntedhost%2Fadvent-of-code-2024/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hauntedhost","download_url":"https://codeload.github.com/hauntedhost/advent-of-code-2024/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hauntedhost%2Fadvent-of-code-2024/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267678448,"owners_count":24126333,"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","status":"online","status_checked_at":"2025-07-29T02:00:12.549Z","response_time":2574,"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":"2025-07-29T11:35:52.569Z","updated_at":"2025-07-29T11:36:49.066Z","avatar_url":"https://github.com/hauntedhost.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cimg src=\"./.assets/christmas_ferris.png\" width=\"164\"\u003e\n\n# 🎄 Advent of Code 2024\n\nSolutions for [Advent of Code](https://adventofcode.com/) in [Rust](https://www.rust-lang.org/).\n\n\u003c!--- advent_readme_stars table ---\u003e\n## 2024 Results\n\n| Day | Part 1 | Part 2 |\n| :---: | :---: | :---: |\n| [Day 1](https://adventofcode.com/2024/day/1) | ⭐ | ⭐ |\n| [Day 2](https://adventofcode.com/2024/day/2) | ⭐ | ⭐ |\n| [Day 3](https://adventofcode.com/2024/day/3) | ⭐ | ⭐ |\n| [Day 4](https://adventofcode.com/2024/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) | `39.8µs` | `51.8µs` |\n| [Day 2](./src/bin/02.rs) | `40.5µs` | `223.0µs` |\n| [Day 3](./src/bin/03.rs) | `147.4µs` | `334.6µs` |\n| [Day 4](./src/bin/04.rs) | `194.5ms` | `142.3ms` |\n\n**Total: 337.64ms**\n\u003c!--- benchmarking table ---\u003e\n\n---\n\n## Usage\n\n### Common\n\n```sh\ncargo today # Scaffold, download input and read puzzle of the day!\ncargo scaffold [day] --download # Scaffold and download input for specified day\ncargo solve [day] # Solve for specified day\ncargo solve [day] --submit [part] # Solve for day and submit/check solution\ncargo test --bin [day] # Run tests for specified day\ncargo time --all --store # Benchmark all solutions and update readme\n```\n\n### All Commands\n```sh\ncargo all # Solve for all days\ncargo clippy # Lint code\ncargo download [day] # Download input for day\ncargo fmt # Format code\ncargo read [day] # Read puzzle description for specified day\ncargo scaffold [day] --download # Scaffold and download input for specified day\ncargo solve [day] # Solve for specified day\ncargo solve [day] --dhat # Solve and generate dhat-heap.json for https://nnethercote.github.io/dh_view/dh_view.html\ncargo solve [day] --release # Solve for day with optimized release\ncargo solve [day] --submit [part] # Solve for day and submit/check solution\ncargo test # Run all tests\ncargo test --bin [day] # Run tests for specified day\ncargo time --all --store # Benchmark all solutions and update readme\ncargo today # Scaffold, download input and read puzzle of the day!\n```\n\n## Useful crates\n\n- [itertools](https://crates.io/crates/itertools): Extends iterators with extra methods and adaptors. Frequently useful for aoc puzzles.\n- [regex](https://crates.io/crates/regex): Official regular expressions implementation for Rust.\n- [blessred.rs](https://blessed.rs/crates): A curated list of popular crates\n\n---\n👻 [haunted.host](https://www.haunted.host)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhauntedhost%2Fadvent-of-code-2024","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhauntedhost%2Fadvent-of-code-2024","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhauntedhost%2Fadvent-of-code-2024/lists"}