bevy/crates/bevy_asset/src
BD103 0b3a51bd7e Add #[deprecated(since = "0.16.0", ...)] to items missing it (#18702)
- The `#[deprecated]` attributes supports a `since` field, which
documents in which version an item was deprecated. This field is visible
in `rustdoc`.
- We inconsistently use `since` throughout the project.

For an example of what `since` renders as, take a look at
`ChildOf::get()`:

```rust
/// The parent entity of this child entity.
pub fn get(&self) -> Entity {
    self.0
}
```

![image](https://github.com/user-attachments/assets/2ea5d8c9-2eab-430a-9a1c-421f315ff123)

- Add `since = "0.16.0"` to all `#[deprecated]` attributes that do not
already use it.
- Add an example of deprecating a struct with the `since` field in the
migration guide document.

I would appreciate if this could be included in 0.16's release, as its a
low-risk documentation improvement that is valuable for the release, but
I'd understand if this was cut.

You can use `cargo doc` to inspect the rendered form of
`#[deprecated(since = "0.16.0", ...)]`.
2025-04-03 21:46:46 +02:00
..
io Don't panic on temporary files in file watcher (#18462) 2025-03-25 22:45:41 +01:00
processor Revert PR #15481 to resolve a regression. (#18567) 2025-03-27 22:58:18 +01:00
server Revert PR #15481 to resolve a regression. (#18567) 2025-03-27 22:58:18 +01:00
asset_changed.rs Generic system config (#17962) 2025-03-12 00:12:30 +00:00
assets.rs Only send unused event when final handle is dropped. (#18641) 2025-03-31 22:33:27 +02:00
direct_access_ext.rs Improve clarity of existing bevy_assets documentation (#17830) 2025-02-13 19:49:25 +00:00
event.rs Fill out some missing docs for bevy_assets (#17829) 2025-02-13 21:08:09 +00:00
folder.rs Fill out some missing docs for bevy_assets (#17829) 2025-02-13 21:08:09 +00:00
handle.rs Add #[deprecated(since = "0.16.0", ...)] to items missing it (#18702) 2025-04-03 21:46:46 +02:00
id.rs bevy_reflect: Add clone registrations project-wide (#18307) 2025-03-17 18:32:35 +00:00
lib.rs remove bevy_log as a dev-dependency from bevy_asset (#18619) 2025-03-31 22:33:24 +02:00
loader_builders.rs Revert PR #15481 to resolve a regression. (#18567) 2025-03-27 22:58:18 +01:00
loader.rs Revert PR #15481 to resolve a regression. (#18567) 2025-03-27 22:58:18 +01:00
meta.rs Harden proc macro path resolution and add integration tests. (#17330) 2025-02-09 19:45:45 +00:00
path.rs AssetServer out of bounds protection (#18088) 2025-03-25 22:44:01 +01:00
reflect.rs Harden proc macro path resolution and add integration tests. (#17330) 2025-02-09 19:45:45 +00:00
render_asset.rs bevy_reflect: Add clone registrations project-wide (#18307) 2025-03-17 18:32:35 +00:00
saver.rs Revert PR #15481 to resolve a regression. (#18567) 2025-03-27 22:58:18 +01:00
transformer.rs Revert PR #15481 to resolve a regression. (#18567) 2025-03-27 22:58:18 +01:00