docs.rs failed to build blinc_tabler_icons-0.1.15
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_tabler_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.
Tabler icon library for Blinc UI.
Overview
blinc_tabler_icons provides ~5000 outline and ~1000 filled icons from the Tabler icon set as compile-time constants. Icons are stored as SVG path strings for zero runtime cost.
Features
- 6000+ Icons: Complete Tabler icon set (outline + filled)
- Two Variants: Stroke-based outline and fill-based filled icons
- Zero Cost: Dead code elimination removes unused icons
- SVG Output: Generate complete SVG strings
- Customizable: Custom stroke width and colors
Setup
Download the Tabler SVG assets (one-time):
Quick Start
use ;
use *;
// Outline icon (stroke-based)
svg
.size
.color
// Filled icon
svg
.size
.color
Available Icons
Icons are organized by variant. Here are some examples:
Outline (Stroke-based)
HOME
ARROW_LEFT
ARROW_RIGHT
CHECK
SEARCH
SETTINGS
USER
HEART
STAR
BELL
Filled (Solid)
HOME
HEART
STAR
BELL
BOOKMARK
CIRCLE_CHECK
Generate SVG String
use ;
// Outline: stroke-based (24x24, stroke-width 2)
let svg_string = to_svg;
// Filled: solid shapes
let svg_string = to_svg_filled;
// Custom stroke width (outline only)
let svg_string = to_svg_with_stroke;
// Custom color
let svg_string = to_svg_colored;
let svg_string = to_svg_filled_colored;
Icon Constants
All icons are &'static str constants containing SVG inner elements:
// Outline icon (stroke paths)
pub const HOME: &str = r#"<path d="M5 12l-2 0l9 -9l9 9l-2 0"/><path d="..."/>"#;
// Filled icon (fill paths)
pub const HOME: &str = r#"<path d="M12.707 2.293l9 9c.63 .63 ..."/>"#;
Full Icon List
See the Tabler Icons website for the complete list of available icons. All icon names are converted to SCREAMING_SNAKE_CASE:
arrow-right->ARROW_RIGHTbrand-github->BRAND_GITHUBcircle-check->CIRCLE_CHECK
License
MIT OR Apache-2.0
Icons are from Tabler Icons under MIT License.