
Makes use of `std` explicit, simplifying a possible `no_std` port. # Objective - Contributes to #15460 - Simplify future `no_std` work on `bevy_asset` ## Solution - Add `#![no_std]` to switch to `core::prelude` instead of `std::prelude` ## Testing - CI --- ## Notes This is entirely a change around the names of imports and has no impact on functionality. This just reduces the quantity of changes involved in the (likely more controversial) `no_std`-ification of `bevy_asset`.
15 lines
350 B
Rust
15 lines
350 B
Rust
use alloc::vec::Vec;
|
|
|
|
use crate as bevy_asset;
|
|
use crate::{Asset, UntypedHandle};
|
|
use bevy_reflect::TypePath;
|
|
|
|
/// A "loaded folder" containing handles for all assets stored in a given [`AssetPath`].
|
|
///
|
|
/// [`AssetPath`]: crate::AssetPath
|
|
#[derive(Asset, TypePath)]
|
|
pub struct LoadedFolder {
|
|
#[dependency]
|
|
pub handles: Vec<UntypedHandle>,
|
|
}
|