#mongodb #mango #database #model #macro

macro metamorphose

Macros collection for converting Structure to Model, for a mango-orm project

67 releases

0.4.6 Oct 30, 2021
0.4.4 Sep 11, 2021
0.3.1 Jul 30, 2021
0.2.36-alpha.2 Mar 27, 2021
0.2.2-alpha.2 Nov 21, 2020

#142 in Procedural macros

Download history 5/week @ 2022-01-27 69/week @ 2022-02-17 1/week @ 2022-02-24 1/week @ 2022-03-03 201/week @ 2022-03-10 269/week @ 2022-03-17 7/week @ 2022-04-07 469/week @ 2022-04-28 343/week @ 2022-05-05 1073/week @ 2022-05-12

1,885 downloads per month
Used in mango-panel

MIT/Apache

72KB
1.5K SLoC

Logo

metamorphose

Macros collection for converting Structure to Model, for a mango-orm project.

crates.io crates.io crates.io crates.io

Macros

Model

Macro for converting Structure to mango-orm Model. The model can access the database. The model can create, update, and delete documents in collections.

Requirements

  • quote
  • regex
  • serde_json
  • syn
  • serde

Changelog

  • v0.4.6 Updating by version of dependencies.
  • v0.4.4 Optimization of the validation mechanism.
  • v0.4.3 Improved validation for Slug fields.
  • v0.4.2 Removed hiddenSlug field.
  • v0.4.1 Added is_hide parameter for Widgets.
  • v0.4 Added inputSlug and hiddenSlug fields.
  • v0.3 Removed the Form macro..

License

This project is licensed under the MIT and Apache Version 2.0

Dependencies

~1.6–2.7MB
~69K SLoC