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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/*!
Fast badge generator for any purpose

Create badges with text, icons and sparkline chart

# Web

See <https://github.com/msuntharesan/badgeland#web>

# Quick start

Add `badgeland` to your `Cargo.toml` as as a dependency.

# Examples

```rust
use badgeland::{Badge};

fn badge() {
    let mut badge = Badge::new();
    badge.subject("Subject");
    println!("{}", badge.text("Text").to_string());
}
```
This produce a svg badge: ![](https://badge.land/b/Subject/Text)
```rust
use badgeland::{Badge};

fn badge_with_data() {
    let mut badge = Badge::new();
    badge.subject("Subject");
    println!("{}", badge.data(&[12., 34., 23., 56., 45.]).to_string());
}
```
This produce a svg badge: ![](http://badge.land/b/testing/12,34,23,56,45)

*/

mod badge;
mod badge_data;
mod color;
mod error;
mod icons;

pub use badge::{Badge, Size, Style};
pub use badge_data::BadgeData;
pub use color::*;
pub use error::*;
pub use icons::Icon;

#[cfg(feature = "static_icons")]
pub use icons::{icon_exists, icon_keys};

pub type InitialBadge<'a> = Badge<'a, badge::BadgeTypeInit>;