-
Notifications
You must be signed in to change notification settings - Fork 234
Closed
Description
Is there any way to access the CodeGeneratorRequest
object from what was generated in the build.rs
? What I have in mind is a proc_macro
that implements additional traits for generated Reader and Builder structs based on custom annotations in the .capnp
file?
If there is no way for that, can I write a simple PR that adds a method to capnpc::CompilerCommand
that is similar to file_descriptor_set_path
from prost_build
to output a serialized CodeGeneratorRequest
into the OUT_DIR
so I can read it from my proc_macro
? Or maybe some different way to access it like returning a CodeGeneratorRequest
reader from a separate version of CompilerCommand::run()
function?
Metadata
Metadata
Assignees
Labels
No labels