#reflection #deserialize #serialization

macro shapely-derive

Proc macro for deriving the 'Shapely' trait in shapely

6 releases (3 major breaking)

Uses new Rust 2024

3.1.0 Mar 31, 2025
3.0.0 Mar 11, 2025
2.0.1 Mar 11, 2025
1.0.0 Mar 10, 2025
0.1.0-alpha.1 Mar 10, 2025

#118 in #reflection

Download history 207/week @ 2025-03-05 121/week @ 2025-03-12 2/week @ 2025-03-19 115/week @ 2025-03-26 65/week @ 2025-04-02

458 downloads per month
Used in 6 crates (2 directly)

MIT/Apache

68KB
1.5K SLoC

shapely-derive

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

shapely-derive provides procedural macros to derive the Shapely trait from shapely.

This crate implements the #[derive(Shapely)] macro which automatically generates runtime reflection code for Rust structs, providing:

  • Structure parsing and representation
  • Field access and manipulation
  • Integration with the shapely runtime reflection system

The implementation uses unsynn for efficient and fast compilation.

Funding

Thanks to Namespace for providing fast GitHub Actions workers:

License

Licensed under either of:

at your option.

Dependencies

~195KB