Compare commits

...

2 Commits

Author SHA1 Message Date
Pau Costa 61ef345ff3 🏗️ Moved day1 to a module 2023-12-07 17:13:34 +01:00
Pau Costa b25d79ebf0 Commented gitignore 2023-12-07 17:06:34 +01:00
6 changed files with 25 additions and 9 deletions

20
.gitignore vendored
View File

@ -1,11 +1,19 @@
# IDE Config folders
**/.vscode
**/.idea
**/debug/
**/target/
**/*rs.bk
.vs/
# Java compilation output?
**/.vsidx
**/.suo
**/obj
**/bin
**/.vs
# C# compilation output
debug/
bin/
obj/
# The game inputs will be in .txt
*.txt
# Cargo compilation output
debug/
target/
# Rust fmt stuff
**/*.rs.bk

View File

@ -3,5 +3,5 @@
version = 3
[[package]]
name = "day1"
name = "advent_of_code"
version = "0.1.0"

View File

@ -1,5 +1,5 @@
[package]
name = "day1"
name = "advent_of_code"
version = "0.1.0"
edition = "2021"

View File

@ -1,6 +1,6 @@
use std::fs;
fn main() {
pub fn run_day1(){
let contents = fs::read_to_string("input.txt").expect("Could not read the file");
let first_total_calibration_value = first_impl(&contents);

View File

@ -0,0 +1,8 @@
mod day1;
fn main() {
day1::run_day1()
}