bevy/crates
Zachary Harrold 3c829d7f68
Remove everything except Instant from bevy_utils::time (#17158)
# Objective

- Contributes to #11478
- Contributes to #16877

## Solution

- Removed everything except `Instant` from `bevy_utils::time`

## Testing

- CI

---

## Migration Guide

If you relied on any of the following from `bevy_utils::time`:

- `Duration`
- `TryFromFloatSecsError`

Import these directly from `core::time` regardless of platform target
(WASM, mobile, etc.)

If you relied on any of the following from `bevy_utils::time`:

- `SystemTime`
- `SystemTimeError`

Instead import these directly from either `std::time` or `web_time` as
appropriate for your target platform.

## Notes

`Duration` and `TryFromFloatSecsError` are both re-exports from
`core::time` regardless of whether they are used from `web_time` or
`std::time`, so there is no value gained from re-exporting them from
`bevy_utils::time` as well. As for `SystemTime` and `SystemTimeError`,
no Bevy internal crates or examples rely on these types. Since Bevy
doesn't have a `Time<Wall>` resource for interacting with wall-time (and
likely shouldn't need one), I think removing these from `bevy_utils`
entirely and waiting for a use-case to justify inclusion is a reasonable
path forward.
2025-01-05 20:36:08 +00:00
..
bevy_a11y bevy_a11y: Apply #[deny(clippy::allow_attributes, clippy::allow_attributes_without_reason)] (#17093) 2025-01-02 18:45:19 +00:00
bevy_animation Remove everything except Instant from bevy_utils::time (#17158) 2025-01-05 20:36:08 +00:00
bevy_app Remove everything except Instant from bevy_utils::time (#17158) 2025-01-05 20:36:08 +00:00
bevy_asset Remove everything except Instant from bevy_utils::time (#17158) 2025-01-05 20:36:08 +00:00
bevy_audio Remove all deprecated code (#16338) 2025-01-05 20:33:39 +00:00
bevy_color Remove all deprecated code (#16338) 2025-01-05 20:33:39 +00:00
bevy_core_pipeline Remove all deprecated code (#16338) 2025-01-05 20:33:39 +00:00
bevy_derive Add benchmarks and compile_fail tests back to workspace (#16858) 2024-12-21 22:30:29 +00:00
bevy_dev_tools bevy_dev_tools: Apply #![deny(clippy::allow_attributes, clippy::allow_attributes_without_reason)] (#17159) 2025-01-05 20:32:15 +00:00
bevy_diagnostic Remove everything except Instant from bevy_utils::time (#17158) 2025-01-05 20:36:08 +00:00
bevy_dylib Generate links to definition in source code pages on docs.rs and dev-docs.bevyengine.org (#12965) 2024-07-29 23:10:16 +00:00
bevy_ecs Remove all deprecated code (#16338) 2025-01-05 20:33:39 +00:00
bevy_encase_derive Rust 1.83, allow -> expect (missing_docs) (#16561) 2024-12-16 23:27:57 +00:00
bevy_gilrs Remove everything except Instant from bevy_utils::time (#17158) 2025-01-05 20:36:08 +00:00
bevy_gizmos unmut extracted view queries (#17142) 2025-01-05 20:34:11 +00:00
bevy_gltf Prefer Display over Debug (#16112) 2024-12-27 00:40:06 +00:00
bevy_hierarchy Remove Implicit std Prelude from no_std Crates (#17086) 2025-01-03 01:58:43 +00:00
bevy_image Rust 1.83, allow -> expect (missing_docs) (#16561) 2024-12-16 23:27:57 +00:00
bevy_input Remove everything except Instant from bevy_utils::time (#17158) 2025-01-05 20:36:08 +00:00
bevy_input_focus Return Result from tab navigation API (#17071) 2025-01-01 04:05:48 +00:00
bevy_internal Rename track_change_detection flag to track_location (#17075) 2025-01-01 18:43:47 +00:00
bevy_log Basic filtering examples for users of the bevy_log. (#16455) 2024-12-29 22:56:40 +00:00
bevy_macro_utils Use one BevyManifest instance in proc macros (#16766) 2024-12-15 15:00:05 +00:00
bevy_math Remove all deprecated code (#16338) 2025-01-05 20:33:39 +00:00
bevy_mesh Rust 1.83, allow -> expect (missing_docs) (#16561) 2024-12-16 23:27:57 +00:00
bevy_mikktspace Remove Implicit std Prelude from no_std Crates (#17086) 2025-01-03 01:58:43 +00:00
bevy_pbr Remove all deprecated code (#16338) 2025-01-05 20:33:39 +00:00
bevy_picking Remove everything except Instant from bevy_utils::time (#17158) 2025-01-05 20:36:08 +00:00
bevy_ptr Fix MSRVs for standalone crates (#16333) 2024-11-17 09:38:13 +00:00
bevy_reflect Remove everything except Instant from bevy_utils::time (#17158) 2025-01-05 20:36:08 +00:00
bevy_remote show these 'fully qualified paths' for bevy_remote's rpc (#16944) 2024-12-31 00:29:27 +00:00
bevy_render Remove all deprecated code (#16338) 2025-01-05 20:33:39 +00:00
bevy_scene Remove all deprecated code (#16338) 2025-01-05 20:33:39 +00:00
bevy_sprite unmut extracted view queries (#17142) 2025-01-05 20:34:11 +00:00
bevy_state Remove Implicit std Prelude from no_std Crates (#17086) 2025-01-03 01:58:43 +00:00
bevy_tasks Remove Implicit std Prelude from no_std Crates (#17086) 2025-01-03 01:58:43 +00:00
bevy_text Remove all deprecated code (#16338) 2025-01-05 20:33:39 +00:00
bevy_time Remove everything except Instant from bevy_utils::time (#17158) 2025-01-05 20:36:08 +00:00
bevy_transform Remove all deprecated code (#16338) 2025-01-05 20:33:39 +00:00
bevy_ui unmut extracted view queries (#17142) 2025-01-05 20:34:11 +00:00
bevy_utils Remove everything except Instant from bevy_utils::time (#17158) 2025-01-05 20:36:08 +00:00
bevy_window Derived Default for all public unit components. (#17139) 2025-01-05 02:45:09 +00:00
bevy_winit Remove everything except Instant from bevy_utils::time (#17158) 2025-01-05 20:36:08 +00:00