From 949c6459aa7683453a7160423b689ceadb08954b Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Wed, 4 Sep 2024 08:04:48 +0100 Subject: refactor: organise into lib and bin structure the make the code more readable this commit just moves the files, the next commit should fix the imports --- Cargo.toml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'Cargo.toml') diff --git a/Cargo.toml b/Cargo.toml index a45748f..1059f96 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -52,10 +52,14 @@ members = [ "test_utils", ] +[lib] +name = "ngit" +path = "src/lib/mod.rs" + [[bin]] name = "ngit" -path = "src/main.rs" +path = "src/bin/ngit/main.rs" [[bin]] name = "git-remote-nostr" -path = "src/git_remote_helper.rs" +path = "src/bin/git_remote_nostr/main.rs" -- cgit v1.2.3