1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
include!(concat!(env!("OUT_DIR"), "/fa/icons.rs"));
#[cfg(feature = "registry")]
include!(concat!(env!("OUT_DIR"), "/gen_registry.rs"));
#[cfg(feature = "registry")]
mod registry;
#[cfg(feature = "registry")]
pub use registry::registry::*;
#[cfg(feature = "registry")]
pub fn collections<T>() -> Vec<IconCollection<'static, T>> {
vec![
#[cfg(feature = "font_awesome")]
IconCollection{
name: "Font-Awesome".to_string(),
icons: font_awesome_collection()
},
#[cfg(feature = "material_icons")]
IconCollection{
name: "Material Icons".to_string(),
icons: material_icons_collection()
}
]
}