#game #derive #macro #game-engine #swamp #traits

macro swamp-macros

swamp macros specific for the swamp game engine

5 releases

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

#17 in #swamp

Download history 261/week @ 2024-11-08 81/week @ 2024-11-15 48/week @ 2024-11-22

390 downloads per month
Used in 20 crates (3 directly)

MIT license

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