| Crates.io | ev-types |
| lib.rs | ev-types |
| version | 0.0.1 |
| created_at | 2025-08-04 14:07:10.135847+00 |
| updated_at | 2025-08-04 14:07:10.135847+00 |
| description | Protocol buffer generated types for Ev |
| homepage | |
| repository | https://github.com/evstack/ev-node |
| max_upload_size | |
| id | 1780764 |
| size | 159,700 |
Proto-generated types for Ev-node.
grpc (enabled by default) - Includes gRPC client and server codetransport - Enables tonic transport features[dependencies]
ev-types = "0.0.1"
If you only need the message types without gRPC client/server code:
[dependencies]
ev-types = { version = "0.0.1", default-features = false }
This is useful when:
This crate generates two versions of the protobuf code:
evnode.v1.messages.rs - Contains only the message types (structs/enums) with no gRPC dependenciesevnode.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 crate uses pre-generated proto files that are checked into version control. This ensures that the crate can be built from crates.io without requiring access to the original .proto files.
cargo build
The build script will:
src/proto/evnode.v1.*.rs)The generated code is committed to the repository. If you modify the proto files, you need to regenerate:
# Force regeneration by setting the environment variable
EV_TYPES_FORCE_PROTO_GEN=1 cargo build
# Or from the repository root (if a make target exists)
make rust-proto-gen
Important:
evnode.v1.messages.rs and evnode.v1.services.rsImportant: 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.