infoit 0.1.2

A library for creating infomation for structs and enums.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use infoit::Info;

#[derive(Debug, Clone, Info)]
#[info(tags(foo = "bar", size = 1, bytes = b"hello", json(k1 = "1", k2 = "2")))]
pub(crate) struct MyView {
  foo: u64,
  bar: u32,
}

#[derive(Debug, Clone, Info)]
pub(crate) struct MyTupleView(u64, u32);

fn main() {}