From 0204351caf1b3d81b9b1e3b5693c979a5345a0ef Mon Sep 17 00:00:00 2001 From: Lyle Mantooth Date: Fri, 19 May 2023 21:58:03 -0400 Subject: [PATCH 1/4] Publish to Shipyard. --- .cargo/config.toml | 5 +++++ Cargo.toml | 1 + 2 files changed, 6 insertions(+) create mode 100644 .cargo/config.toml diff --git a/.cargo/config.toml b/.cargo/config.toml new file mode 100644 index 0000000..bf6cb68 --- /dev/null +++ b/.cargo/config.toml @@ -0,0 +1,5 @@ +[unstable] +registry-auth = true + +[registries.menteeth] +index = "https://git.shipyard.rs/menteeth/crate-index.git" diff --git a/Cargo.toml b/Cargo.toml index 0382191..be13afd 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,6 +2,7 @@ name = "locat" version = "0.1.0" edition = "2021" +publish = ["menteeth"] # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html From c666604e2cefea25dfd9918ecdf695a41780188a Mon Sep 17 00:00:00 2001 From: Lyle Mantooth Date: Fri, 19 May 2023 21:58:38 -0400 Subject: [PATCH 2/4] Typo! --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index f8a28c9..d0f0d6a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -4,7 +4,7 @@ use std::net::IpAddr; pub struct Locat {} impl Locat { - pub fn new(_geoip_country_db_path: &str, _analytics_db_path: &str0 -> Self { + pub fn new(_geoip_country_db_path: &str, _analytics_db_path: &str) -> Self { // TODO: read geoip db, create analytics db Self {} } From 36f1bab7e9b6504a9338f9fa8269ff79725947eb Mon Sep 17 00:00:00 2001 From: Lyle Mantooth Date: Fri, 19 May 2023 21:59:16 -0400 Subject: [PATCH 3/4] Shh! This is a library! --- src/{main.rs => lib.rs} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename src/{main.rs => lib.rs} (100%) diff --git a/src/main.rs b/src/lib.rs similarity index 100% rename from src/main.rs rename to src/lib.rs From c05d9a68f42e35ac2a28fa10a3176ea72e5be7a2 Mon Sep 17 00:00:00 2001 From: Lyle Mantooth Date: Fri, 19 May 2023 22:04:38 -0400 Subject: [PATCH 4/4] Use SSH auth. --- .cargo/config.toml | 2 +- Cargo.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.cargo/config.toml b/.cargo/config.toml index bf6cb68..ee1688a 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -2,4 +2,4 @@ registry-auth = true [registries.menteeth] -index = "https://git.shipyard.rs/menteeth/crate-index.git" +index = "ssh://git@git.shipyard.rs/menteeth/crate-index.git" diff --git a/Cargo.toml b/Cargo.toml index be13afd..6a519ea 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "locat" -version = "0.1.0" +version = "0.2.0" edition = "2021" publish = ["menteeth"]