diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2025-11-04 10:44:51 +0000 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2025-11-04 10:44:51 +0000 |
| commit | 4d89f4537c325f60571cc6339df0708ee8161514 (patch) | |
| tree | 04f0b46cb9e05957f57f1e4cda5b38daedd34560 | |
| parent | 9394657613014891ff91db6cd0a01b21bb257053 (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.toml | 4 | ||||
| -rw-r--r-- | src/lib.rs | 3 |
2 files changed, 7 insertions, 0 deletions
| @@ -45,6 +45,10 @@ thiserror = "1.0" | |||
| 45 | # Testing | 45 | # Testing |
| 46 | tokio-test = "0.4" | 46 | tokio-test = "0.4" |
| 47 | 47 | ||
| 48 | [lib] | ||
| 49 | name = "ngit_grasp" | ||
| 50 | path = "src/lib.rs" | ||
| 51 | |||
| 48 | [[bin]] | 52 | [[bin]] |
| 49 | name = "ngit-grasp" | 53 | name = "ngit-grasp" |
| 50 | path = "src/main.rs" | 54 | path = "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 @@ | |||
| 1 | pub mod config; | ||
| 2 | pub mod nostr; | ||
| 3 | pub mod storage; | ||