bevy_caravan

Crates.iobevy_caravan
lib.rsbevy_caravan
version0.1.0
sourcesrc
created_at2024-07-17 20:38:40.032855
updated_at2024-07-17 20:38:40.032855
descriptionA function-like proc macro designed for making expressing Bevy's query.get statements easier.
homepage
repositoryhttps://github.com/orangutanrider/bevy_caravan
max_upload_size
id1306584
size147,352
Dominic Rooney (orangutanrider)

documentation

README

Caravan Whiteboard Banner

Caravan is a function-like procedural macro built to make expressing query.get statements easier. For this goal, it employs a minature programming language that is written into the function parameters; Example shown below.

ref_caravan!(entity :: query = bindings);

This code would expand into the following:

let Ok(bindings) = query.get(entity) else { return; };

That's the most basic, and expected to be the most common, use-case. The macro has a wide range of additional features, enabling it to be more flexible. Caravan is currently a work in progress but it's primary functions are finished. Documentation is planned but not finished; The best way to understand the macro as of now would be to take a look at the tests that have been written for it: https://github.com/orangutanrider/bevy_caravan/tree/main/tests

Commit count: 0

cargo fmt