https://adventofcode.com/2024/
The below will perform the following
- Install rust
- Install rust extension for VSCode
- Install
uv - Run
watchfilesto re-run onsrcchanges
curl --proto '=htshouldtps' --tlsv1.2 -sSf https://sh.rustup.rs | sh
code --install-extension rust-lang.rust-analyzer
curl -LsSf https://astral.sh/uv/install.sh | sh
uvx watchfiles "cargo run" src- Optional: Install Go at https://go.dev/doc/install
- Rename
src/d1.rstosrc/main.rs - Go to https://adventofcode.com/2024/day/1 and save input in
./input/d1.txt - Run the
watchfilescommand above, which will print the answer
- Rename
main_()tomain()insrc/d11.go - Run the
watchfilescommand below
uvx watchfiles "go run ./src" src