9 releases (stable)

3.2.0-beta.2 Nov 25, 2021
3.2.0-beta.1 Oct 28, 2021
3.1.0 Jun 24, 2021
3.0.0 Apr 27, 2021
1.0.1 Nov 17, 2020

#447 in Rust patterns

Download history 120/week @ 2021-08-13 85/week @ 2021-08-20 95/week @ 2021-08-27 16/week @ 2021-09-03 76/week @ 2021-09-10 71/week @ 2021-09-17 50/week @ 2021-09-24 36/week @ 2021-10-01 60/week @ 2021-10-08 100/week @ 2021-10-15 66/week @ 2021-10-22 32/week @ 2021-10-29 50/week @ 2021-11-05 50/week @ 2021-11-12 37/week @ 2021-11-19 43/week @ 2021-11-26

190 downloads per month
Used in cdrs-tokio

MIT/Apache

17KB
400 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

~290–710KB
~18K SLoC