d3-derive 0.1.3

A framework for server development -- the derive macro
Documentation

Rust Derive Macro for D3 -- A Framework for Server Development

Build Status Test Status License Cargo Documentation Rust 1.47+

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.

Usage

Add this to your Cargo.toml:

[dependencies]
d3-derive = "0.1.3"

Example

#[macro_use]
extern crate d3_derive;

#[derive(MachineImpl)]
pub enum Foo {
    Bar,
    Baz {
        name: String,
    },
    Baa (u32),
}