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

Publish syn.json in some crate #1803

Open
programmerjake opened this issue Dec 28, 2024 · 0 comments
Open

Publish syn.json in some crate #1803

programmerjake opened this issue Dec 28, 2024 · 0 comments

Comments

@programmerjake
Copy link
Contributor

I'm currently trying to write a processor for syn AST (implementing #[cfg] handling for an attribute macro for fn items), but can't use any of Visit/VisitMut/Fold since I need a custom output type. I'm aware of syn-codegen but afaict neither syn nor syn-codegen as published on crates.io actually include syn.json, and I don't want to require internet access when building my code so can't just download syn.json whenever building...

Maybe publish a syn-data crate that depends on the matching version of syn and just provides syn.json and/or a pub const SYN_JSON: &'static str?

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

No branches or pull requests

1 participant