Update README, monkey patch generator.rs

This commit is contained in:
2026-05-03 13:31:39 -07:00
parent 31476485cf
commit 79f2cbf640
2 changed files with 10 additions and 2 deletions
+8
View File
@@ -12,6 +12,14 @@ And building protos? You use a builder. We don't make some fancy
structure and give you a marshal function, nah. You give us a blob
to write data into, and we write what you tell us, no questions asked.
### Design
The `protoc` command generates a CodeGeneratorRequest message; `protoc-gen-roto` (from src/bin/protoc-gen-roto.rs)
reads this message from stdin, and generated a CodeGeneratorResponse, which it sends to stdout.
The generated files get written to disk by protoc; these should be included in the Rust code being developed to
use the protobuffers in question.
### Sample usage
```rust