magicprotorb 0.1.0
magicprotorb lets you `require "magicprotorb/foo/bar_pb"` and have foo/bar.proto compiled to descriptors and registered at require time. The dotted require path mirrors the canonical proto path 1:1, so the require name, the file location, and the descriptor name can never drift apart. A small Rust extension (built on the pure-Rust protox compiler) turns .proto text into a FileDescriptorSet, which is then registered through the stock protobuf DescriptorPool — making the resulting message classes indistinguishable from generated ones.
Gemfile:
=
install:
=
Versions:
- 0.1.0 May 29, 2026 (19.5 KB)
Runtime Dependencies (2):
google-protobuf
>= 3.21, < 5.0
rb_sys
~> 0.9