# shapely-derive
[](https://github.com/fasterthanlime/shapely)
[](https://github.com/fasterthanlime/free-of-syn)
[](https://crates.io/crates/shapely-derive)
[](https://docs.rs/shapely-derive)
[](./LICENSE)
> [!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)
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](https://crates.io/crates/unsynn) for efficient and fast compilation.
## License
Licensed under either of:
- Apache License, Version 2.0 ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)
at your option.