12 releases (7 breaking)

0.8.0 Jun 17, 2022
0.7.3 Jan 3, 2022
0.7.2 Sep 8, 2021
0.7.0 Jul 16, 2021
0.1.0 Nov 30, 2020

#5 in #arango

Download history 57/week @ 2024-02-18 10/week @ 2024-02-25 7/week @ 2024-03-03 16/week @ 2024-03-10

90 downloads per month
Used in 2 crates (via aragog)

MIT license

44KB
1K SLoC

Logo

Aragog Macros

pipeline status unsafe forbidden MIT licensed Crates.io dependency status

Discord Gitter

Procedural macros utility for aragog (crates.io).

Record derive macro

aragog_macros allows to derive aragog::Record instead of direct implementation. (see the book section)

Available attributes:

  • before_create
  • before_save
  • before_delete
  • before_write
  • before_all
  • after_create
  • after_save
  • after_delete
  • after_write
  • after_all

All these attributes are Record hooks.

Validate derive macro

aragog_macros allows to derive aragog::Validate instead of direct implementation. (see the book section)

Available attributes:

  • validate
  • validate_each

Dependencies

~1.5MB
~34K SLoC