badges

Crates.iobadges
lib.rsbadges
version0.3.2
sourcesrc
created_at2022-11-14 08:51:27.624924
updated_at2022-11-14 12:48:28.46773
descriptionA pure Rust library for generating SVG badges with an included binary
homepage
repositoryhttps://github.com/relaxdays/badges
max_upload_size
id714840
size804,799
Sophie Tauchert (999eagle)

documentation

https://docs.rs/badges

README

badges

A small library to render badges. Includes a binary for command line usage.

Example

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");

Command Line Usage

Install with cargo install badges --features cli. Use with badges 'label' 'message' --label-color grey --message-color green > badge.svg.

License

Licensed under either of

at your option.

The included DejaVu Sans font is licensed as described here.

Contribution

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.

Commit count: 24

cargo fmt