diff --git a/.cargo/config.toml b/.cargo/config.toml new file mode 100644 index 0000000..ee1688a --- /dev/null +++ b/.cargo/config.toml @@ -0,0 +1,5 @@ +[unstable] +registry-auth = true + +[registries.menteeth] +index = "ssh://git@git.shipyard.rs/menteeth/crate-index.git" diff --git a/Cargo.toml b/Cargo.toml index 0382191..6a519ea 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,8 @@ [package] name = "locat" -version = "0.1.0" +version = "0.2.0" edition = "2021" +publish = ["menteeth"] # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/src/main.rs b/src/lib.rs similarity index 97% rename from src/main.rs rename to src/lib.rs index f8a28c9..d0f0d6a 100644 --- a/src/main.rs +++ b/src/lib.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 {} }