diff --git a/Cargo.toml b/Cargo.toml index 67c39a1..69dac16 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -22,7 +22,7 @@ [package] name = "analytics-rs" description = "🐻‍❄️🐾 Rust client and server implementation of the Noelware Analytics Protocol" -version = "1.0.0" +version = "1.0.1" homepage = "https://analytics.noelware.org" edition = "2021" authors = ["Noel Miko ", "Noelware Team "] diff --git a/build.rs b/build.rs index 3d921a7..86654e2 100644 --- a/build.rs +++ b/build.rs @@ -19,25 +19,11 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. -use std::{error::Error, ffi::OsStr, process::Command}; - -fn execute(command: T, args: &[&str]) -> Result> -where - T: Into + AsRef, -{ - let res = Command::new(command).args(args).output()?; - Ok(String::from_utf8(res.stdout)?) -} +use std::error::Error; fn main() -> Result<(), Box> { println!("cargo:rerun-if-changed=build.rs"); - let binding = execute("git", &["submodule"])?; - let binding = binding.split(' ').collect::>(); - let protobufs_commit = binding.get(1).unwrap(); - - println!("cargo:rustc-env=PROTOBUFS_COMMIT_HASH={protobufs_commit}"); - tonic_build::compile_protos("./vendor/protobufs/connection.proto")?; Ok(()) } diff --git a/src/lib.rs b/src/lib.rs index b47ab42..4a1abf9 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -19,8 +19,6 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. -pub const PROTOBUFS_COMMIT_HASH: &str = env!("PROTOBUFS_COMMIT_HASH"); - mod pb { include!(concat!( env!("OUT_DIR"),