Skip to main content

tooling_decode_options

Function tooling_decode_options 

Source
pub fn tooling_decode_options() -> Result<DecodeOptions, String>
Expand description

Decode options for a descriptor set produced by the caller’s own build, honouring ELEMENT_MEMORY_LIMIT_ENV.

The override is an environment variable rather than a protoc plugin option because the options string travels inside the request: it cannot be read until the request has already been decoded.

§Errors

Returns a message naming the variable if its value is not a byte count or unlimited / max.