Skip to content

OptimatistOpenSource/psh-proto

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PSH Protobuf Project

This project is shared between different projects that need to communicate with each others via gRPC.

How To Use it?

  • Add this project as a submodule in project that you're working on.
    git submodule add [email protected]:OptimatistOpenSource/psh-proto.git /path/to/psh-proto
  • Initialize and Update Submodule:
    git submodule update --init --recursive
  • Reference the protobuf files within it directly from your project. Import the protobuf definitions in your projects as you normally would.

Rust

To automatically use the latest proto files while you're running cargo build, add this code snippet in your build.rs. For example:

use std::process::Command;

fn main() {
    // Update the psh-proto submodule
    let _ = Command::new("git")
        .args(&["submodule", "update", "--remote", "--merge"])
        .status();

    // Additional build steps if needed

    // Cargo will continue with its default build process after this script exits
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published