Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/astralane/astralane-proto
https://github.com/astralane/astralane-proto
Last synced: 22 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/astralane/astralane-proto
- Owner: Astralane
- Created: 2024-05-17T16:36:51.000Z (9 months ago)
- Default Branch: master
- Last Pushed: 2024-11-20T11:40:37.000Z (3 months ago)
- Last Synced: 2024-11-20T12:41:38.128Z (3 months ago)
- Size: 48.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Astralane protos
Astralane protobuf files for communication between servers.
## Usage
Add this repo as a git submodule to your repo. Here's an example file tree in a Rust codebase:
```
your-rust-repo/
├─ src/
│ ├─ gm/
│ │ ├─ lib.rs
│ ├─ jito-protos/
│ │ ├─ protos/
│ │ │ ├─ *.proto
| | |─ src/
| | | |─ lib.rs
| | |─ build.rs
``````rust
/// lib.rspub mod proto_package {
tonic::include_proto!("proto_package.proto");
}
``````rust
/// build.rsuse tonic_build::configure;
fn main() {
configure()
.compile(
&[
"protos/proto_package.proto",
],
&["protos"],
)
.unwrap();
}```