Skip to main content

Crate buffa_reflect_derive

Crate buffa_reflect_derive 

Source
Expand description

Proc-macro derive for buffa_reflect::ReflectMessage.

See the buffa-reflect crate documentation for the full reflection API. This crate is exposed transparently through the default derive feature of buffa-reflect.

§Recognized attributes

The macro reads #[buffa_reflect(...)] attributes on the annotated type. Exactly one of the two descriptor-binding keys must appear:

keyvalue
descriptor_poolRust expression yielding &buffa_reflect::DescriptorPool
file_descriptor_set_bytesRust expression yielding &[u8] (a serialized FDS)
message_nameFully-qualified proto name, e.g. "acme.api.v1.User"

buffa-reflect-build injects all three on every generated message; you rarely need to write them by hand.

Derive Macros§

ReflectMessage
Derive buffa_reflect::ReflectMessage for the annotated message struct.