#game #derive #macro #swamp #game-engine #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

#2614 in Game dev

Download history 153/week @ 2024-11-13 49/week @ 2024-11-20 58/week @ 2024-11-27 76/week @ 2024-12-04 41/week @ 2024-12-11 15/week @ 2024-12-18 3/week @ 2024-12-25 2/week @ 2025-01-01 17/week @ 2025-01-08 14/week @ 2025-01-15 35/week @ 2025-01-22 13/week @ 2025-02-05 18/week @ 2025-02-12 25/week @ 2025-02-19 11/week @ 2025-02-26

67 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

~190–620KB
~15K SLoC