6 releases (3 breaking)

Uses old Rust 2015

0.4.0 Jan 29, 2021
0.3.3 Apr 18, 2020
0.3.0 Jan 9, 2019
0.2.0 Oct 6, 2018
0.1.0 Jun 12, 2018

#5 in #cdrs

Download history 87/week @ 2024-03-13 54/week @ 2024-03-20 125/week @ 2024-03-27 50/week @ 2024-04-03 78/week @ 2024-04-10 62/week @ 2024-04-17 92/week @ 2024-04-24 27/week @ 2024-05-01 101/week @ 2024-05-08 91/week @ 2024-05-15 104/week @ 2024-05-22 51/week @ 2024-05-29 25/week @ 2024-06-05 36/week @ 2024-06-12 21/week @ 2024-06-19 47/week @ 2024-06-26

134 downloads per month
Used in 3 crates

MIT/Apache

15KB
367 lines

cdrs-helpers-derive

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

The package is under hard development and is absolutely not stable.

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

~2.5MB
~52K SLoC