feat: utils folder
This commit is contained in:
		
							
								
								
									
										2
									
								
								Cargo.lock
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										2
									
								
								Cargo.lock
									
									
									
										generated
									
									
									
								
							@@ -24,7 +24,7 @@ dependencies = [
 | 
			
		||||
 | 
			
		||||
[[package]]
 | 
			
		||||
name = "aoc"
 | 
			
		||||
version = "20.0.0"
 | 
			
		||||
version = "21.0.0"
 | 
			
		||||
dependencies = [
 | 
			
		||||
 "dotenv",
 | 
			
		||||
 "hashbrown 0.13.1",
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,6 @@
 | 
			
		||||
[package]
 | 
			
		||||
name = "aoc"
 | 
			
		||||
version = "20.0.0"
 | 
			
		||||
version = "21.0.0"
 | 
			
		||||
edition = "2021"
 | 
			
		||||
authors = ["Matej Janežič <janezic.mj@gmail.com>"]
 | 
			
		||||
default-run = "aoc"
 | 
			
		||||
 
 | 
			
		||||
@@ -11,7 +11,7 @@
 | 
			
		||||
        - `*.rs`: convenience scripts
 | 
			
		||||
    - `inputs/`: this directory is gitignored, input files go here
 | 
			
		||||
    - `examples/`: example files go here; you can push this as test are run in ci
 | 
			
		||||
    - `helpers.rs`: helper functions you can reuse in solution files go here
 | 
			
		||||
    - `utils/`: utils files go here
 | 
			
		||||
    - `lib.rs`: contains framework code
 | 
			
		||||
    - `main.rs`: contains framework code
 | 
			
		||||
- `.env.example`: example dotenv file
 | 
			
		||||
 
 | 
			
		||||
@@ -6,7 +6,7 @@
 | 
			
		||||
use std::env;
 | 
			
		||||
use std::fs;
 | 
			
		||||
 | 
			
		||||
pub mod helpers;
 | 
			
		||||
pub mod utils;
 | 
			
		||||
 | 
			
		||||
pub const ANSI_ITALIC: &str = "\x1b[3m";
 | 
			
		||||
pub const ANSI_BOLD: &str = "\x1b[1m";
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										1
									
								
								src/utils/constants.rs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								src/utils/constants.rs
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1 @@
 | 
			
		||||
pub const VOWELS: &str = "aeiou";
 | 
			
		||||
							
								
								
									
										2
									
								
								src/utils/mod.rs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										2
									
								
								src/utils/mod.rs
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,2 @@
 | 
			
		||||
pub mod constants;
 | 
			
		||||
pub mod input_parsers;
 | 
			
		||||
		Reference in New Issue
	
	Block a user