19 releases (7 breaking)

Uses new Rust 2024

new 0.10.0 Apr 19, 2025
0.9.1 Apr 19, 2025
0.8.2 Apr 16, 2025
0.7.0 Apr 15, 2025
0.2.5 Apr 10, 2025

#30 in #core

Download history 575/week @ 2025-04-05 1031/week @ 2025-04-12

1,606 downloads per month
Used in 15 crates (14 directly)

MIT/Apache

330KB
7K SLoC

Facet logo - a reflection library for Rust

Coverage Status free of syn crates.io documentation MIT/Apache-2.0 licensed

Logo by Misiasart

Thanks to all individual and corporate sponsors, without whom this work could not exist:

Ko-fi GitHub Sponsors Patreon Zed built with blacksmith

Defines the core types and traits used throughout the facet ecosystem for runtime reflection:

  • Facet: exposes a SHAPE associated const
  • Shape: The central type that describes the memory layout and capabilities of a type
  • Various vtables that define how to manipulate types at runtime
  • The Def tree, which describes type definitions (structs, enums, etc.)

This crate is foundational to facet's reflection capabilities, providing the type system that enables runtime type manipulation.

License

Licensed under either of:

at your option.

Dependencies

~180KB