dtolnay / dtolnay/syn

Publish syn.json in some crate

Open
#1,803 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
3.4k
Forks
374
Avg merge
1d 5h
Merged PRs (30d)
2

Description

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`?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.