- Use
derive_builder,getset, andderive_morewhenever possible. - Do not use positional attributes except for single field structs.
- Do not use public attributes on public structs. Use getters and setters instead.
- Do not use
get_. Do useset_andtake_when necessary. Use_mutfor mutable getters. - Functions that return bool should start with
is_orhas_. - Always use
hasbrownforHashMapandHashSet. - It's better to use .expect
than to useif let Some/Okunless you have an else. This is becauseif letwithout anelsecould hide aNoneorErr` without panicing. - You should not import
bevyfromphysicsexceptbevy::math
This repository was archived by the owner on Nov 6, 2025. It is now read-only.