9 releases

0.3.3 Oct 10, 2020
0.3.2 Oct 3, 2020
0.3.1 May 26, 2020
0.2.0 Apr 4, 2020
0.1.4 Jan 30, 2020

#299 in #orm

21 downloads per month
Used in orma

MIT license

10KB
181 lines

orma-derive

This crate provides Orma's derive macros.


lib.rs:

This crate provides derive macros for orma.

Example

 use orma::*;
 use serde::{Serialize, Deserialize};

 #[orma_derive::orma_obj(table = "table_name")]
 #[derive(Serialize, Deserialize)]
 struct TestData {
     field_1: String,
     field_2: String,
     some_other_filed: String,
 }

Dependencies

~1.5MB
~38K SLoC