Registry / utility / usvg
library0.47.0rscratesunverified

An SVG simplification library.

# Cargo.toml [dependencies] usvg = "0.47.0"
INSTALL
IMPORT
SIG · USVG
U
usvg
utilityrustv0.47.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Tree
use usvg::Tree;

Parses an SVG file into a simplified tree structure.

use usvg::Tree; fn main() { let svg_data = std::fs::read("image.svg").unwrap(); let tree = Tree::from_data(&svg_data, &usvg::Options::default()).unwrap(); println!("Tree size: {}x{}", tree.size.width(), tree.size.height()); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.47.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources
usvg — cargo add usvg · libregistry