#key-path #type-safe #enum-key-path #writable-key-path #readable-key-path

key-paths-core

Keypaths, ReadableKeyPath, WritableKeyPath and EnumKeypath for struct and enums in Rust

25 releases (stable)

Uses new Rust 2024

new 1.7.0 Nov 23, 2025
1.5.0 Oct 26, 2025
0.9.0 Sep 21, 2025

#1392 in Rust patterns

Download history 373/week @ 2025-08-24 119/week @ 2025-08-31 10/week @ 2025-09-07 178/week @ 2025-09-14 284/week @ 2025-09-21 191/week @ 2025-09-28 36/week @ 2025-10-05 666/week @ 2025-10-12 853/week @ 2025-10-19 165/week @ 2025-10-26 35/week @ 2025-11-02 1/week @ 2025-11-09

1,403 downloads per month
Used in 7 crates

MPL-2.0 license

135KB
2.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

~130KB