Add proc macros for Hint and edge (#63)

* Add proc-macro crate with two macros

* Let cargo recalculate the Cargo.lock

* Add tests and refactor some code to allow testing

also the impl for parse_hint_helper_attrs now preserves order
(which is essential for testing)
This commit is contained in:
T0mstone
2021-04-07 13:51:33 +02:00
committed by GitHub
parent b7f18dfaa8
commit 5f565aeb74
8 changed files with 539 additions and 28 deletions

5
core/editor/src/hint.rs Normal file
View File

@@ -0,0 +1,5 @@
use std::collections::HashMap;
pub trait Hint {
fn hints(&self) -> HashMap<String, String>;
}

View File

@@ -1,8 +1,10 @@
#[macro_use]
mod macros;
mod color;
mod dispatcher;
mod error;
#[macro_use]
mod macros;
pub mod hint;
pub mod tools;
pub mod workspace;