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

Add a feature for linking to proc-macro #65

Merged
merged 2 commits into from
Feb 22, 2018
Merged

Conversation

alexcrichton
Copy link
Contributor

This commit adds a feature to this crate which enables linking to the
upstream proc_macro crate. This should help this compile on targets
which don't have proc_macro and allow it to also be suitable for
embedding in Rust binaries.

This feature is turned on by default for backwards compatibility right
now.

This commit adds a feature to this crate which enables linking to the
upstream `proc_macro` crate. This should help this compile on targets
which don't have `proc_macro` and allow it to also be suitable for
embedding in Rust binaries.

This feature is turned on by default for backwards compatibility right
now.
Cargo.toml Outdated
@@ -27,3 +27,6 @@ unicode-xid = "0.1"
# When disabled: emulate the same API as the nightly compiler's proc_macro crate
# but in a way that works on all stable compilers >=1.15.0.
nightly = []
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am going to add nightly = ["proc-macro"] so that default-features = false, features = ["nightly"] can work.

@dtolnay dtolnay merged commit 5692530 into master Feb 22, 2018
@dtolnay dtolnay deleted the proc-macro-feature branch February 22, 2018 18:51
@alexcrichton
Copy link
Contributor Author

Oh right yes, thanks!

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

Successfully merging this pull request may close these issues.

2 participants