Skip to main content

Crate manganis_core

Crate manganis_core 

Source

Structs§

AndroidArtifactMetadata
Metadata describing an Android plugin artifact (.aar) that must be copied into the host Gradle project.
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::read because the path needs to be resolved relative to the bundle
AssetOptions
Settings for a generic asset
AssetOptionsBuilder
A builder for AssetOptions
BundledAsset
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_path for the application to use.
CssAssetOptions
Options for a css asset
FolderAssetOptions
The builder for a folder asset.
Global
ImageAssetOptions
Options for an image asset
JsAssetOptions
Options for a javascript asset
PlatformFlags
Bit flags for supported platforms
PlatformIdentifiers
Platform-specific permission identifiers
SwiftPackageMetadata
Metadata for a Swift package that needs to be linked into the app (iOS/macOS).

Enums§

AssetVariant
Settings for a specific type of asset
CssFragment
ImageFormat
The type of an image. You can read more about the tradeoffs between image formats here
ImageSize
The size of an image asset
Platform
Platform categories for permission mapping
SymbolData
Unified symbol data that can represent both assets and permissions

Functions§

collect_css_identsDeprecated
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.