Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/astralane/astralane-proto


https://github.com/astralane/astralane-proto

Last synced: 22 days ago
JSON representation

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.rs

pub mod proto_package {
tonic::include_proto!("proto_package.proto");
}
```

```rust
/// build.rs

use tonic_build::configure;

fn main() {
configure()
.compile(
&[
"protos/proto_package.proto",
],
&["protos"],
)
.unwrap();
}

```