feat: utils folder

This commit is contained in:
Matej Janezic 2022-12-15 23:58:31 +01:00
parent 00000200d1
commit 0000021036
Signed by: janezicmatej
GPG Key ID: 4298E230ED37B2C0
7 changed files with 7 additions and 4 deletions

2
Cargo.lock generated
View File

@ -24,7 +24,7 @@ dependencies = [
[[package]]
name = "aoc"
version = "20.0.0"
version = "21.0.0"
dependencies = [
"dotenv",
"hashbrown 0.13.1",

View File

@ -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"

View File

@ -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

View 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
View File

@ -0,0 +1 @@
pub const VOWELS: &str = "aeiou";

2
src/utils/mod.rs Normal file
View File

@ -0,0 +1,2 @@
pub mod constants;
pub mod input_parsers;