Skip to main content

lumen_assets/loaders/
mod.rs

1//! The loaders the asset pipeline ships with.
2//!
3//! Each one is an ordinary [`crate::AssetLoader`] with no privileges over a
4//! loader an app or plugin registers: [`AssetLoaders::default`] registers
5//! these two and nothing else, and registering another loader for the same
6//! extension replaces the built-in one.
7//!
8//! [`AssetLoaders::default`]: crate::AssetLoaders::default
9
10mod image;
11mod svg;
12
13// `self::` qualified: the raster loader's module shares its name with the
14// `image` crate it decodes through.
15pub use self::image::{IMAGE_EXTENSIONS, ImageLoader};
16pub use self::svg::{SVG_EXTENSIONS, SvgLoader};