#svg-graphics #svg #2d #graphics

no-std lyon_algorithms

2D Path manipulation/transformation algorithms

25 releases (7 stable)

1.0.16 Sep 12, 2025
1.0.5 Dec 8, 2024
1.0.4 Nov 18, 2023
1.0.3 Feb 25, 2023
0.11.2 Jul 11, 2018

#843 in Graphics APIs

Download history 43722/week @ 2025-10-12 46233/week @ 2025-10-19 47782/week @ 2025-10-26 47370/week @ 2025-11-02 44246/week @ 2025-11-09 47068/week @ 2025-11-16 52791/week @ 2025-11-23 50605/week @ 2025-11-30 46707/week @ 2025-12-07 45408/week @ 2025-12-14 44254/week @ 2025-12-21 40891/week @ 2025-12-28 46057/week @ 2026-01-04 46752/week @ 2026-01-11 52117/week @ 2026-01-18 55869/week @ 2026-01-25

207,080 downloads per month
Used in 339 crates (12 directly)

MIT/Apache

355KB
9K SLoC

2d Path transformation and manipulation algorithms.

This crate is reexported in lyon.


lyon::algorithms

A collection of various vector path manipulation algorithms.

crates.io documentation

  • Path bounding box
  • Path area
  • Path length
  • Winding numbers of a path at any position
  • Hatching a Path
  • Path hit testing
  • Path ray casting
  • walking along a path

lyon_algorithms can be used as a standalone crate or as part of lyon via the lyon::algorithms module.

Dependencies

~1.5MB
~39K SLoC