bevy/crates/bevy_utils/src
Yutao Yuan aabc47f290 Make public macros more robust with $crate (#4655)
# Objective

We have some macros that are public but only used internally for now. They fail on user's code due to the use of crate names like `bevy_utils`, while the user only has `bevy::utils`. There are two affected macros.

- `bevy_utils::define_label`: it may be useful in user's code for defining custom kinds of label traits (this is why I made this PR).
- `bevy_asset::load_internal_asset`: not useful currently due to limitations of the debug asset server, but this may change in the future.

## Solution

We can make them work by using `$crate` instead of names of their own crates, which can refer to the macro's defining crate regardless of the user's setup. Even though our objective is rather low-priority here, the solution adds no maintenance cost so it is still worthwhile.
2022-05-06 19:29:45 +00:00
..
default.rs default() shorthand (#4071) 2022-03-01 20:52:09 +00:00
float_ord.rs Move float_ord from bevy_core to bevy_utils (#4189) 2022-04-27 18:02:05 +00:00
futures.rs use error scope to handle errors on shader module creation (#3675) 2022-03-29 22:39:14 +00:00
label.rs Make public macros more robust with $crate (#4655) 2022-05-06 19:29:45 +00:00
lib.rs Decouple some dependencies (#3886) 2022-04-27 19:08:11 +00:00