swamp-macros

Crates.ioswamp-macros
lib.rsswamp-macros
version0.0.10
sourcesrc
created_at2024-11-08 20:13:03.1721
updated_at2024-11-14 15:33:46.954276
descriptionswamp macros specific for the swamp game engine
homepage
repositoryhttps://github.com/swamp/swamp
max_upload_size
id1441521
size5,769
Peter Bjorklund (piot)

documentation

README

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.

Commit count: 53

cargo fmt