#tonic #protobuf #grpc #codegen

tinc-build

A build script that generates code for tinc protobuf annotations

7 releases

Uses new Rust 2024

new 0.1.6 Jun 16, 2025
0.1.5 Jun 11, 2025
0.1.3 May 30, 2025

#251 in Procedural macros

Download history 382/week @ 2025-05-12 49/week @ 2025-05-19 149/week @ 2025-05-26 32/week @ 2025-06-02 248/week @ 2025-06-09 126/week @ 2025-06-16

558 downloads per month

MIT/Apache

790KB
17K SLoC

tinc-build

[!WARNING]
This crate is under active development and may not be stable.

License: MIT OR Apache-2.0 docs.rs crates.io GitHub Actions: ci Codecov


The code generator for tinc.

Feature flags

  • prost (enabled by default) — Enables prost codegen
  • docs — Enables documentation of feature flags

Usage

In your build.rs:

fn main() {
    tinc_build::Config::prost()
        .compile_protos(&["proto/test.proto"], &["proto"])
        .unwrap();
}

Look at Config to see different options to configure the generator.

License

This project is licensed under the MIT or Apache-2.0 license. You can choose between one of them if you use this work.

SPDX-License-Identifier: MIT OR Apache-2.0

Dependencies

~14–27MB
~414K SLoC