mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-16 14:58:05 +08:00
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:
5
core/editor/src/hint.rs
Normal file
5
core/editor/src/hint.rs
Normal file
@@ -0,0 +1,5 @@
|
||||
use std::collections::HashMap;
|
||||
|
||||
pub trait Hint {
|
||||
fn hints(&self) -> HashMap<String, String>;
|
||||
}
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user