prost-protovalidate-types 0.1.0

buf.validate proto types with prost and prost-reflect support
Documentation

prost-protovalidate-types

Crates.io docs.rs License

Generated Rust types for the buf.validate protobuf schema, built with prost and prost-reflect.

What this crate provides

  • All message and enum types from buf/validate/validate.proto (e.g. FieldRules, MessageRules, OneofRules).
  • A shared DESCRIPTOR_POOL containing the file descriptor set for runtime reflection.
  • Extension traits for extracting constraint annotations from prost-reflect descriptors (FieldConstraintsExt, MessageConstraintsExt, OneofConstraintsExt, and more).

When to use this crate

Most users should depend on prost-protovalidate directly, which includes the evaluation engine and re-exports the types needed for validation.

Use prost-protovalidate-types when you only need the generated types or descriptor pool without the constraint evaluation engine.

Compatibility

prost-protovalidate-types prost prost-reflect MSRV
0.1.x 0.14 0.16 1.86

License

MIT OR Apache-2.0