georust / geo

Rust geospatial primitives & algorithms
https://crates.io/crates/geo
Other
1.58k stars 198 forks source link

geo-traits: Make `geo-types` dependency optional #1241

Closed kylebarron closed 3 weeks ago

kylebarron commented 3 weeks ago

Putting this up for discussion:

Right now geo-traits only has a dependency on geo-types to

  1. add a trait bound on T for CoordNum
  2. add implementations of the traits on geo_types objects

As I was cleaning up https://github.com/kylebarron/wkb, I realized that geo-traits doesn't really need to have the CoordNum trait bound, because the consumer can require it separately.

What do people think about making the geo-types dep optional?