Skip to content

Don't use proc-macro-hack; use our own slightly-less-hacky hack#1669

Merged
coolreader18 merged 1 commit into
masterfrom
coolreader18/no-proc-macro-hack
Jan 10, 2020
Merged

Don't use proc-macro-hack; use our own slightly-less-hacky hack#1669
coolreader18 merged 1 commit into
masterfrom
coolreader18/no-proc-macro-hack

Conversation

@coolreader18

@coolreader18 coolreader18 commented Jan 10, 2020

Copy link
Copy Markdown
Member

proc-macro-hack is sort of a pain to deal with (based on the nested cargo features that were removed by this), and with Rust 1.40 function-like macros can generate macro_rules!, so this is pretty easy to implement ourselves (proc-macro-hack does something with a custom derive on an enum and stringifying and reparsing the input stream).

@palaviv palaviv left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good. The CI is failing on some redundant new line 😞

@coolreader18 coolreader18 force-pushed the coolreader18/no-proc-macro-hack branch from 5a80d49 to 098532b Compare January 10, 2020 17:29
@coolreader18 coolreader18 merged commit bc0baa4 into master Jan 10, 2020
@coolreader18 coolreader18 deleted the coolreader18/no-proc-macro-hack branch January 14, 2020 17:05
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