From 7aa3a535702ce85b17e87b74aa27b28ede08c9f2 Mon Sep 17 00:00:00 2001 From: Xiretza Date: Thu, 1 Dec 2022 18:11:59 +0100 Subject: [PATCH] Rename rust crates --- 2021/day1/{day1_rs => rust}/Cargo.lock | 0 2021/day1/{day1_rs => rust}/Cargo.toml | 2 +- 2021/day1/{day1_rs => rust}/src/main.rs | 0 2021/day12/{day12_rs => rust}/Cargo.toml | 2 +- 2021/day12/{day12_rs => rust}/src/main.rs | 0 2021/{day16/day16_rs => day13/rust}/Cargo.toml | 2 +- 2021/day13/{day13_rs => rust}/src/main.rs | 0 2021/{day22/day22_rs => day14/rust}/Cargo.toml | 2 +- 2021/day14/{day14_rs => rust}/src/main.rs | 0 2021/{day13/day13_rs => day16/rust}/Cargo.toml | 2 +- 2021/day16/{day16_rs => rust}/src/main.rs | 0 2021/day16/{day16_rs => rust}/src/parsers.rs | 0 2021/{day14/day14_rs => day22/rust}/Cargo.toml | 2 +- 2021/day22/{day22_rs => rust}/src/main.rs | 0 2021/day3/{day3_rs => rust}/Cargo.toml | 2 +- 2021/day3/{day3_rs => rust}/src/main.rs | 0 2021/day5/{day5_rs => rust}/Cargo.toml | 2 +- 2021/day5/{day5_rs => rust}/src/main.rs | 0 2021/day8/{day8_rs => rust}/Cargo.toml | 2 +- 2021/day8/{day8_rs => rust}/benches/unscramble.rs | 2 +- 2021/day8/{day8_rs => rust}/inputs/input.txt | 0 2021/day8/{day8_rs => rust}/inputs/large.txt | 0 2021/day8/{day8_rs => rust}/src/lib.rs | 0 2021/day8/{day8_rs => rust}/src/main.rs | 2 +- 2021/day8/{day8_rs => rust}/src/v1.rs | 0 2021/day8/{day8_rs => rust}/src/v2.rs | 0 2021/day8/{day8_rs => rust}/src/v3.rs | 0 2021/day8/{day8_rs => rust}/tests/unscramble.rs | 2 +- 28 files changed, 12 insertions(+), 12 deletions(-) rename 2021/day1/{day1_rs => rust}/Cargo.lock (100%) rename 2021/day1/{day1_rs => rust}/Cargo.toml (89%) rename 2021/day1/{day1_rs => rust}/src/main.rs (100%) rename 2021/day12/{day12_rs => rust}/Cargo.toml (87%) rename 2021/day12/{day12_rs => rust}/src/main.rs (100%) rename 2021/{day16/day16_rs => day13/rust}/Cargo.toml (88%) rename 2021/day13/{day13_rs => rust}/src/main.rs (100%) rename 2021/{day22/day22_rs => day14/rust}/Cargo.toml (88%) rename 2021/day14/{day14_rs => rust}/src/main.rs (100%) rename 2021/{day13/day13_rs => day16/rust}/Cargo.toml (88%) rename 2021/day16/{day16_rs => rust}/src/main.rs (100%) rename 2021/day16/{day16_rs => rust}/src/parsers.rs (100%) rename 2021/{day14/day14_rs => day22/rust}/Cargo.toml (88%) rename 2021/day22/{day22_rs => rust}/src/main.rs (100%) rename 2021/day3/{day3_rs => rust}/Cargo.toml (88%) rename 2021/day3/{day3_rs => rust}/src/main.rs (100%) rename 2021/day5/{day5_rs => rust}/Cargo.toml (89%) rename 2021/day5/{day5_rs => rust}/src/main.rs (100%) rename 2021/day8/{day8_rs => rust}/Cargo.toml (92%) rename 2021/day8/{day8_rs => rust}/benches/unscramble.rs (97%) rename 2021/day8/{day8_rs => rust}/inputs/input.txt (100%) rename 2021/day8/{day8_rs => rust}/inputs/large.txt (100%) rename 2021/day8/{day8_rs => rust}/src/lib.rs (100%) rename 2021/day8/{day8_rs => rust}/src/main.rs (91%) rename 2021/day8/{day8_rs => rust}/src/v1.rs (100%) rename 2021/day8/{day8_rs => rust}/src/v2.rs (100%) rename 2021/day8/{day8_rs => rust}/src/v3.rs (100%) rename 2021/day8/{day8_rs => rust}/tests/unscramble.rs (97%) diff --git a/2021/day1/day1_rs/Cargo.lock b/2021/day1/rust/Cargo.lock similarity index 100% rename from 2021/day1/day1_rs/Cargo.lock rename to 2021/day1/rust/Cargo.lock diff --git a/2021/day1/day1_rs/Cargo.toml b/2021/day1/rust/Cargo.toml similarity index 89% rename from 2021/day1/day1_rs/Cargo.toml rename to 2021/day1/rust/Cargo.toml index 348a8b1..bedac08 100644 --- a/2021/day1/day1_rs/Cargo.toml +++ b/2021/day1/rust/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "day1_rs" +name = "rust_2021_1" version = "0.1.0" edition = "2021" diff --git a/2021/day1/day1_rs/src/main.rs b/2021/day1/rust/src/main.rs similarity index 100% rename from 2021/day1/day1_rs/src/main.rs rename to 2021/day1/rust/src/main.rs diff --git a/2021/day12/day12_rs/Cargo.toml b/2021/day12/rust/Cargo.toml similarity index 87% rename from 2021/day12/day12_rs/Cargo.toml rename to 2021/day12/rust/Cargo.toml index 76bc485..c6ab7de 100644 --- a/2021/day12/day12_rs/Cargo.toml +++ b/2021/day12/rust/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "day12_rs" +name = "rust_2021_12" version = "0.1.0" edition = "2021" diff --git a/2021/day12/day12_rs/src/main.rs b/2021/day12/rust/src/main.rs similarity index 100% rename from 2021/day12/day12_rs/src/main.rs rename to 2021/day12/rust/src/main.rs diff --git a/2021/day16/day16_rs/Cargo.toml b/2021/day13/rust/Cargo.toml similarity index 88% rename from 2021/day16/day16_rs/Cargo.toml rename to 2021/day13/rust/Cargo.toml index 6d6d7d7..bbf0e22 100644 --- a/2021/day16/day16_rs/Cargo.toml +++ b/2021/day13/rust/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "day16_rs" +name = "rust_2021_13" version = "0.1.0" edition = "2021" diff --git a/2021/day13/day13_rs/src/main.rs b/2021/day13/rust/src/main.rs similarity index 100% rename from 2021/day13/day13_rs/src/main.rs rename to 2021/day13/rust/src/main.rs diff --git a/2021/day22/day22_rs/Cargo.toml b/2021/day14/rust/Cargo.toml similarity index 88% rename from 2021/day22/day22_rs/Cargo.toml rename to 2021/day14/rust/Cargo.toml index 7d07c34..b799017 100644 --- a/2021/day22/day22_rs/Cargo.toml +++ b/2021/day14/rust/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "day22_rs" +name = "rust_2021_14" version = "0.1.0" edition = "2021" diff --git a/2021/day14/day14_rs/src/main.rs b/2021/day14/rust/src/main.rs similarity index 100% rename from 2021/day14/day14_rs/src/main.rs rename to 2021/day14/rust/src/main.rs diff --git a/2021/day13/day13_rs/Cargo.toml b/2021/day16/rust/Cargo.toml similarity index 88% rename from 2021/day13/day13_rs/Cargo.toml rename to 2021/day16/rust/Cargo.toml index 79b502f..326aa66 100644 --- a/2021/day13/day13_rs/Cargo.toml +++ b/2021/day16/rust/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "day13_rs" +name = "rust_2021_16" version = "0.1.0" edition = "2021" diff --git a/2021/day16/day16_rs/src/main.rs b/2021/day16/rust/src/main.rs similarity index 100% rename from 2021/day16/day16_rs/src/main.rs rename to 2021/day16/rust/src/main.rs diff --git a/2021/day16/day16_rs/src/parsers.rs b/2021/day16/rust/src/parsers.rs similarity index 100% rename from 2021/day16/day16_rs/src/parsers.rs rename to 2021/day16/rust/src/parsers.rs diff --git a/2021/day14/day14_rs/Cargo.toml b/2021/day22/rust/Cargo.toml similarity index 88% rename from 2021/day14/day14_rs/Cargo.toml rename to 2021/day22/rust/Cargo.toml index 0984fea..b0ff4a0 100644 --- a/2021/day14/day14_rs/Cargo.toml +++ b/2021/day22/rust/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "day14_rs" +name = "rust_2021_22" version = "0.1.0" edition = "2021" diff --git a/2021/day22/day22_rs/src/main.rs b/2021/day22/rust/src/main.rs similarity index 100% rename from 2021/day22/day22_rs/src/main.rs rename to 2021/day22/rust/src/main.rs diff --git a/2021/day3/day3_rs/Cargo.toml b/2021/day3/rust/Cargo.toml similarity index 88% rename from 2021/day3/day3_rs/Cargo.toml rename to 2021/day3/rust/Cargo.toml index bc126b8..8dd3544 100644 --- a/2021/day3/day3_rs/Cargo.toml +++ b/2021/day3/rust/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "day3_rs" +name = "rust_2021_3" version = "0.1.0" edition = "2021" diff --git a/2021/day3/day3_rs/src/main.rs b/2021/day3/rust/src/main.rs similarity index 100% rename from 2021/day3/day3_rs/src/main.rs rename to 2021/day3/rust/src/main.rs diff --git a/2021/day5/day5_rs/Cargo.toml b/2021/day5/rust/Cargo.toml similarity index 89% rename from 2021/day5/day5_rs/Cargo.toml rename to 2021/day5/rust/Cargo.toml index df8c0bf..de064da 100644 --- a/2021/day5/day5_rs/Cargo.toml +++ b/2021/day5/rust/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "day5_rs" +name = "rust_2021_5" version = "0.1.0" edition = "2021" diff --git a/2021/day5/day5_rs/src/main.rs b/2021/day5/rust/src/main.rs similarity index 100% rename from 2021/day5/day5_rs/src/main.rs rename to 2021/day5/rust/src/main.rs diff --git a/2021/day8/day8_rs/Cargo.toml b/2021/day8/rust/Cargo.toml similarity index 92% rename from 2021/day8/day8_rs/Cargo.toml rename to 2021/day8/rust/Cargo.toml index 3e58a08..1d5e25e 100644 --- a/2021/day8/day8_rs/Cargo.toml +++ b/2021/day8/rust/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "day8_rs" +name = "rust_2021_8" version = "0.1.0" edition = "2021" diff --git a/2021/day8/day8_rs/benches/unscramble.rs b/2021/day8/rust/benches/unscramble.rs similarity index 97% rename from 2021/day8/day8_rs/benches/unscramble.rs rename to 2021/day8/rust/benches/unscramble.rs index 9882899..043dfe7 100644 --- a/2021/day8/day8_rs/benches/unscramble.rs +++ b/2021/day8/rust/benches/unscramble.rs @@ -1,7 +1,7 @@ use std::{fs, path::PathBuf}; use criterion::{black_box, criterion_group, criterion_main, Criterion}; -use day8_rs::{v1, v2, v3}; +use rust_2021_8::{v1, v2, v3}; pub fn criterion_benchmark(c: &mut Criterion) { let mut group = c.benchmark_group("unscramble"); diff --git a/2021/day8/day8_rs/inputs/input.txt b/2021/day8/rust/inputs/input.txt similarity index 100% rename from 2021/day8/day8_rs/inputs/input.txt rename to 2021/day8/rust/inputs/input.txt diff --git a/2021/day8/day8_rs/inputs/large.txt b/2021/day8/rust/inputs/large.txt similarity index 100% rename from 2021/day8/day8_rs/inputs/large.txt rename to 2021/day8/rust/inputs/large.txt diff --git a/2021/day8/day8_rs/src/lib.rs b/2021/day8/rust/src/lib.rs similarity index 100% rename from 2021/day8/day8_rs/src/lib.rs rename to 2021/day8/rust/src/lib.rs diff --git a/2021/day8/day8_rs/src/main.rs b/2021/day8/rust/src/main.rs similarity index 91% rename from 2021/day8/day8_rs/src/main.rs rename to 2021/day8/rust/src/main.rs index 3bd7ec2..3416e56 100644 --- a/2021/day8/day8_rs/src/main.rs +++ b/2021/day8/rust/src/main.rs @@ -1,5 +1,5 @@ #![warn(clippy::pedantic)] -use day8_rs::{v3::unscramble, LineResult}; +use rust_2021_8::{v3::unscramble, LineResult}; use std::io::{stdin, BufRead}; fn main() { diff --git a/2021/day8/day8_rs/src/v1.rs b/2021/day8/rust/src/v1.rs similarity index 100% rename from 2021/day8/day8_rs/src/v1.rs rename to 2021/day8/rust/src/v1.rs diff --git a/2021/day8/day8_rs/src/v2.rs b/2021/day8/rust/src/v2.rs similarity index 100% rename from 2021/day8/day8_rs/src/v2.rs rename to 2021/day8/rust/src/v2.rs diff --git a/2021/day8/day8_rs/src/v3.rs b/2021/day8/rust/src/v3.rs similarity index 100% rename from 2021/day8/day8_rs/src/v3.rs rename to 2021/day8/rust/src/v3.rs diff --git a/2021/day8/day8_rs/tests/unscramble.rs b/2021/day8/rust/tests/unscramble.rs similarity index 97% rename from 2021/day8/day8_rs/tests/unscramble.rs rename to 2021/day8/rust/tests/unscramble.rs index 1615bb8..fff392b 100644 --- a/2021/day8/day8_rs/tests/unscramble.rs +++ b/2021/day8/rust/tests/unscramble.rs @@ -1,6 +1,6 @@ use std::path::PathBuf; -use day8_rs::{v1, v2, v3, LineResult}; +use rust_2021_8::{v1, v2, v3, LineResult}; fn test_unscramble_with_input(f: fn(&str) -> LineResult, input: &[&str]) -> LineResult { let mut result = LineResult {