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
558 downloads per month
790KB
17K
SLoC
tinc-build
[!WARNING]
This crate is under active development and may not be stable.
The code generator for tinc
.
Feature flags
prost
(enabled by default) — Enables prost codegendocs
— 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