liora-icons 0.2.7

Native GPUI icon primitives and shared Liora icon rendering helpers.
docs.rs failed to build liora-icons-0.2.7
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build: liora-icons-0.1.12

Liora Icons

Native GPUI icon primitive and shared icon asset loader.

What it provides

This crate renders SVG icon paths through GPUI assets and provides the IntoIconPath trait used by bundled icon-pack crates. It also supports inline SVG strings and caller-owned SVG files.

Quick example

use liora_icons::{Icon, IconAssetSource};

fn main() {
    gpui_platform::application()
        .with_assets(IconAssetSource)
        .run(|_cx| {
            let _icon = Icon::new("assets/icons/product.svg").size_lg();
        });
}

Recommended usage

  • Prefer the top-level liora crate for ordinary applications.
  • Depend on liora-icons directly when you need fine-grained dependency control or are building another Liora crate.
  • Keep application UI pure Rust + native GPUI; Liora crates do not require WebView, Tauri, HTML, CSS, or DOM runtime paths.

GPUI dependency note

Liora is developed against the official zed-industries/zed GPUI source. When building an application, follow the repository README for the exact GPUI git revision and patching guidance. Do not use unofficial GPUI forks unless the application owner explicitly accepts that risk.

Documentation

License

This crate uses the repository license declared in LICENSE.md.