tinc-build

Crates.iotinc-build
lib.rstinc-build
version0.2.0
created_at2025-05-12 19:16:02.959368+00
updated_at2025-08-06 13:31:53.73037+00
descriptionA build script that generates code for tinc protobuf annotations
homepage
repositoryhttps://github.com/scufflecloud/scuffle
max_upload_size
id1671006
size556,765
Developers (github:scufflecloud:developers)

documentation

https://docs.rs/tinc-build

README

tinc-build

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

License: MIT OR Apache-2.0 docs.rs crates.io GitHub Actions: ci 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

Commit count: 1522

cargo fmt