Expand description
§polars-structpath-derive
This crate provides procedural derive macros for the polars-structpath ecosystem. It automatically generates Arrow buffer implementations for Rust structs and enums, enabling seamless conversion to and from Apache Arrow arrays for Polars integration.
§Purpose
polars-structpath-derive is a procedural macro crate that generates code for:
- StructPath derive macro: Automatically generates Arrow buffer implementations for structs using
impl_struct_buffer!frompolars-structpath - EnumPath derive macro: Automatically generates Arrow buffer implementations for enums using
impl_enum_buffer!frompolars-structpath
This crate is used by:
polars-structpath: The main user-facing library that re-exports these derive macros- End users: Who apply
#[derive(StructPath)]or#[derive(EnumPath)]to their structs and enums
§Usage
For usage examples, see polars-structpath.
§See Also
- Main README - Overview of the entire
polarspathecosystem - polars-structpath - User-facing API documentation
- polars-protobuf - Protocol Buffers integration
Derive Macros§
- Enum
Path - Derive macro for generating Arrow buffer implementations for enums.
- Struct
Path - Derive macro for generating Arrow buffer implementations for structs.