syn icon indicating copy to clipboard operation
syn copied to clipboard

Eliminate import wrangling

Open dtolnay opened this issue 7 years ago • 0 comments

Many of our modules have pretty nasty conditional imports.

https://github.com/dtolnay/syn/blob/6f03cfcdd9438fb50a7618882d8ec77f3f12cc2b/src/lit.rs#L9-L24

I believe Serde handles this better by having one shared module that contains all possible imports and is imported all at once by a glob import where needed.

dtolnay avatar Feb 03 '18 17:02 dtolnay