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

macro key-paths-derive

Proc-macro derive to generate keypath methods

20 releases (11 stable)

Uses new Rust 2024

new 1.1.0 Nov 23, 2025
1.0.7 Oct 26, 2025
0.9.0 Oct 18, 2025

#1173 in Procedural macros

Download history 162/week @ 2025-09-14 270/week @ 2025-09-21 171/week @ 2025-09-28 28/week @ 2025-10-05 660/week @ 2025-10-12 732/week @ 2025-10-19 159/week @ 2025-10-26 1/week @ 2025-11-02

1,241 downloads per month
Used in 6 crates

MPL-2.0 license

310KB
4.5K SLoC

🔑 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

~155–560KB
~13K SLoC