One of the ways I disagree with many of my esteemed fellow Rust people is that I think #async #RustLang is great. Switching #nextest over to #asynchronous Rust has yielded incredible dividends, including but not limited to what I described in https://sunshowers.io/posts/nextest-and-tokio/.
The ability to write cross-platform heterogenous selects provides an extraordinary amount of power.
BTW, now that I'm at @oxidecomputer, I've been trying out nextest on #illumos and it works with zero (0) code changes!
Day 4: "Camp Cleanup"
This was one of the easier puzzles so far. Didn't bother with tests this time around... might go back and add them in a refactor.
Puzzle:
https://adventofcode.com/2022/day/4
Solution : https://github.com/haruska/aoc22/blob/main/src/day04.rs
Day 3: "Rucksack Reorganization"
Finding the common item in the group of rucksacks sent me down a rabbit hole of trying to find an efficient intersection of multiple HashSets in Rust.
Puzzle:
https://adventofcode.com/2022/day/3
Solution: https://github.com/haruska/aoc22/blob/main/src/day03.rs
Dall-E interpretation of elves and rucksacks 🙂
Day 2: "Rock Paper Scissors"
First good use of enums, structs and traits. Code was more test-driven today. The change in input meaning for part two presented some challenge to code organization for the combined solution.
Puzzle: https://adventofcode.com/2022/day/2
Solution: https://github.com/haruska/aoc22/blob/main/src/day02.rs
Day 1: "Calorie Counting"
Interesting first puzzle. Most of the time was spent on input parsing. Tests were written after the fact but were helpful in refactoring.
Puzzle: https://adventofcode.com/2022/day/1
Solution: https://github.com/haruska/aoc22/blob/main/src/day01.rs
✨ Participating in #AdventOfCode this year using #rust as the implementation language.
Daily updates will be under replies. Let's see how far we can get this season 😅
Solutions posted to GH Repo: https://github.com/haruska/aoc22
Tracked down why rustc might be installed by homebrew. I was playing with cargo-nextest as an alternate test runner. The recommended install path was to use homebrew. That package has a dependency on homebrew rust.
To remove:
homebrew remove cargo-nextest rust
Ran into an issue where clippy was complaining about a crate being compiled against a wrong rustc even though "cargo check" ran successfully.
Turns out if you have a rust version installed via homebrew clippy can choose the incorrect one.
GH Issue: https://github.com/rust-lang/rust-clippy/issues/9560
Staff Developer at Shopify working on GraphQL APIs in Ruby and Rust.