27 releases (14 breaking)

Uses new Rust 2024

new 0.20.0 May 2, 2025
0.18.0 Apr 26, 2025

#31 in #core

Download history 478/week @ 2025-04-05 1057/week @ 2025-04-12 1479/week @ 2025-04-19 941/week @ 2025-04-26

3,955 downloads per month
Used in 20 crates (17 directly)

MIT/Apache

325KB
6.5K 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 Depot

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

~115–540KB