modularize keymaps

This commit is contained in:
🪞👃🪞 2024-07-09 13:30:08 +03:00
parent d8c9abf744
commit 876d26e287
8 changed files with 235 additions and 275 deletions

View file

@ -27,6 +27,11 @@ use crossterm::terminal::{
($($name:ident)*) => { $(mod $name; pub use self::$name::*;)* };
}
/// Define and reexport public modules.
#[macro_export] macro_rules! pubmod {
($($name:ident)*) => { $(pub mod $name;)* };
}
submod!( handle midi render time );
/// Standard result type.
@ -55,7 +60,7 @@ pub trait Device: Render + Handle + Process + Send + Sync {
impl<T: Render + Handle + Process + Send + Sync> Device for T {}
// Reexport macros:
pub use crate::{submod, render, handle, process, phrase, keymap, key, ports};
pub use crate::{submod, pubmod, render, handle, process, phrase, keymap, key, ports};
// Reexport JACK proto-lib:
pub use crate::jack::*;