Commit Graph

22 Commits

Author SHA1 Message Date
charles 7fbea70860 Migrate to using generated code 2026-05-04 10:45:38 -07:00
charles a4fa72c819 Include generated code 2026-05-04 09:23:51 -07:00
charles 22c4e17e9f Fix code generation 2026-05-04 09:23:01 -07:00
charles 87b111faf5 Code compiles, but tests fail 2026-05-04 09:04:28 -07:00
charles d9be36726f Implement protobuf enum and message generation
Add `write_enum` and `write_message` to generate Rust enums and structs
from protobuf descriptors. Update the generator tests to support the
updated `generate_rust_code` signature.
2026-05-04 08:59:23 -07:00
charles 74d975788b add: files 2026-05-03 21:03:55 -07:00
charles 20e4fb909b Generate modules to make easy importing 2026-05-03 20:44:07 -07:00
charles a2a5c12235 Escape 'type' keyword in generated Rust code
Use raw identifiers for fields named "type" to avoid conflicts with the
Rust keyword. Fix field number indexing in tests.
2026-05-03 14:00:20 -07:00
charles b73cbb3dbc Merge branch 'add-generated-markers' and resolve conflicts in src/generator.rs 2026-05-03 13:45:25 -07:00
charles 38367227ed Cache field offsets in generated accessors
Update the generator to store field offsets and ranges within the
generated accessor structs, avoiding repeated buffer scans.
2026-05-03 13:32:39 -07:00
charles 79f2cbf640 Update README, monkey patch generator.rs 2026-05-03 13:31:39 -07:00
charles 31476485cf Add integration test 2026-05-03 13:06:11 -07:00
charles 405a00c7ab Incremental progress 2026-05-03 12:57:14 -07:00
charles 642a78e4e7 Add some tests 2026-05-02 23:01:06 -07:00
charles 8ae8c5dfd3 First pass at plugin gen 2026-05-02 22:48:03 -07:00
charles 33449d00c8 Add EnumDescriptorProto and clap dependency 2026-05-02 22:12:45 -07:00
charles 3454af9604 Add protobuf descriptor and compiler plugin support
Implement accessors and builders for FileDescriptorSet,
CodeGeneratorRequest, CodeGeneratorResponse, and related types.
2026-05-02 21:24:07 -07:00
charles 82577edeac Copy official plugin.proto and deps 2026-05-02 17:57:23 -07:00
charles 021f81b9fe Update README.md 2026-05-02 17:54:56 -07:00
charles 4ee2dcb948 Add more thorough test cases 2026-05-02 17:52:04 -07:00
charles 6912ff37d3 First pass at runtime 2026-04-30 23:13:24 -07:00
charles ae567e5798 Add README 2026-04-30 22:01:41 -07:00