How to install protobuf compiler v3? #1009
-
I'm trying to install the protobuf compiler version 3 but I keep getting v2 A minimum working example:// cargo new --bin cross_example
// contents of src/main.rs
use std::process::Command;
fn main() {
let output = Command::new("protoc")
.arg("--version")
.output()
.expect("protoc should be installed");
println!("Output: {}", String::from_utf8_lossy(&output.stdout));
let output = Command::new("cat")
.arg("/etc/apt/sources.list")
.output()
.expect("cat should be installed");
println!("Output: {}", String::from_utf8_lossy(&output.stdout));
} the
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
in cross
the |
Beta Was this translation helpful? Give feedback.
in cross
0.2.4
ubuntu is indeed18.04
, if you instead install cross from main you'll have the new images, which should have the version you wantthe
20.04
images are scheduled to be released in0.3.0
, for now use cross from the main branch