Skip to content

Conversation

@dwerner
Copy link
Owner

@dwerner dwerner commented Oct 29, 2025

Adds method lifetime info so consuming libraries (tocin) can populate types with correct lifetime info.

- Add input_has_arena and output_has_arena boolean fields
- Track whether input/output types require arena lifetime parameter
- Enables conditional lifetime generation in service codegen

Part of refactor: conditional arena lifetime parameters for gRPC methods
- Use existing messages_with_lifetime HashSet to determine arena needs
- Set input_has_arena/output_has_arena when creating Method instances
- Checks protobuf type names against tracked messages with lifetimes

Part of refactor: conditional arena lifetime parameters for gRPC methods
@dwerner dwerner merged commit c6c6f1b into main Oct 30, 2025
2 of 15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants