| Crates.io | material-icon-embed-rs |
| lib.rs | material-icon-embed-rs |
| version | 0.1.0 |
| created_at | 2025-05-29 02:42:59.579152+00 |
| updated_at | 2025-05-29 02:42:59.579152+00 |
| description | Material Icon Embed for Rust |
| homepage | |
| repository | https://github.com/Oops418/material-icon-embed-rs |
| max_upload_size | |
| id | 1693430 |
| size | 5,630,485 |
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.
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.
This library uses the following third-party assets: