Git-download - a library to get files from a git repository

Hello.

In my development, I need to share proto files between separate repositories. I tried a tool called protodep but it wasn't good for me because I want to write a fetch code in build.rs, followed by tonic_build's compile. Just like this:

git_download::repo("https://github.com/akiradeveloper/lol")
    .branch_name("v0.9.1")
    .add_file("lol-core/proto/lol-core.proto", "proto/lol.proto")
    .exec()?;

tonic_build::configure()
    .build_server(false)
    .compile(&["lol.proto"], &["proto"])?;

I don't know similar tool exists but I thought no after a quick investigation. Tell me one if there is.

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.