Free of syn#66
Conversation
|
Welcome, new contributor! Please make sure you've read our contributing guide and we look forward to reviewing your pull request shortly ✨ |
| "MIT-0", | ||
| "Unlicense", | ||
| "Zlib", | ||
| "Unicode-3.0", |
There was a problem hiding this comment.
This just allows unicode symbols to be redistributed freely. Seems alright :)
| [dependencies] | ||
| syn = "2.0" | ||
| quote = "1.0" | ||
| proc-macro2 = "1.0" |
There was a problem hiding this comment.
proc-macro2 is re-exported by unsynn
| license = "MIT OR Apache-2.0" | ||
| keywords = ["bevy", "variadics", "docs"] | ||
| rust-version = "1.81.0" | ||
| rust-version = "1.83.0" |
There was a problem hiding this comment.
Looked it up, this is the minimal version that supports rust-lang/rust#128183, which unsynn uses
| #![allow(missing_docs, reason = "Not all docs are written yet, see #3492.")] | ||
| #![cfg_attr(any(docsrs, docsrs_dep), feature(doc_cfg, rustdoc_internals))] | ||
| #![cfg_attr(any(docsrs, docsrs_dep), feature(doc_cfg))] | ||
| #

Objective
synis hella slow: https://fasterthanli.me/articles/the-virtue-of-unsynnSolution
switch to
unsynn, which is whatfacetusesTesting
cargo testrunscargo buildon my machine with a heavily customized setup reports the following timing:main: 2.16 sunsynn: 0.56 sDisclaimer: I'm not a metaprogramming expert or anything, so please take a critical look at this PR before merging :)
Followup
Add to https://github.com/fasterthanlime/free-of-syn!