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 24/week @ 2024-11-16 142/week @ 2024-11-23 11/week @ 2024-11-30 127/week @ 2024-12-07 60/week @ 2024-12-14 25/week @ 2024-12-21 8/week @ 2024-12-28 42/week @ 2025-01-04 250/week @ 2025-01-11 68/week @ 2025-01-18 26/week @ 2025-01-25 305/week @ 2025-02-01 120/week @ 2025-02-08 110/week @ 2025-02-15 104/week @ 2025-02-22 97/week @ 2025-03-01

517 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
~55K SLoC