Crate tinc_build

Source
Expand description

The code generator for tinc.

See the changelog for a full release history.

§Feature flags

  • prost (enabled by default) — Enables prost codegen
  • docs — Enables changelog and 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

Modules§

changelog
Changelogs generated by [scuffle_changelog]

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.