#surrealdb #macro #client

macro surreal-derive

Derive macros for SurrealDB Rust client

2 releases

0.1.1 Nov 15, 2022
0.1.0 Nov 14, 2022

#38 in #surrealdb

MIT license

8KB
68 lines

surreal-derive

Set of macros to aid in utilizing the SurrealDB server library for rust.

Todo's

  • Derive macro FromValue for named structs
  • Derive macro IntoValue for named structs
  • Enum support
  • Nested objects support
  • Generics support
  • Lifetimes support
  • Compile time checked queries (Like sqlx)
  • Auto defining tables from a struct

Dependencies

~1.5MB
~34K SLoC