fontawesome_free_pack/
lib.rs1#![doc = include_str!("../README.md")]
2mod icons;
3pub use icons::*;
4
5mod finder;
6pub use finder::get_icon;
7
8#[cfg(feature = "pyo3")]
9use pyo3::prelude::*;
10#[cfg(feature = "pyo3")]
11pub mod py_binding;
12
13#[cfg_attr(
15 feature = "pyo3",
16 pyclass(module = "fontawesome_free_icons_pack", get_all, frozen)
17)]
18#[derive(Debug, PartialEq, Eq)]
19pub struct Icon {
20 pub svg: &'static str,
22
23 pub slug: &'static str,
25
26 pub last_modified: u32,
28
29 pub family: &'static str,
31
32 pub width: u16,
34
35 pub height: u16,
37
38 pub label: &'static str,
40 }
45
46#[cfg(feature = "pyo3")]
47#[cfg_attr(feature = "pyo3", pymethods)]
48impl Icon {
49 pub fn __repr__(&self) -> PyResult<String> {
50 Ok(format!("< Icon object for slug {} >", self.slug))
51 }
52}