Expand description
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
Enums§
- Mode
- The mode to use for the generator, currently we only support
prost
codegen.
Structs§
- Config
- A config for configuring how tinc builds / generates code.