vexy-vsvg 2.0.0

Core library for vexy-vsvg SVG optimizer
docs.rs failed to build vexy-vsvg-2.0.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build: vexy-vsvg-0.1.0

vexy-vsvg

Core SVG processing engine for vexy-vsvg, providing parsing, AST manipulation, optimization, and stringification capabilities.

Overview

This crate provides the fundamental building blocks for SVG optimization:

  • Parsing: Convert SVG strings into an Abstract Syntax Tree (AST)
  • Optimization: Apply various optimization plugins to reduce file size
  • Stringification: Convert the optimized AST back to an SVG string

Quick Start

use vexy_vsvg::{optimize_default, parse_svg, stringify};

// Simple optimization with default settings
let svg = r#"<svg><rect width="100" height="100"/></svg>"#;
let result = optimize_default(svg).unwrap();
println!("Optimized: {}", result.data);

// Manual parsing and stringification
let doc = parse_svg(svg).unwrap();
let output = stringify(&doc).unwrap();

Features

  • parallel: Enable parallel processing for large SVG files
  • wasm: WebAssembly compatibility
  • python: Python bindings support