diff --git a/Cargo.lock b/Cargo.lock index dde1f9a..c0b21dc 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -19,16 +19,30 @@ version = "0.1.0" dependencies = [ "anyhow", "aoc", - "criterion", "md-5", ] +[[package]] +name = "aoc2015_bench" +version = "0.1.0" +dependencies = [ + "aoc2015", + "criterion", +] + [[package]] name = "aoc2018" version = "0.1.0" dependencies = [ "anyhow", "aoc", +] + +[[package]] +name = "aoc2018_bench" +version = "0.1.0" +dependencies = [ + "aoc2018", "criterion", ] @@ -38,6 +52,13 @@ version = "0.1.0" dependencies = [ "anyhow", "aoc", +] + +[[package]] +name = "aoc2019_bench" +version = "0.1.0" +dependencies = [ + "aoc2019", "criterion", ] @@ -47,6 +68,13 @@ version = "0.1.0" dependencies = [ "anyhow", "aoc", +] + +[[package]] +name = "aoc2020_bench" +version = "0.1.0" +dependencies = [ + "aoc2020", "criterion", ] diff --git a/Cargo.toml b/Cargo.toml index 9501de0..7ab5e2e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,5 +1,5 @@ [workspace] -members = ["aoc*"] +members = ["aoc*", "aoc*/aoc*_bench"] default-members = ["aoc2020"] diff --git a/aoc2015/Cargo.toml b/aoc2015/Cargo.toml index 1c46488..8b19df4 100644 --- a/aoc2015/Cargo.toml +++ b/aoc2015/Cargo.toml @@ -6,25 +6,14 @@ edition = "2018" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html -[dev-dependencies] - -criterion = "0.3" - [dependencies] - aoc = { path = "../aoc" } anyhow = "1.0" md-5 = "0.8" [lib] path = "src/lib.rs" -bench = false [[bin]] name = "aoc2015" path = "src/main.rs" -bench = false - -[[bench]] -name = "bench" -harness = false diff --git a/aoc2015/aoc2015_bench/Cargo.toml b/aoc2015/aoc2015_bench/Cargo.toml new file mode 100644 index 0000000..d250c34 --- /dev/null +++ b/aoc2015/aoc2015_bench/Cargo.toml @@ -0,0 +1,17 @@ +[package] +name = "aoc2015_bench" +version = "0.1.0" +authors = ["Antoine Martin "] +edition = "2018" + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] +aoc2015 = { path = "../" } + +[dev-dependencies] +criterion = "0.3" + +[[bench]] +name = "aoc2015_bench" +harness = false diff --git a/aoc2015/benches/bench.rs b/aoc2015/aoc2015_bench/benches/aoc2015_bench.rs similarity index 100% rename from aoc2015/benches/bench.rs rename to aoc2015/aoc2015_bench/benches/aoc2015_bench.rs diff --git a/aoc2018/Cargo.toml b/aoc2018/Cargo.toml index 8833b86..da6ce2b 100644 --- a/aoc2018/Cargo.toml +++ b/aoc2018/Cargo.toml @@ -5,25 +5,14 @@ authors = ["Antoine Martin "] edition = "2018" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html -# -[dev-dependencies] - -criterion = "0.3" [dependencies] - aoc = { path = "../aoc" } anyhow = "1.0" [lib] path = "src/lib.rs" -bench = false [[bin]] name = "aoc2018" path = "src/main.rs" -bench = false - -[[bench]] -name = "bench" -harness = false diff --git a/aoc2018/aoc2018_bench/Cargo.toml b/aoc2018/aoc2018_bench/Cargo.toml new file mode 100644 index 0000000..ba77e7a --- /dev/null +++ b/aoc2018/aoc2018_bench/Cargo.toml @@ -0,0 +1,17 @@ +[package] +name = "aoc2018_bench" +version = "0.1.0" +authors = ["Antoine Martin "] +edition = "2018" + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] +aoc2018 = { path = "../" } + +[dev-dependencies] +criterion = "0.3" + +[[bench]] +name = "aoc2018_bench" +harness = false diff --git a/aoc2018/benches/bench.rs b/aoc2018/aoc2018_bench/benches/aoc2018_bench.rs similarity index 100% rename from aoc2018/benches/bench.rs rename to aoc2018/aoc2018_bench/benches/aoc2018_bench.rs diff --git a/aoc2019/Cargo.toml b/aoc2019/Cargo.toml index 1c7543f..088790c 100644 --- a/aoc2019/Cargo.toml +++ b/aoc2019/Cargo.toml @@ -6,24 +6,13 @@ edition = "2018" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html -[dev-dependencies] - -criterion = "0.3" - [dependencies] - aoc = { path = "../aoc" } anyhow = "1.0" [lib] path = "src/lib.rs" -bench = false [[bin]] name = "aoc2019" path = "src/main.rs" -bench = false - -[[bench]] -name = "bench" -harness = false diff --git a/aoc2019/aoc2019_bench/Cargo.toml b/aoc2019/aoc2019_bench/Cargo.toml new file mode 100644 index 0000000..226729b --- /dev/null +++ b/aoc2019/aoc2019_bench/Cargo.toml @@ -0,0 +1,17 @@ +[package] +name = "aoc2019_bench" +version = "0.1.0" +authors = ["Antoine Martin "] +edition = "2018" + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] +aoc2019 = { path = "../" } + +[dev-dependencies] +criterion = "0.3" + +[[bench]] +name = "aoc2019_bench" +harness = false diff --git a/aoc2019/benches/bench.rs b/aoc2019/aoc2019_bench/benches/aoc2019_bench.rs similarity index 100% rename from aoc2019/benches/bench.rs rename to aoc2019/aoc2019_bench/benches/aoc2019_bench.rs diff --git a/aoc2020/Cargo.toml b/aoc2020/Cargo.toml index c74bcf3..58ee1cf 100644 --- a/aoc2020/Cargo.toml +++ b/aoc2020/Cargo.toml @@ -6,25 +6,13 @@ edition = "2018" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html -[dev-dependencies] - -criterion = "0.3" - [dependencies] - aoc = { path = "../aoc" } - anyhow = "1.0" [lib] path = "src/lib.rs" -bench = false [[bin]] name = "aoc2020" path = "src/main.rs" -bench = false - -[[bench]] -name = "bench" -harness = false diff --git a/aoc2020/aoc2020_bench/Cargo.toml b/aoc2020/aoc2020_bench/Cargo.toml new file mode 100644 index 0000000..93aba78 --- /dev/null +++ b/aoc2020/aoc2020_bench/Cargo.toml @@ -0,0 +1,17 @@ +[package] +name = "aoc2020_bench" +version = "0.1.0" +authors = ["Antoine Martin "] +edition = "2018" + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] +aoc2020 = { path = "../" } + +[dev-dependencies] +criterion = "0.3" + +[[bench]] +name = "aoc2020_bench" +harness = false diff --git a/aoc2020/benches/bench.rs b/aoc2020/aoc2020_bench/benches/aoc2020_bench.rs similarity index 100% rename from aoc2020/benches/bench.rs rename to aoc2020/aoc2020_bench/benches/aoc2020_bench.rs