# shield-maker [![shield-maker](https://github.com/heyvito/shield-maker/actions/workflows/main.yml/badge.svg)](https://github.com/heyvito/shield-maker/actions/workflows/main.yml) [![Crates.io](https://img.shields.io/crates/v/shield-maker.svg)](https://crates.io/crates/shield-maker) [![Documentation](https://docs.rs/shield-maker/badge.svg)](https://docs.rs/shield-maker) ![](https://img.shields.io/badge/Rust-1.32+-orange.svg) ![](https://img.shields.io/badge/unsafe-forbidden-brightgreen.svg) shield-maker implements a badge generator based on [Shields.io](https://github.com/badges/shields) implementation. ### Features - Simple, bare-minimum API. - Plastic, Flat, and Flat-Squared styles - SVG output ### Example ```rust use std::fs; use std::io; use ab_glyph::FontArc; use shield_maker::{Renderer, Metadata, Style, FontFamily}; fn main() -> io::Result<()> { let font_bytes = fs::read("verdana.ttf") .expect("could not read verdana.ttf"); let font = FontArc::try_from_vec(font_bytes) .expect("could not parse verdana.ttf"); let meta = &Metadata { style: Style::Plastic, label: "coverage", message: "100%", font, font_family: FontFamily::Default, label_color: None, color: None, }; let output = Renderer::render(meta); println!("{}", output); // =>