#buildkit #protobuf #generated #bollard #docker #proto #output

bin+lib bollard-buildkit-proto

Protobuf definitions to interact with buildkit using Bollard

6 releases (breaking)

0.5.0 Nov 19, 2024
0.4.0 Jul 20, 2024
0.3.0 Mar 2, 2024
0.2.1 Jan 24, 2024
0.1.0 Dec 10, 2022

#1533 in Network programming

Download history 1018/week @ 2024-08-16 1043/week @ 2024-08-23 614/week @ 2024-08-30 490/week @ 2024-09-06 510/week @ 2024-09-13 375/week @ 2024-09-20 310/week @ 2024-09-27 629/week @ 2024-10-04 416/week @ 2024-10-11 407/week @ 2024-10-18 346/week @ 2024-10-25 574/week @ 2024-11-01 358/week @ 2024-11-08 408/week @ 2024-11-15 357/week @ 2024-11-22 264/week @ 2024-11-29

1,492 downloads per month
Used in 10 crates (4 directly)

Apache-2.0

355KB
7K SLoC

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

Dependencies

~5–15MB
~194K SLoC