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

Port to new proc macro interface #95

Merged
merged 17 commits into from
Jul 30, 2017
Merged

Port to new proc macro interface #95

merged 17 commits into from
Jul 30, 2017

Conversation

lambda-fairy
Copy link
Owner

@lambda-fairy lambda-fairy commented Jul 29, 2017

This changes how Maud is imported.

Users will need to change their code from this:

// Maud 0.16
#![feature(plugin)]
#![plugin(maud_macros)]
extern crate maud;

to this:

// Maud 0.17
#![feature(proc_macro)]
extern crate maud;
use maud::html;

Note the lack of #![plugin] or #[macro_use] attributes -- the new proc macro system allows for importing macros in the same way as any other item.

Closes #92

@lambda-fairy lambda-fairy force-pushed the proc-macro branch 2 times, most recently from 85ca35f to f1fbea1 Compare July 29, 2017 08:17
@lambda-fairy lambda-fairy merged commit 4f71893 into master Jul 30, 2017
@lambda-fairy lambda-fairy deleted the proc-macro branch July 30, 2017 02:14
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.

None yet

1 participant