#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

#43 in #surrealdb

Download history 44/week @ 2024-03-24 21/week @ 2024-03-31 88/week @ 2024-06-09 5/week @ 2024-06-16

93 downloads per month

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
~35K SLoC