Skip to content
This repository has been archived by the owner on Dec 27, 2022. It is now read-only.

Allow building without proc_macro dependency #7

Merged
merged 1 commit into from
Mar 2, 2017
Merged

Allow building without proc_macro dependency #7

merged 1 commit into from
Mar 2, 2017

Conversation

dtolnay
Copy link
Owner

@dtolnay dtolnay commented Mar 2, 2017

@golddranks this lets you disable the proc_macro dependency:

proc-macro-hack = { version = "0.3", default-features = false }

The only catch is that then your crate is responsible for providing ::proc_macro, but as I understand it this should work with musl target.

extern crate proc_macro;

#[macro_use]
extern crate proc_macro_hack;

proc_macro_expr_impl! {
    /* ... */
}

Fixes #6.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant