Skip to content

Commit 1f7de46

Browse files
Improve clarity of tracing log macros migration (#2058)
1 parent f54d79f commit 1f7de46

File tree

1 file changed

+53
-49
lines changed

1 file changed

+53
-49
lines changed

release-content/0.16/migration-guides/bevy_utils_decimation.md

Lines changed: 53 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -5,70 +5,74 @@ Note that certain items have been completely removed, see below for further deta
55

66
**Re-Exports**
77

8-
| Item | 0.15 Path | 0.16 Path |
9-
| ----------------------- | --------------------- | ---------------------------------------------- |
10-
| `hashbrown` | `bevy_utils` | _Removed_ |
11-
| `tracing` | `bevy_utils` | `bevy_log` |
8+
| Item | 0.15 Path | 0.16 Path |
9+
| ----------- | ------------ | ---------- |
10+
| `hashbrown` | `bevy_utils` | _Removed_ |
11+
| `tracing` | `bevy_utils` | `bevy_log` |
1212

1313
**Structs**
1414

15-
| Item | 0.15 Path | 0.16 Path |
16-
| ----------------------- | --------------------- | ---------------------------------------------- |
17-
| `AHasher` | `bevy_utils` | `ahash` |
18-
| `Duration` | `bevy_utils` | `core::time` |
19-
| `FixedState` | `bevy_utils` | `bevy_platform_support::hash` |
20-
| `Hashed` | `bevy_utils` | `bevy_platform_support::hash` |
21-
| `Instant` | `bevy_utils` | `bevy_platform_support::time` |
22-
| `NoOpHash` | `bevy_utils` | `bevy_platform_support::time` |
23-
| `PassHash` | `bevy_utils` | `bevy_platform_support::time` |
24-
| `PassHasher` | `bevy_utils` | `bevy_platform_support::time` |
25-
| `RandomState` | `bevy_utils` | `bevy_platform_support::time` |
26-
| `SystemTime` | `bevy_utils` | `std::time` |
27-
| `SystemTimeError` | `bevy_utils` | `std::time` |
28-
| `TryFromFloatSecsError` | `bevy_utils` | `core::time` |
15+
| Item | 0.15 Path | 0.16 Path |
16+
| ----------------------- | ------------ | ----------------------------- |
17+
| `AHasher` | `bevy_utils` | `ahash` |
18+
| `Duration` | `bevy_utils` | `core::time` |
19+
| `FixedState` | `bevy_utils` | `bevy_platform_support::hash` |
20+
| `Hashed` | `bevy_utils` | `bevy_platform_support::hash` |
21+
| `Instant` | `bevy_utils` | `bevy_platform_support::time` |
22+
| `NoOpHash` | `bevy_utils` | `bevy_platform_support::time` |
23+
| `PassHash` | `bevy_utils` | `bevy_platform_support::time` |
24+
| `PassHasher` | `bevy_utils` | `bevy_platform_support::time` |
25+
| `RandomState` | `bevy_utils` | `bevy_platform_support::time` |
26+
| `SystemTime` | `bevy_utils` | `std::time` |
27+
| `SystemTimeError` | `bevy_utils` | `std::time` |
28+
| `TryFromFloatSecsError` | `bevy_utils` | `core::time` |
2929

3030
**Traits**
3131

32-
| Item | 0.15 Path | 0.16 Path |
33-
| ----------------------- | --------------------- | ---------------------------------------------- |
34-
| `ConditionalSend` | `bevy_utils` | `bevy_tasks` |
35-
| `ConditionalSendFuture` | `bevy_utils` | `bevy_tasks` |
32+
| Item | 0.15 Path | 0.16 Path |
33+
| ----------------------- | ------------ | ------------ |
34+
| `ConditionalSend` | `bevy_utils` | `bevy_tasks` |
35+
| `ConditionalSendFuture` | `bevy_utils` | `bevy_tasks` |
3636

3737
**Macros**
3838

39-
| Item | 0.15 Path | 0.16 Path |
40-
| ----------------------- | --------------------- | ---------------------------------------------- |
41-
| `all_tuples` | `bevy_utils` | `variadics_please` |
42-
| `all_tuples_with_size` | `bevy_utils` | `variadics_please` |
43-
| `debug_once` | `bevy_utils` | `bevy_log` |
44-
| `detailed_trace` | `bevy_utils` | _Removed_ |
45-
| `error_once` | `bevy_utils` | `bevy_log` |
46-
| `info_once` | `bevy_utils` | `bevy_log` |
47-
| `trace_once` | `bevy_utils` | `bevy_log` |
48-
| `warn_once` | `bevy_utils` | `bevy_log` |
39+
| Item | 0.15 Path | 0.16 Path |
40+
| ---------------------- | ------------ | ------------------ |
41+
| `assert_object_safe` | `bevy_utils` | _Removed_ |
42+
| `debug` | `bevy_utils` | `bevy_log` |
43+
| `error` | `bevy_utils` | `bevy_log` |
44+
| `info` | `bevy_utils` | `bevy_log` |
45+
| `warn` | `bevy_utils` | `bevy_log` |
46+
| `all_tuples` | `bevy_utils` | `variadics_please` |
47+
| `all_tuples_with_size` | `bevy_utils` | `variadics_please` |
48+
| `debug_once` | `bevy_utils` | `bevy_log` |
49+
| `detailed_trace` | `bevy_utils` | _Removed_ |
50+
| `error_once` | `bevy_utils` | `bevy_log` |
51+
| `info_once` | `bevy_utils` | `bevy_log` |
52+
| `trace_once` | `bevy_utils` | `bevy_log` |
53+
| `warn_once` | `bevy_utils` | `bevy_log` |
54+
55+
Note that if you were previously relying on `bevy_utils` to get access to
56+
the re-exported `tracing` macros like `info!`, `warn!` or `debug!`, you should
57+
now rely on `bevy_log` instead (or `tracing` itself, being sure to keep the versions aligned).
4958

5059
**Functions**
5160

52-
| Item | 0.15 Path | 0.16 Path |
53-
| ----------------------- | --------------------- | ---------------------------------------------- |
54-
| `assert_object_safe` | `bevy_utils` | _Removed_ |
55-
| `dbg` | `bevy_utils` | _Removed_ |
56-
| `error` | `bevy_utils` | _Removed_ |
57-
| `check_ready` | `bevy_utils::futures` | `bevy_tasks::futures` |
58-
| `now_or_never` | `bevy_utils::futures` | `bevy_tasks::futures` |
59-
| `info` | `bevy_utils` | _Removed_ |
60-
| `warn` | `bevy_utils` | _Removed_ |
61+
| Item | 0.15 Path | 0.16 Path |
62+
| -------------- | --------------------- | --------------------- |
63+
| `check_ready` | `bevy_utils::futures` | `bevy_tasks::futures` |
64+
| `now_or_never` | `bevy_utils::futures` | `bevy_tasks::futures` |
6165

6266
**Type Aliases**
6367

64-
| Item | 0.15 Path | 0.16 Path |
65-
| ----------------------- | --------------------- | ---------------------------------------------- |
66-
| `BoxedFuture` | `bevy_utils` | `bevy_tasks` |
67-
| `Entry` | `bevy_utils` | `bevy_platform_support::collections::hash_map` |
68-
| `HashMap` | `bevy_utils` | `bevy_platform_support::collections` |
69-
| `HashSet` | `bevy_utils` | `bevy_platform_support::collections` |
70-
| `StableHashMap` | `bevy_utils` | _Removed_ |
71-
| `StableHashSet` | `bevy_utils` | _Removed_ |
68+
| Item | 0.15 Path | 0.16 Path |
69+
| --------------- | ------------ | ---------------------------------------------- |
70+
| `BoxedFuture` | `bevy_utils` | `bevy_tasks` |
71+
| `Entry` | `bevy_utils` | `bevy_platform_support::collections::hash_map` |
72+
| `HashMap` | `bevy_utils` | `bevy_platform_support::collections` |
73+
| `HashSet` | `bevy_utils` | `bevy_platform_support::collections` |
74+
| `StableHashMap` | `bevy_utils` | _Removed_ |
75+
| `StableHashSet` | `bevy_utils` | _Removed_ |
7276

7377
**Removed Items**
7478

0 commit comments

Comments
 (0)