13 stable releases (4 major)
5.0.3 | Oct 2, 2023 |
---|---|
5.0.2 | Apr 4, 2023 |
5.0.1 | Dec 30, 2022 |
5.0.0 | Sep 19, 2022 |
1.0.1 | Nov 17, 2020 |
#1959 in Procedural macros
2,080 downloads per month
Used in cdrs-tokio
21KB
465 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
~0.7–1.1MB
~25K SLoC