Crate bones_schema

source ·
Expand description

Simple reflection system based on the #[repr(C)] memory layout.

You can derive HasSchema for your Rust types to unlock integration with the bones_schema ecosystem, including bones_ecs and bones_asset.


  • Allocation and collection utilities.
  • The prelude.
  • Schema-aware smart pointers.
  • Traits implementing raw function calls for cloning, dropping, and creating default values for Rust types.
  • Global schema registry.
  • Serde implementations for Schema.




  • Trait implemented for types that can produce an instance of themselves from a Rust type.
  • Trait implemented for types that have a Schema.

Derive Macros

  • Derive macro for the HasSchema trait.