Esc

protobuf_generate

procedureextensionsince 0.36.1Source
  • macOS: protobuf_generate works on macOS
  • Linux: protobuf_generate works on Linux
  • Windows: protobuf_generate works on Windows
  • Wasm: protobuf_generate works on Wasm

Generates one module for a protobuf schema and its imports, or options.dir. Free the source or error.message with Basic.free. Parsing scratch uses temp; returned text and error messages use context.allocator.

Signature

protobuf_generate :: (
    text: string,
    options := Generate_Options.{}
) -> (string, Schema_Error)