Skip to main content

Crate df_derive_macros

Crate df_derive_macros 

Source
Expand description

Proc-macro implementation crate for df-derive.

Most users should depend on the df-derive facade, which re-exports this macro and the default runtime traits from df-derive-core. Depend on df-derive-macros directly when you want to target paft, df-derive-core, or a custom runtime without the facade.

Explicit #[df_derive(trait = "...")] selects a custom runtime path. Explicit paths to the built-in df_derive::dataframe::ToDataFrame or df_derive_core::dataframe::ToDataFrame runtimes are treated as the default runtime and still use the runtime’s hidden dependency re-exports. columnar = "..." may be provided alongside trait = "...", and decimal128_encode = "..." may override decimal dispatch. Built-in dataframe runtime paths cannot be mixed with custom columnar paths. Without runtime overrides, discovery tries df-derive, df-derive-core, paft-utils, paft, then the crate::core::dataframe fallback.

Derive Macros§

ToDataFrame
Derive ToDataFrame for structs and tuple structs to generate fast conversions to Polars.