mirror of
https://github.com/Effect-TS/effect.git
synced 2026-12-04 03:35:36 +08:00
protoc-gen-effect runs through protoc or buf and generates, per .proto file, its resolved FileDescriptor, an interface and a MessageDescriptor per message, and the descriptors of enums, extensions and services. The plugin reads its requests with effect/protobuf's own generated plugin.proto module. ProtobufDescriptorProto and the new ProtobufPluginProto re-export the plugin's plain output, regenerated with `pnpm bootstrap`; the first generation used @bufbuild/protoplugin, which is no longer a dependency. This replaces packages/effect/scripts/protobuf/generate.mjs. Generated modules resolve against the modules they import with the new `dependencies` option of ProtobufDescriptor.make. To break the import cycle with the generated descriptor.proto module, ProtobufDescriptor no longer re-exports descriptor.proto, and fromFileDescriptorSet moved to ProtobufDescriptorProto. Codegen.Module gains isReserved.