Contributing¶
Project goals¶
Expose every
resvgfeature in-memory – nothing writes to disk.Minimal dependency count on both the Python and Rust sides.
Maximum usability for the end developer.
Prerequisites¶
Install uv
Rust toolchain (
rustc,cargo)Python 3.10+
Development workflow¶
Sync dependencies:
uv syncMake your changes to
src/rust/lib.rs.Add or update tests under
tests/.Run the test suite:
pytest .Open a pull request.
Tip
Rendering tests compare base64-encoded PNG output against pre-computed
expected values in expected_outputs.json. Use
scripts/sync_image_to_json.py to regenerate expected outputs after an
intentional visual change.