Badgers - Create SVG Badges
This is a Rust crate to generate simple SVG badges to be used e.g. in README files. The subject, status and color of the badge can be configured.
Example
use ;
let options = BadgeOptions ;
let badge = new.unwrap;
let svg = badge.to_svg;
Origin Story
This is a fork of the badge crate in order
to replace the now
deprecated
rusttype crate. rusttype was replaced
by ab_glyph as suggested in the rustsec
advisory.
This fork was created since the original badge crate is no longer maintained
and the code has been removed from the originating repository:
rust-lang/docs.rs@94f3bba
While trying to be a 1:1 replacement of badge, either my lack of deep
understanding of the problem space or minor differences between rusttype and
ab_glyph required some 1 pixel changes in the testcases:
vbrandl/badgers@9c8cdb9
This fork exists mostly for personal use in
vbrandl/hoc but feel free to give it a try.