charles
d71d96c15f
Use roto::RawFieldIterator in generated code
2026-05-04 20:28:08 -07:00
charles
3e5544d3d8
Allow unused imports in generated code
2026-05-04 20:19:40 -07:00
charles
04ef952a58
Add Builder::with for updating messages
...
Allow creating a new message based on an existing one, overriding
specific fields while copying the remaining original fields.
2026-05-04 20:11:54 -07:00
charles
05e4c275bb
Add raw field iterator and with builder method
...
- Implement RawFieldIterator and ProtoAccessor::raw_fields that yield
(field_number, raw_bytes) pairs for each field
- Extend Builder with per-field _written flags and add a with()
method to copy unseen fields from a source message
- Add ProtoBuilder::write_raw to copy pre-encoded field bytes
- Add tests for raw-field iteration, verbatim copying, and with()
2026-05-04 19:03:56 -07:00
charles
4a6a09cff1
Add benchmark
2026-05-04 14:40:11 -07:00
charles
b03ec9eba9
fix: tests
2026-05-04 13:46:05 -07:00
charles
858c6968d4
Clean warnings
2026-05-04 11:14:57 -07:00
charles
7fbea70860
Migrate to using generated code
2026-05-04 10:45:38 -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
405a00c7ab
Incremental progress
2026-05-03 12:57:14 -07:00
charles
8ae8c5dfd3
First pass at plugin gen
2026-05-02 22:48:03 -07:00