From a617f24eae6c02f087759312e9aa08507fbecdf0 Mon Sep 17 00:00:00 2001 From: Edwin Cheng Date: Wed, 18 Mar 2020 17:47:59 +0800 Subject: [PATCH] Add ra_proc_macro --- Cargo.lock | 8 ++++++++ crates/ra_proc_macro/Cargo.toml | 13 +++++++++++++ crates/ra_proc_macro/src/lib.rs | 7 +++++++ 3 files changed, 28 insertions(+) create mode 100644 crates/ra_proc_macro/Cargo.toml create mode 100644 crates/ra_proc_macro/src/lib.rs diff --git a/Cargo.lock b/Cargo.lock index 908319f875b..d61343657c4 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1081,6 +1081,14 @@ dependencies = [ "drop_bomb", ] +[[package]] +name = "ra_proc_macro" +version = "0.1.0" +dependencies = [ + "ra_mbe", + "ra_tt", +] + [[package]] name = "ra_prof" version = "0.1.0" diff --git a/crates/ra_proc_macro/Cargo.toml b/crates/ra_proc_macro/Cargo.toml new file mode 100644 index 00000000000..a0fbb442d83 --- /dev/null +++ b/crates/ra_proc_macro/Cargo.toml @@ -0,0 +1,13 @@ +[package] +edition = "2018" +name = "ra_proc_macro" +version = "0.1.0" +authors = ["rust-analyzer developers"] +publish = false + +[lib] +doctest = false + +[dependencies] +ra_tt = { path = "../ra_tt" } +ra_mbe = { path = "../ra_mbe" } \ No newline at end of file diff --git a/crates/ra_proc_macro/src/lib.rs b/crates/ra_proc_macro/src/lib.rs new file mode 100644 index 00000000000..31e1bb209f9 --- /dev/null +++ b/crates/ra_proc_macro/src/lib.rs @@ -0,0 +1,7 @@ +#[cfg(test)] +mod tests { + #[test] + fn it_works() { + assert_eq!(2 + 2, 4); + } +}