material-icon-embed-rs

Crates.iomaterial-icon-embed-rs
lib.rsmaterial-icon-embed-rs
version0.1.0
created_at2025-05-29 02:42:59.579152+00
updated_at2025-05-29 02:42:59.579152+00
descriptionMaterial Icon Embed for Rust
homepage
repositoryhttps://github.com/Oops418/material-icon-embed-rs
max_upload_size
id1693430
size5,630,485
(Oops418)

documentation

README

Material Icon Embed

Website

Overview

A Rust library for embedding Material Design icons from the VS Code Material Icon Theme into your applications.

It will automatically update from the upstream VS Code Material Icon Theme repository.

Usage

You can find the mapping of icon names to their SVG files in the fileIcons.ts and folderIcons.ts, or check the source code of the repo. To use this library, add it to your Cargo.toml:

[dependencies]
material-icon-embed-rs = "0.1.0"

Then, you can use it in your Rust code like this:

use material_icon_embed_rs::MaterialIconEmbed;

let icon_path = MaterialIconFile::from_extension("md").unwrap().path();

Check the example in the examples directory for more details.

Third-Party Assets

This library uses the following third-party assets:

Commit count: 10

cargo fmt