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
18KB
216 lines
Rust Derive Macro for D3 -- A Framework for Server Development
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