From 7cc5fe5cd008072b99fc470b0ed730f7fa4e2881 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Wed, 7 Jan 2026 04:03:34 +0100 Subject: debug inpect impl --- common/src/lib.rs | 21 ++------------------- 1 file changed, 2 insertions(+), 19 deletions(-) (limited to 'common/src/lib.rs') diff --git a/common/src/lib.rs b/common/src/lib.rs index 1359c73..2cbbfce 100644 --- a/common/src/lib.rs +++ b/common/src/lib.rs @@ -5,9 +5,9 @@ */ #![feature(array_try_map)] pub mod routes; -use jellyobject::{Object, Registry, Tag, TagInfo, TypedTag}; +use jellyobject::{Object, Registry, Tag, enums, fields}; pub use jellystream_types as stream; -use std::{any::TypeId, marker::PhantomData, sync::LazyLock}; +use std::sync::LazyLock; pub use jellyobject; @@ -18,23 +18,6 @@ pub static TAGREG: LazyLock = LazyLock::new(|| { reg }); -macro_rules! fields { - ($($id:ident: $type:ty = $tag:literal $name:literal;)*) => { - $(pub const $id: TypedTag<$type> = TypedTag(Tag($tag), PhantomData);)* - fn register_fields(reg: &mut Registry) { - $(reg.add(Tag($tag), TagInfo { name: $name, r#type: Some(TypeId::of::<$type>()) });)* - } - }; -} -macro_rules! enums { - ($($id:ident = $tag:literal $name:literal;)*) => { - $(pub const $id: Tag = Tag($tag);)* - fn register_enums(reg: &mut Registry) { - $(reg.add(Tag($tag), TagInfo { name: $name, r#type: None });)* - } - }; -} - fields! { // Tag counter: 36 -- cgit v1.3