#protobuf #codegen #grpc #tonic #grpc-protobuf

tinc-build

A build script that generates code for tinc protobuf annotations

12 releases

Uses new Rust 2024

0.2.3 Mar 9, 2026
0.2.2 Mar 7, 2026
0.2.0 Aug 6, 2025
0.1.7 Jul 12, 2025
0.1.3 May 30, 2025

#449 in Procedural macros

Download history 21/week @ 2026-01-01 56/week @ 2026-01-08 7/week @ 2026-01-29 28/week @ 2026-02-05 9/week @ 2026-02-12 37/week @ 2026-02-19 30/week @ 2026-02-26 63/week @ 2026-03-05 18/week @ 2026-03-12

98 downloads per month

MIT/Apache

1MB
18K SLoC

tinc-build

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

docs.rs crates.io License: MIT OR Apache-2.0 Crates.io Size Crates.io Downloads 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

~13–23MB
~424K SLoC