Crates.io | badges |
lib.rs | badges |
version | 0.3.2 |
source | src |
created_at | 2022-11-14 08:51:27.624924 |
updated_at | 2022-11-14 12:48:28.46773 |
description | A pure Rust library for generating SVG badges with an included binary |
homepage | |
repository | https://github.com/relaxdays/badges |
max_upload_size | |
id | 714840 |
size | 804,799 |
A small library to render badges. Includes a binary for command line usage.
use badges::{BadgeBuilder, BadgeColor, BadgeStyle};
let badge_svg = BadgeBuilder::new()
.style(BadgeStyle::Flat)
.label("badge")
.message("rendered")
.message_color(BadgeColor::Green)
.render()
.expect("failed to render badge");
Install with cargo install badges --features cli
. Use with badges 'label' 'message' --label-color grey --message-color green > badge.svg
.
Licensed under either of
at your option.
The included DejaVu Sans font is licensed as described here.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the fork by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.