Skip to content
Snippets Groups Projects
Commit 69f90757 authored by Per Lindgren's avatar Per Lindgren
Browse files

with cargo expand

parent 24caa45a
No related branches found
No related tags found
No related merge requests found
# Proc macro example
> cargo run --example main
To see the result of macro expansion, you need `cargo-expand`.
> cargo install cargo-expand
Now you can run:
> cargo expand --example main > expand_main.rs
#![feature(prelude_import)]
#[prelude_import]
use std::prelude::v1::*;
#[macro_use]
extern crate std;
use d7050e_proc_macro::my_attribute;
fn main() {}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment