tinc-build 0.2.3

A build script that generates code for tinc protobuf annotations
Documentation

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