bevy/crates/bevy_utils/src
Gino Valente 13f2749021
bevy_utils: Export generate_composite_uuid utility function (#10496)
# Objective

The `generate_composite_uuid` utility function hidden in
`bevy_reflect::__macro_exports` could be generally useful to users.

For example, I previously relied on `Hash` to generate a `u64` to create
a deterministic `HandleId`. In v0.12, `HandleId` has been replaced by
`AssetId` which now requires a `Uuid`, which I could generate with this
function.

## Solution

Relocate `generate_composite_uuid` from `bevy_reflect::__macro_exports`
to `bevy_utils::uuid`.

It is still re-exported under `bevy_reflect::__macro_exports` so there
should not be any breaking changes (although, users should generally not
rely on pseudo-private/hidden modules like `__macro_exports`).

I chose to keep it in `bevy_reflect::__macro_exports` so as to not
clutter up our public API and to reduce the number of changes in this
PR. We could have also marked the export as `#[doc(hidden)]`, but
personally I like that we have a dedicated module for this (makes it
clear what is public and what isn't when just looking at the macro
code).

---

## Changelog

- Moved `generate_composite_uuid` to `bevy_utils::uuid` and made it
public
  - Note: it was technically already public, just hidden
2023-11-25 23:21:35 +00:00
..
cow_arc.rs Multiple Asset Sources (#9885) 2023-10-13 23:17:32 +00:00
default.rs default() shorthand (#4071) 2022-03-01 20:52:09 +00:00
float_ord.rs Document That FloatOrd Implements Hash and Eq Too (#5228) 2022-07-11 14:11:27 +00:00
futures.rs Document remaining members of bevy_utils (#6897) 2022-12-11 18:46:42 +00:00
intern.rs Replace all labels with interned labels (#7762) 2023-10-25 21:39:23 +00:00
label.rs Replace all labels with interned labels (#7762) 2023-10-25 21:39:23 +00:00
lib.rs bevy_utils: Export generate_composite_uuid utility function (#10496) 2023-11-25 23:21:35 +00:00
short_names.rs change 'collapse_type_name' to retain enum types (#9587) 2023-08-26 14:50:12 +00:00
synccell.rs Fix some typos (#7763) 2023-02-20 22:56:57 +00:00
syncunsafecell.rs Fix typos throughout the project (#9090) 2023-07-10 00:11:51 +00:00
uuid.rs bevy_utils: Export generate_composite_uuid utility function (#10496) 2023-11-25 23:21:35 +00:00