Skip to content
This repository was archived by the owner on Jun 8, 2023. It is now read-only.

Commit b97bae9

Browse files
committed
Remove fetching the Noelware/analytics-protobuf git commit that it was built from
1 parent 6f2d8b2 commit b97bae9

File tree

3 files changed

+2
-18
lines changed

3 files changed

+2
-18
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
[package]
2323
name = "analytics-rs"
2424
description = "🐻‍❄️🐾 Rust client and server implementation of the Noelware Analytics Protocol"
25-
version = "1.0.0"
25+
version = "1.0.1"
2626
homepage = "https://analytics.noelware.org"
2727
edition = "2021"
2828
authors = ["Noel Miko <cutie@floofy.dev>", "Noelware Team <team@noelware.org>"]

build.rs

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -19,25 +19,11 @@
1919
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2020
// SOFTWARE.
2121

22-
use std::{error::Error, ffi::OsStr, process::Command};
23-
24-
fn execute<T>(command: T, args: &[&str]) -> Result<String, Box<dyn Error + 'static>>
25-
where
26-
T: Into<String> + AsRef<OsStr>,
27-
{
28-
let res = Command::new(command).args(args).output()?;
29-
Ok(String::from_utf8(res.stdout)?)
30-
}
22+
use std::error::Error;
3123

3224
fn main() -> Result<(), Box<dyn Error>> {
3325
println!("cargo:rerun-if-changed=build.rs");
3426

35-
let binding = execute("git", &["submodule"])?;
36-
let binding = binding.split(' ').collect::<Vec<_>>();
37-
let protobufs_commit = binding.get(1).unwrap();
38-
39-
println!("cargo:rustc-env=PROTOBUFS_COMMIT_HASH={protobufs_commit}");
40-
4127
tonic_build::compile_protos("./vendor/protobufs/connection.proto")?;
4228
Ok(())
4329
}

src/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@
1919
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2020
// SOFTWARE.
2121

22-
pub const PROTOBUFS_COMMIT_HASH: &str = env!("PROTOBUFS_COMMIT_HASH");
23-
2422
mod pb {
2523
include!(concat!(
2624
env!("OUT_DIR"),

0 commit comments

Comments
 (0)