Crates.io | spacebadgers |
lib.rs | spacebadgers |
version | 1.3.4 |
source | src |
created_at | 2023-05-19 00:46:31.168683 |
updated_at | 2024-06-01 21:10:26.294319 |
description | Fast SVG badge generator |
homepage | https://github.com/splittydev/spacebadgers |
repository | https://github.com/splittydev/spacebadgers |
max_upload_size | |
id | 868430 |
size | 16,574,006 |
Library for generating SVG badges. It powers badgers.space.
use spacebadgers::BadgeBuilder;
// Generate a badge with the default color palette
let badge_svg = BadgeBuilder::new()
.label("release")
.status("1.0")
.build()
.svg();
// Print the SVG code to stdout
println!("{}", badge_svg);