docs.rs failed to build blinc_icons-0.1.13
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.
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.
blinc_icons
Part of the Blinc UI Framework
This crate is a component of Blinc, a GPU-accelerated UI framework for Rust. For full documentation and guides, visit the Blinc documentation.
Lucide icon library for Blinc UI.
Overview
blinc_icons provides 1000+ icons from the Lucide icon set as compile-time constants. Icons are stored as SVG path strings for zero runtime cost.
Features
- 1000+ Icons: Complete Lucide icon set
- Zero Cost: Dead code elimination removes unused icons
- SVG Output: Generate complete SVG strings
- Customizable: Custom stroke width and colors
Quick Start
use icons;
use *;
// Use in layout
svg
.size
.color
svg
.size
.color
Available Icons
Icons are organized by category. Here are some examples:
Navigation
ARROW_LEFT
ARROW_RIGHT
ARROW_UP
ARROW_DOWN
CHEVRON_LEFT
CHEVRON_RIGHT
MENU
X
Actions
CHECK
PLUS
MINUS
EDIT
TRASH
COPY
DOWNLOAD
UPLOAD
SEARCH
SETTINGS
Media
PLAY
PAUSE
STOP
VOLUME
VOLUME_OFF
IMAGE
VIDEO
MUSIC
Communication
MAIL
MESSAGE_SQUARE
PHONE
SEND
BELL
AT_SIGN
Files
FILE
FOLDER
FOLDER_OPEN
FILE_TEXT
FILE_CODE
SAVE
User
USER
USERS
USER_PLUS
USER_MINUS
LOG_IN
LOG_OUT
Generate SVG String
use ;
// Basic SVG (24x24, stroke-width 2)
let svg_string = to_svg;
// <svg xmlns="..." viewBox="0 0 24 24" ...>...</svg>
// Custom stroke width
let svg_string = to_svg_with_stroke;
// With custom color
let svg_string = to_svg_colored;
Icon Constants
All icons are &'static str constants containing SVG path data:
// Example icon definition
pub const CHECK: &str = r#"<path d="M20 6 9 17l-5-5"/>"#;
Full Icon List
See the Lucide Icons website for the complete list of available icons. All icon names are converted to SCREAMING_SNAKE_CASE:
arrow-right→ARROW_RIGHTchevron-down→CHEVRON_DOWNfile-text→FILE_TEXT
License
MIT OR Apache-2.0
Icons are from Lucide under ISC License.