Skip to content

Rust reflection, serialization, deserialization — know the shape of your types

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

bearcove/shapely

Folders and files

NameName
Last commit message
Last commit date

Latest commit

3881f86 · Mar 11, 2025
Mar 11, 2025
Mar 11, 2025
Mar 11, 2025
Mar 11, 2025
Mar 11, 2025
Mar 11, 2025
Mar 11, 2025
Mar 11, 2025
Mar 10, 2025
Mar 10, 2025
Mar 11, 2025
Mar 11, 2025
Mar 11, 2025
Mar 11, 2025
Mar 11, 2025
Mar 11, 2025

Repository files navigation

shapely

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

Important

There is no stable shapely API as of now (even though it's >1.0.0). The design is very much still being explored.

Expect multiple major versions in the near future — (note left 2025-03-11)

A Rust reflection, introspection, serialization and deserialization framework.

A single, lightweight derive macro (thanks to unsynn)

#[derive(Shapely)]
struct Blah {
    foo: u32,
    bar: String,
}

...gives you the equivalent of Debug, Serialize, Deserialize, and more.

shapely's approach is halfway between serde and bevy_reflect

See the shapely README for more info.

License

Licensed under either of:

at your option.