Structs§
- Asset
- A bundled asset with some options. The asset can be used in rsx! to reference the asset.
It should not be read directly with
std::fs::readbecause the path needs to be resolved relative to the bundle - Asset
Options - Settings for a generic asset
- Asset
Options Builder - A builder for
AssetOptions - Bundled
Asset - An asset that should be copied by the bundler with some options. This type will be
serialized into the binary.
CLIs that support manganis, should pull out the assets from the link section, optimize,
and write them to the filesystem at
BundledAsset::bundled_pathfor the application to use. - CssAsset
Options - Options for a css asset
- Folder
Asset Options - The builder for a folder asset.
- Global
- Image
Asset Options - Options for an image asset
- JsAsset
Options - Options for a javascript asset
Enums§
- Asset
Variant - Settings for a specific type of asset
- CssFragment
- Image
Format - The type of an image. You can read more about the tradeoffs between image formats here
- Image
Size - The size of an image asset
Functions§
- collect_
css_ idents Deprecated - Collect CSS classes & ids.
- create_
module_ hash - Create a hash for a css module based on the file path
- get_
class_ mappings - Gets all the classes in the css files and their rewritten names.
Includes
:global(...)classes where the name is not changed. - parse_
css - transform_
css - Parses and rewrites CSS class selectors with the hash applied.
Does not modify
:global(...)selectors.