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