Repository navigation
How to install protobuf compiler v3? #1009
Answered
by
Emilgardis
divagant-martian
asked this question in
Q&A
|
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
|
Answered by
Emilgardis
Sep 6, 2022
Replies: 1 comment 4 replies
|
in cross the |
4 replies
Answer selected by
Emilgardis
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
in cross
0.2.4ubuntu is indeed18.04, if you instead install cross from main you'll have the new images, which should have the version you wantthe
20.04images are scheduled to be released in0.3.0, for now use cross from the main branch