From b5906e1b0611508f1c3d7ebf58b2253ba0765b03 Mon Sep 17 00:00:00 2001 From: Wroclaw Date: Mon, 22 Jul 2024 23:30:00 +0200 Subject: [PATCH] Cargo: define lib and bin, move main.rs --- Cargo.toml | 8 ++++++++ src/{main.rs => bin/convert_to_braillie.rs} | 0 2 files changed, 8 insertions(+) rename src/{main.rs => bin/convert_to_braillie.rs} (100%) diff --git a/Cargo.toml b/Cargo.toml index e22b480..48f3ca6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,6 +3,14 @@ name = "binary_braillie" version = "0.1.0" edition = "2021" +[lib] +name = "binary_braillie" +path = "src/lib.rs" + +[[bin]] +name = "convert_to_braillie" +path = "src/bin/convert_to_braillie.rs" + [dependencies] hex = "0.4.3" num = "0.4.3" diff --git a/src/main.rs b/src/bin/convert_to_braillie.rs similarity index 100% rename from src/main.rs rename to src/bin/convert_to_braillie.rs