Skip to content

Commit

Permalink
keep compatible with newer protoc version (#65)
Browse files Browse the repository at this point in the history
It can be 22.0, 21.7 etc.

Signed-off-by: Jay Lee <BusyJayLee@gmail.com>
  • Loading branch information
BusyJay committed Mar 7, 2023
1 parent 321ee7d commit 8d1dfba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "protobuf-build"
version = "0.14.0"
version = "0.14.1"
authors = ["Nick Cameron <nrc@ncameron.org>"]
edition = "2018"
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion src/protobuf_impl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ fn get_protoc() -> String {
}

fn check_protoc_version(protoc: &str) -> Result<String, ()> {
let ver_re = Regex::new(r"([0-9]+)\.([0-9]+)\.[0-9]").unwrap();
let ver_re = Regex::new(r"([0-9]+)\.([0-9]+)(\.[0-9])?").unwrap();
let output = Command::new(protoc).arg("--version").output();
match output {
Ok(o) => {
Expand Down

0 comments on commit 8d1dfba

Please sign in to comment.