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 50/week @ 2024-07-22 14/week @ 2024-07-29 24/week @ 2024-08-05 39/week @ 2024-08-12 43/week @ 2024-08-19 98/week @ 2024-08-26 104/week @ 2024-09-02 83/week @ 2024-09-09 4/week @ 2024-09-16 73/week @ 2024-09-23 69/week @ 2024-09-30 207/week @ 2024-10-07 118/week @ 2024-10-14 89/week @ 2024-10-21 7/week @ 2024-10-28 157/week @ 2024-11-04

378 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
~54K SLoC