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
134 downloads per month
Used in 3 crates
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