A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/protocolbuffers/protobuf/commit/6f6012a115ba157db7294add4d4420863aae780c below:

remove `DEP_UPB_VERSION` check in codegen crate (#22764) · protocolbuffers/protobuf@6f6012a · GitHub

File tree Expand file treeCollapse file tree 2 files changed

+0

-13

lines changed

Filter options

Expand file treeCollapse file tree 2 files changed

+0

-13

lines changed Original file line number Diff line number Diff line change

@@ -19,9 +19,4 @@ fn main() {

19 19

.file("libupb/third_party/utf8_range/utf8_range.c")

20 20

.define("UPB_BUILD_API", Some("1"))

21 21

.compile("libupb");

22 - 23 -

let path = std::path::absolute("libupb").expect("Failed to get full path to libupb");

24 - 25 -

println!("cargo:include={}", path.display());

26 -

println!("cargo:version={}", VERSION);

27 22

}

Original file line number Diff line number Diff line change

@@ -131,14 +131,6 @@ impl CodeGen {

131 131

}

132 132 133 133

pub fn generate_and_compile(&self) -> Result<(), String> {

134 -

let upb_version = std::env::var("DEP_UPB_VERSION").expect("DEP_UPB_VERSION should have been set, make sure that the Protobuf crate is a dependency");

135 -

if VERSION != upb_version {

136 -

panic!(

137 -

"protobuf-codegen version {} does not match protobuf version {}.",

138 -

VERSION, upb_version

139 -

);

140 -

}

141 - 142 134

let mut version_cmd = std::process::Command::new("protoc");

143 135

let output = version_cmd.arg("--version").output().map_err(|e| {

144 136

format!("failed to run protoc --version: {} {}", e, missing_protoc_error_message())

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4