Skip to content

Astralane/astralane-proto

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 

Repository files navigation

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

pub mod proto_package {
    tonic::include_proto!("proto_package.proto");
}
/// build.rs

use tonic_build::configure;

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published