Skip to content

Add Rust APIs for parsing RBS snippets - #3270

Draft
alexcrocha wants to merge 3 commits into
ruby:masterfrom
Shopify:ar-rust-parser-inline-annotation
Draft

alexcrocha wants to merge 3 commits into
ruby:masterfrom
Shopify:ar-rust-parser-inline-annotation

Conversation

@alexcrocha

Copy link
Copy Markdown
Contributor

Add safe Rust APIs for parsing RBS types, method signatures, and native inline annotations using capabilities already supported by the C parser.

Callers can parse standalone types and signatures directly, without wrapping them in synthetic .rbs declarations. Parsed results keep the parser memory alive, and errors include source locations.

The existing parse() API is unchanged.

@alexcrocha
alexcrocha force-pushed the ar-rust-parser-inline-annotation branch from 547c9f3 to 28f77ac Compare November 3, 2026 22:37
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.

1 participant