#svg-graphics #svg #graphics #2d-graphics #2d

no-std lyon_algorithms

2D Path manipulation/transformation algorithms

27 releases (9 stable)

1.0.20 May 3, 2026
1.0.19 Mar 8, 2026
1.0.16 Sep 12, 2025
1.0.5 Dec 8, 2024
0.11.2 Jul 11, 2018

#1057 in Graphics APIs

Download history 57327/week @ 2026-02-20 59732/week @ 2026-02-27 76634/week @ 2026-03-06 65647/week @ 2026-03-13 74418/week @ 2026-03-20 77181/week @ 2026-03-27 82778/week @ 2026-04-03 94225/week @ 2026-04-10 94735/week @ 2026-04-17 87468/week @ 2026-04-24 104472/week @ 2026-05-01 104917/week @ 2026-05-08 126206/week @ 2026-05-15 105589/week @ 2026-05-22 113779/week @ 2026-05-29 136159/week @ 2026-06-05

499,544 downloads per month
Used in 503 crates (13 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
~38K SLoC