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

Option for syn/quote #10

Open
tjkirch opened this issue Nov 14, 2019 · 1 comment
Open

Option for syn/quote #10

tjkirch opened this issue Nov 14, 2019 · 1 comment

Comments

@tjkirch
Copy link

tjkirch commented Nov 14, 2019

I appreciate the reasons for converting to watt, but if I have software that already includes syn/quote or whose compile time dominates that of syn/quote, it would be nice to use it rather than including watt and needing a wasm toolchain.

@dtolnay
Copy link

dtolnay commented Nov 16, 2019

FWIW you don't need a wasm toolchain to use watt based macros. (But this is very unclear from the momo readme.)

Try it:

[package]
name = "demo"
version = "0.0.0"
edition = "2018"

[dependencies]
momo = "0.2"
use momo::momo;

#[momo]
fn demo<S: AsRef<str>>(arg: S) {
    println!("{}", arg);
}

fn main() {}

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

No branches or pull requests

2 participants