<!-- dprint-ignore-file -->
<!-- sync-readme title [[ -->
# tinc-build
<!-- sync-readme ]] -->

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

<!-- sync-readme badge [[ -->
[![docs.rs](https://img.shields.io/docsrs/tinc-build/0.2.2.svg?logo=docs.rs&label=docs.rs&style=flat-square)](https://docs.rs/tinc-build/0.2.2)
[![crates.io](https://img.shields.io/badge/crates.io-v0.2.2-orange?style=flat-square&logo=rust&logoColor=white)](https://crates.io/crates/tinc-build/0.2.2)
![License: MIT OR Apache-2.0](https://img.shields.io/badge/license-MIT%20OR%20Apache--2.0-purple.svg?style=flat-square)
![Crates.io Size](https://img.shields.io/crates/size/tinc-build/0.2.2.svg?style=flat-square)
![Crates.io Downloads](https://img.shields.io/crates/dv/tinc-build/0.2.2.svg?&label=downloads&style=flat-square)
[![Codecov](https://img.shields.io/codecov/c/github/troykomodo/crates.svg?label=codecov&logo=codecov&style=flat-square&component=tinc)](https://app.codecov.io/gh/troykomodo/crates)
<!-- sync-readme ]] -->

---

<!-- sync-readme rustdoc [[ -->
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.2/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`
<!-- sync-readme ]] -->
