bollard-buildkit-proto

Crates.iobollard-buildkit-proto
lib.rsbollard-buildkit-proto
version0.4.0
sourcesrc
created_at2022-12-10 14:17:33.615479
updated_at2024-07-20 12:31:32.509256
descriptionProtobuf definitions to interact with buildkit using Bollard
homepage
repositoryhttps://github.com/fussybeaver/bollard
max_upload_size
id733854
size454,724
Niel Drummond (fussybeaver)

documentation

README

Buildkit rust proto

This repository contains both the protobuf descriptors and generated output.

The generated files are part of the project to maintain consistency across generated assets in the Bollard project, and to avoid a build dependency on the external protoc binary.

Fetch

To fetch the protobuf files needed in the Bollard project, this step will fetch remote files and replace import statements with local equivalents, so that they can be parsed by prost.

cargo run --bin fetch --features fetch

Generate

You will need a protoc compiler for this step. On unix there is usually a package protobuf-compiler or equivalent.

To generate the rust output from the protobuf files use the following:

cargo run --bin gen --features build
Commit count: 1041

cargo fmt