#server-framework #framework #server #non-blocking #macro-derive

macro d3-derive

A framework for server development -- the derive macro

4 releases

0.1.3 Nov 13, 2020
0.1.2 Oct 29, 2020
0.1.1 Oct 18, 2020
0.1.0 Oct 17, 2020

#93 in #server-framework

26 downloads per month
Used in 3 crates

MIT/Apache

18KB
216 lines

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),
}

Dependencies

~1.5MB
~34K SLoC