material-code-icons 0.1.0

VS Code Material Icon Theme in Rust
docs.rs failed to build material-code-icons-0.1.0
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.

material-code-icons

This crate uses the icons from the VS Code Material Icon Theme and makes them available in your rust code.

The main point of interaction in this crate is code_icon(). It takes a file name, folder name, or file extension and returns an SVG as a &[u8].

let icon_from_file_name_extension = code_icon("lib.rs");
let icon_from_extension = code_icon("rs");
let icon_from_file_name = code_icon(".gitignore");
let icon_from_folder_name = code_icon("src");
let icon = material_code_icons::RUST;

Currently, this crate does not provide any other return types, and you need to deserialize the SVG with another crate, but if there is a popular SVG or image type in Rust then it is possible to add support for it if you open an issue.