summaryrefslogtreecommitdiffstats
path: root/zellij-tile
diff options
context:
space:
mode:
authordenis <denismaximov98@gmail.com>2021-04-22 11:45:29 +0300
committerdenis <denismaximov98@gmail.com>2021-04-22 11:45:29 +0300
commit8d98ca7da0bc278a832e4e7de23ff63a84deb529 (patch)
treee7fdfaa6c1ae25e7737dbb36bd1dbcb94d62ab47 /zellij-tile
parentb2139f4f3472b0cae18a106479e8a1ef92f7115e (diff)
parent80e1f2927007347d540107b2aa8de7ffac7751b5 (diff)
wip: merge main in
Diffstat (limited to 'zellij-tile')
-rw-r--r--zellij-tile/Cargo.toml4
-rw-r--r--zellij-tile/src/lib.rs4
2 files changed, 4 insertions, 4 deletions
diff --git a/zellij-tile/Cargo.toml b/zellij-tile/Cargo.toml
index eb9a2d594..5a299cb1e 100644
--- a/zellij-tile/Cargo.toml
+++ b/zellij-tile/Cargo.toml
@@ -1,9 +1,9 @@
[package]
name = "zellij-tile"
-version = "0.5.0"
+version = "1.0.0"
authors = ["Brooks J Rady <b.j.rady@gmail.com>"]
edition = "2018"
-description = "A small client-side library for writing Zellij plugins (tiles)"
+description = "A small client-side library for writing Zellij plugins"
license = "MIT"
[dependencies]
diff --git a/zellij-tile/src/lib.rs b/zellij-tile/src/lib.rs
index 72211764b..af7d8ca12 100644
--- a/zellij-tile/src/lib.rs
+++ b/zellij-tile/src/lib.rs
@@ -5,14 +5,14 @@ pub mod shim;
use data::*;
#[allow(unused_variables)]
-pub trait ZellijTile {
+pub trait ZellijPlugin {
fn load(&mut self) {}
fn update(&mut self, event: Event) {}
fn render(&mut self, rows: usize, cols: usize) {}
}
#[macro_export]
-macro_rules! register_tile {
+macro_rules! register_plugin {
($t:ty) => {
thread_local! {
static STATE: std::cell::RefCell<$t> = std::cell::RefCell::new(Default::default());