Skip to main content

Crate api_bones_protos

Crate api_bones_protos 

Source
Expand description

Embedded bytes of the api-bones canonical proto shapes.

This crate ships the bones/v1/*.proto files via include_bytes! and exposes a single accessor — files — that yields (relative_path, bytes) pairs ready for staging onto a protoc include path at consumer build time.

Zero runtime dependencies. This crate exists purely as a distribution mechanism for the bytes. Pair it with any staging library (e.g. proto-build-kit) to assemble a tempdir for codegen tools (connectrpc-build, tonic-prost-build, …).

§Example

let staged = proto_build_kit::Stager::new()
    .with(api_bones_protos::files())
    .stage()
    .expect("stage");
// Add staged.path() to your protoc include path.

§What’s included

The shapes match the proto/bones/v1/ directory in the api-bones repo. See the README for the canonical schema inventory.

Functions§

files
Yield (relative_path, bytes) pairs for every bones/v1/*.proto file shipped by this crate.