5 releases
new 0.0.10 | Nov 14, 2024 |
---|---|
0.0.10-dev3 | Nov 9, 2024 |
0.0.10-dev2 | Nov 8, 2024 |
0.0.9 | Nov 8, 2024 |
#10 in #swamp
324 downloads per month
Used in 26 crates
(3 directly)
5KB
swamp-macros 🐊
swamp-macros
is a procedural macro crate designed to simplify the implementation of common traits for swamp-resource type
in Rust applications. It provides a convenient way to derive the Resource
trait for your types.
✨ Features
- Derive Macro: Automatically implement the
Resource
trait for your structs. - Type Safety: Ensures that only types marked as resources can be stored and managed by swamp-resource.
- Ease of Use: Reduce boilerplate code when implementing traits for multiple types.
📦 Installation
To use swamp-macros
, add it to your Cargo.toml
:
[dependencies]
swamp-macros = "0.0.10"
License
This project is licensed under the MIT License - see the LICENSE file for details.
Dependencies
~235–680KB
~16K SLoC