Skip to content

Magua/advent_of_code_setup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Advent of code setup

Rust template with layout prepared for Advent of code 2022. Created to be used to learn Rust.

Environment

  1. First install rustup and cargo from this page.

  2. Consider VS Code and rust-analyzer plugin as development environment.

Run tests with cargo

  • Run all the tests with cargo cargo test
  • Run specific test with cargo cargo test verify_error_handling_not_ok, to run this test anywhere in your code.
  • Run specific test with VS Code.

How to use

December first is prepared with:

  • src/dec01/solution.rs
  • src/dec01.rs
  • test/dec01tests.rs
  • Added row for dec01 module in src/lib.rs

For December 2 and forward just create the three equivalent files above and add module in src/lib.rs.

Todo

  • Test code/days individually with cargo test
  • Read and parse files example
  • Modularize so that previous solutions can be reused without making a mess
  • Demo concurrency with async await abstraction
  • Demo errorhandling with Result

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages