| Crates.io | rollkit-types |
| lib.rs | rollkit-types |
| version | 0.0.1 |
| created_at | 2025-07-23 16:21:19.971373+00 |
| updated_at | 2025-07-23 16:21:19.971373+00 |
| description | Protocol buffer generated types for Rollkit |
| homepage | https://rollkit.dev |
| repository | https://github.com/rollkit/rollkit |
| max_upload_size | |
| id | 1764997 |
| size | 127,942 |
Proto-generated types for Rollkit.
grpc (enabled by default) - Includes gRPC client and server codetransport - Enables tonic transport features[dependencies]
rollkit-types = "0.1"
If you only need the message types without gRPC client/server code:
[dependencies]
rollkit-types = { version = "0.1", default-features = false }
This is useful when:
This crate generates two versions of the protobuf code:
rollkit.v1.messages.rs - Contains only the message types (structs/enums) with no gRPC dependenciesrollkit.v1.services.rs - Contains everything including gRPC client/server codeBoth files are pre-generated and checked into the repository, so users don't need protoc installed or need to regenerate based on their feature selection.
The proto files are automatically generated during the build process:
cargo build
The generated code is committed to the repository. If you modify the proto files, you need to regenerate:
# From the repository root
make rust-proto-gen
# Or directly
cd client/crates/rollkit-types
cargo build
Important: The build process generates both rollkit.v1.messages.rs and rollkit.v1.services.rs. Both files should be committed to ensure users can use the crate without needing to regenerate based on their feature selection.
Important: The CI uses protoc version 25.1. If your local protoc version differs, you may see formatting differences in the generated files.
To check your protoc version:
protoc --version
To ensure consistency with CI:
./client/scripts/generate-protos.shmake rust-proto-genIf you see differences in generated files between local and CI:
To avoid this:
This crate requires:
protoc (Protocol Buffers compiler)tonic-build for code generationprost for runtime supportThe build dependencies are specified in Cargo.toml and use workspace versions for consistency.