# tinc-build
> [!WARNING]
> This crate is under active development and may not be stable.
[](https://docs.rs/tinc-build/0.2.1)
[](https://crates.io/crates/tinc-build/0.2.1)



[](https://app.codecov.io/gh/troykomodo/crates)
---
The code generator for [`tinc`](https://crates.io/crates/tinc).
### Feature flags
* **`prost`** *(enabled by default)* — Enables prost codegen
* **`docs`** — Enables documentation of feature flags
### Usage
In your `build.rs`:
````rust,no_run
fn main() {
tinc_build::Config::prost()
.compile_protos(&["proto/test.proto"], &["proto"])
.unwrap();
}
````
Look at [`Config`](https://docs.rs/tinc-build/0.2.1/tinc_build/struct.Config.html) 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`