Crates.io | d3-derive |
lib.rs | d3-derive |
version | 0.1.3 |
source | src |
created_at | 2020-10-17 22:05:32.414896 |
updated_at | 2020-11-13 08:00:50.485321 |
description | A framework for server development -- the derive macro |
homepage | https://github.com/BruceBrown/d3 |
repository | https://github.com/BruceBrown/d3/tree/master/d3-derive |
max_upload_size | |
id | 301672 |
size | 17,858 |
Custom derive for automatically implementing the MachineImpl
trait for an enum, tranforming it into a d3 instruction set. d3-derive is a companion to d3-core and d3-components. Combined, they form a framework for server development.
Add this to your Cargo.toml
:
[dependencies]
d3-derive = "0.1.3"
#[macro_use]
extern crate d3_derive;
#[derive(MachineImpl)]
pub enum Foo {
Bar,
Baz {
name: String,
},
Baa (u32),
}