Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lang/syn: parse entire crate for IDL #517

Merged
merged 3 commits into from
Jul 16, 2021

Conversation

suscd
Copy link
Contributor

@suscd suscd commented Jul 13, 2021

This changes the parsing logic when generating the IDL to include definitions from the entire crate (instead of just one file).

Fixes #26

Adding a utility to load all files for a crate by
following module declarations if they reference
another file. Adapted existing parsing functions to
use the new utility to find all relevant items within
the crate being processed.
@suscd suscd force-pushed the crate-parsing branch 2 times, most recently from 36ae7ac to 61fadf8 Compare July 14, 2021 16:12
@suscd suscd marked this pull request as draft July 14, 2021 17:53
@suscd suscd marked this pull request as ready for review July 14, 2021 21:18
@armaniferrante armaniferrante self-requested a review July 16, 2021 16:43
@armaniferrante armaniferrante merged commit f34d073 into coral-xyz:master Jul 16, 2021
@fanatid fanatid mentioned this pull request Jul 28, 2021
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.

Parse IDL from entire crate
2 participants