Comments (7)
Hi @Danvil ,
Can you share your Cross.toml
?
I am able to using Cross and Prost and cross compile to various architectures. Here's a link to Cross.toml
from one of my repo.
from prost.
from prost.
Thank you that reference helped!
I added "apt install -y protobuf-compiler",
to my Cross.toml
, but now I get this error:
Error: Custom { kind: Other, error: "protoc failed: foo.proto:5:10: Unrecognized syntax identifier \"proto3\". This parser only recognizes \"proto2\".\n" }
Full Cross.toml
:
[target.aarch64-unknown-linux-gnu]
pre-build = [
"dpkg --add-architecture $CROSS_DEB_ARCH",
"apt-get update && apt-get install -y pkg-config libudev-dev:$CROSS_DEB_ARCH",
"apt install -y protobuf-compiler",
]
from prost.
"main" seems to provide a newer version of protobuf, but unfortunately it is still too old. My protos use optional
and need at least v3.15 (version from early 2021). I guess this issue is not directly related to prost though. I will play around with the cross setup to maybe manually download a newer version.
from prost.
@Danvil Has this been resolved? Can you share the solution and close this issue?
from prost.
@caspermeijn I resolved the issue but unfortunately I don't quite remember exactly how.
I did add this line to my Cross.toml
:
image = "ghcr.io/cross-rs/aarch64-unknown-linux-gnu:main"
Manually specifying an image might have pulled a newer version of the protobuf compiler.
from prost.
@Danvil Could you close the issue, now that it is resolved?
from prost.
Related Issues (20)
- Consistent JSON serialisation HOT 1
- include_file does not work if any of the modules does not declare a package HOT 1
- Can you clarify whether prost works with no_std? HOT 1
- How to get <T> instead of Option<T> as default representation for all user-defined message types HOT 1
- `enable_type_names` fails for multiple proto files with the same package name. Is this expected? HOT 2
- HOWTO decode a serialized protobuf (in C) within Rust (prost crate)? HOT 2
- prost-build doc link broken on docs.rs HOT 2
- `prost-types` crate missing Well Known Types from google.protobuf.wrapper HOT 1
- feature: Deterministic Serialization HOT 2
- How to customize grpc method uri HOT 1
- `proto3` doesn't pack repeated fields by default HOT 5
- Generate `From<>` cast automatically for `protobuf::one`
- Unable to import proto from another library HOT 2
- #[deprecated] decorator is missing on enum access functions
- required field being deserialized as empty string
- prost-build: Allow path globbing for type and field attributes HOT 1
- .
- Rename prost-derive feature to derive HOT 1
- Implement Ord & PartialOrd for prost_types::Timestamp
- Use of "Self" in stripped enum variants HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from prost.