4 releases
new 0.0.10-dev3 | Nov 9, 2024 |
---|---|
0.0.10-dev2 | Nov 8, 2024 |
0.0.9 | Nov 8, 2024 |
#2523 in Game dev
247 downloads per month
Used in 3 crates
4KB
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.9"
License
This project is licensed under the MIT License - see the LICENSE file for details.
Dependencies
~240–690KB
~16K SLoC