protoc-gen-mbt

    The Protocol Buffers compiler plugin for MoonBit

    idl
    protobuf
    codegen
    Download zip
    Version
    0.2.0
    License
    Apache-2.0
    Last updated
    18 hours ago
    Downloads
    2

    #MoonBit protobuf generator

    protoc-gen-mbt is a Protocol Buffers compiler plugin that generates MoonBit messages, binary codecs, and optional JSON and asynchronous I/O support.

    #Install

    Install the MoonBit toolchain and protoc, then run:

    moon install moonbitlang/protoc-gen-mbt@0.2.0

    Ensure the directory containing the installed protoc-gen-mbt executable is on your PATH. The project's CI uses protoc 33.0.

    #Generate code

    protoc --mbt_out=. --mbt_opt=project_name=generated example.proto

    project_name names the generated module directory under --mbt_out. Generated modules depend on moonbitlang/protobuf@0.1.3.

    See the project documentation for generator options and the supported features.

    File

    type File

    GeneratedFileKind

    type GeneratedFileKind

    GeneratedFilePlan

    type GeneratedFilePlan

    GeneratedFilePlanEntry

    type GeneratedFilePlanEntry

    ImportNameAlias

    type ImportNameAlias

    PackageManifestImport

    type PackageManifestImport

    PackageManifestPlan

    type PackageManifestPlan

    Stdin

    type Stdin

    Stdout

    type Stdout

    Powered by MoonBit

    Site sourceReport issuePackagesBuild queueSkillsStatistics

    © 2026 mooncakes.io