From bcc99b72e3c138011b51fedd400bbeb513c6a625 Mon Sep 17 00:00:00 2001 From: Pieter E Smit Date: Sat, 29 Apr 2023 12:54:14 +1200 Subject: [PATCH 1/3] rename src/main.rs to src/lib.rs --- src/{main.rs => lib.rs} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename src/{main.rs => lib.rs} (99%) diff --git a/src/main.rs b/src/lib.rs similarity index 99% rename from src/main.rs rename to src/lib.rs index a02f88b..f923a10 100644 --- a/src/main.rs +++ b/src/lib.rs @@ -17,7 +17,7 @@ use linked_hash_map::LinkedHashMap; use std::collections::HashMap; use std::process; -fn main() { +pub fn main() { let matches = app_args(); let benchmark_file = matches.value_of("benchmark").unwrap(); let report_path_option = matches.value_of("report"); From 991d0307b78d583501e3d2311e7b580e7bf00ec1 Mon Sep 17 00:00:00 2001 From: Pieter E Smit Date: Sat, 29 Apr 2023 12:54:48 +1200 Subject: [PATCH 2/3] add new main.rs to call src/lib.rs main --- src/main.rs | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 src/main.rs diff --git a/src/main.rs b/src/main.rs new file mode 100644 index 0000000..965c7e0 --- /dev/null +++ b/src/main.rs @@ -0,0 +1,4 @@ + +fn main() { + drill::main(); +} From 901134a83a54f71627de548daf9f2bbffb2b4d14 Mon Sep 17 00:00:00 2001 From: Pieter E Smit Date: Sat, 29 Apr 2023 13:16:11 +1200 Subject: [PATCH 3/3] cargo fmt --- src/main.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 965c7e0..c53604f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,4 +1,3 @@ - fn main() { drill::main(); }