-
Notifications
You must be signed in to change notification settings - Fork 748
Make syntex optional with nightly rustc #270
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
Conversation
Here's a compare and contrast, using libbindgen with syntex:
libbindgen without syntex:
(Oops, that's slightly overstated, because |
From the travis logs it seems after updating quasi_codegen the macros we define are broken? gah, that's a nasty bug... we can probably work around it, but I'd prefer not. |
Yeah, from
And from the generated
I'll contact upstream. |
It's a known issue upstream: serde-rs/serde#608 |
☔ The latest upstream changes (presumably #269) made this pull request unmergeable. Please resolve the merge conflicts. |
8246993
to
29f6c69
Compare
I'm -1 on this, libsyntax is one of the most unstable crates in Rust private parts. Could we just switch to quote and friends? |
Hmm, I'm not sure I'm clever enough to help with that… but then, I've enjoyed my little adventure through bindgen thus far, so I'll take a look. |
Oh, maybe this isn't so hard. (Probably saying that too soon.) |
☔ The latest upstream changes (presumably #275) made this pull request unmergeable. Please resolve the merge conflicts. |
☔ The latest upstream changes (presumably #329) made this pull request unmergeable. Please resolve the merge conflicts. |
I believe this can be closed for now. Not sure if it's still needed, we're going to transition from syntext to syn soon-ish, I guess :) |
There is another parser that might be a better fit - https://github.com/shepmaster/strata-rust. It is pretty young at this point but looks super promising. |
The start of a change, suggested by @emilio, that will allow users of nightly rustc to drop syntex. It doesn't currently build -- probably requires aster and quasi updates. That might get hairy, so consider this a work in progress and a proposal that can be quickly refused if it's totally off base.
This depends on #269 so currently includes those commits.