upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanConwayDev <DanConwayDev@protonmail.com>2025-11-04 10:44:51 +0000
committerDanConwayDev <DanConwayDev@protonmail.com>2025-11-04 10:44:51 +0000
commit4d89f4537c325f60571cc6339df0708ee8161514 (patch)
tree04f0b46cb9e05957f57f1e4cda5b38daedd34560
parent9394657613014891ff91db6cd0a01b21bb257053 (diff)
feat: add library target for unit testing
- Create src/lib.rs with module exports - Update Cargo.toml with [lib] section - All 5 unit tests passing
-rw-r--r--Cargo.toml4
-rw-r--r--src/lib.rs3
2 files changed, 7 insertions, 0 deletions
diff --git a/Cargo.toml b/Cargo.toml
index dec6113..bdad683 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -45,6 +45,10 @@ thiserror = "1.0"
45# Testing 45# Testing
46tokio-test = "0.4" 46tokio-test = "0.4"
47 47
48[lib]
49name = "ngit_grasp"
50path = "src/lib.rs"
51
48[[bin]] 52[[bin]]
49name = "ngit-grasp" 53name = "ngit-grasp"
50path = "src/main.rs" 54path = "src/main.rs"
diff --git a/src/lib.rs b/src/lib.rs
new file mode 100644
index 0000000..f4a8cbf
--- /dev/null
+++ b/src/lib.rs
@@ -0,0 +1,3 @@
1pub mod config;
2pub mod nostr;
3pub mod storage;