13 stable releases (4 major)

5.0.3 Oct 2, 2023
5.0.2 Apr 4, 2023
5.0.1 Dec 30, 2022
5.0.0 Sep 19, 2022
1.0.1 Nov 17, 2020

#1959 in Procedural macros

Download history 120/week @ 2024-07-21 307/week @ 2024-07-28 333/week @ 2024-08-04 183/week @ 2024-08-11 215/week @ 2024-08-18 205/week @ 2024-08-25 184/week @ 2024-09-01 306/week @ 2024-09-08 256/week @ 2024-09-15 527/week @ 2024-09-22 387/week @ 2024-09-29 447/week @ 2024-10-06 393/week @ 2024-10-13 496/week @ 2024-10-20 571/week @ 2024-10-27 613/week @ 2024-11-03

2,080 downloads per month
Used in cdrs-tokio

MIT/Apache

21KB
465 lines

cdrs-tokio-helpers-derive

Procedural macros that derive helper traits for CDRS Cassandra to Rust types conversion back and forth

Features:

  • convert Cassandra primitive types (not lists, sets, maps, UDTs) into Rust
  • recursively convert Cassandra "collection" types (lists, sets, maps) into Rust
  • recursively convert Cassandra UDTs into Rust
  • recursively convert optional fields into Rust
  • convert Rust primitive types into Cassandra query values
  • convert Rust "collection" types into Cassandra query values
  • convert Rust structures into Cassandra query values
  • convert Option<T> into Cassandra query value
  • generates an insert method for a Rust struct type

lib.rs:

This trait provides functionality for derivation IntoCDRSBytes trait implementation for underlying

Dependencies

~0.7–1.1MB
~25K SLoC