#proc-macro #key-path #keypaths #enum-key-path #type-safe

macro key-paths-macros

Proc-macro derive to generate keypath methods

1 stable release

Uses new Rust 2024

1.0.9 Nov 23, 2025

#822 in Procedural macros

MPL-2.0 license

14KB
223 lines

🔑 KeyPaths & CasePaths in Rust

Key paths and case paths provide a safe, composable way to access and modify nested data in Rust. Inspired by Swift’s KeyPath / CasePath system, this feature rich crate lets you work with struct fields and enum variants as first-class values.


📜 License

  • Mozilla Public License 2.0

Dependencies

~130–510KB
~12K SLoC