From cb5f0d8fcc5f2cc0a373c433e49578325c19671a Mon Sep 17 00:00:00 2001 From: Vlasislav Kashin <99754299+vloldik@users.noreply.github.com> Date: Sun, 13 Jul 2025 15:01:40 +0300 Subject: [PATCH] Refactor build script --- build/rust_build.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/build/rust_build.rs b/build/rust_build.rs index 8fdb06f..891fcf7 100644 --- a/build/rust_build.rs +++ b/build/rust_build.rs @@ -1,8 +1,9 @@ + +/** TODO: uncomment, move to macros and refactor /** * This file represents content of https://github.com/google/libphonenumber/tree/master/tools/cpp */ -use std::{collections::BTreeMap, fs::File, io::{BufRead, BufReader}, num::ParseIntError, path::Path}; use thiserror::Error; @@ -68,9 +69,9 @@ fn parse_prefixes(path: &str, prefixes: &mut BTreeMap) -> Result<() Ok(()) } +*/ - -fn main() -> Result<(), BuildError> { +fn main() { protobuf_codegen::Codegen::new() .pure() .includes(["resources"]) @@ -78,5 +79,4 @@ fn main() -> Result<(), BuildError> { .input("resources/phonenumber.proto") .cargo_out_dir("proto_gen") .run_from_script(); - Ok(()) } \ No newline at end of file