georust / geo

Geospatial primitives and algorithms for Rust
https://crates.io/crates/geo
Other
1.51k stars 195 forks source link

Add new `geo-traits` crate #1019

Closed frewsxcv closed 5 months ago

frewsxcv commented 1 year ago

See https://github.com/georust/geo/pull/1011. We can use this draft pull request to view the changes from the work-in-progress traits branch.

RobWalt commented 1 year ago

Just a comment: I think the name of the crate is a bit confusing. Since geo relies on the num crate quiet heavily I thought the new geo-traits crate was similar to the num-traits crate which separates all the traits one can find in num nicely so we don't have to pull in all of num everywhere.

However, it seems that geo-traits implements entirely new traits instead.

I was just looking for a lightweight way to get the HasKernel trait which is required for a data type I'm defining in a separate crate for use everywhere else

frewsxcv commented 5 months ago

Closing in favor of https://github.com/georust/geo/pull/1157