ohchase / divert

Rust bindings for Recast Navigation.
https://crates.io/crates/divert
29 stars 10 forks source link

Use recastnavigation-sys instead of bespoke compilation of Detour. #2

Closed andriyDev closed 1 year ago

andriyDev commented 1 year ago

divert only supports Detour (and links against the Detour library). recastnavigation-sys supports Recast, Detour, DetourCrowd, and DetourTileCache, all provided as feature flags (so divert will still only link in Detour). This will make divert compatible with all other crates using recastnavigation-sys. Otherwise, using this crate and recastnavigation-sys can cause linking errors.

recastnavigation-sys also handles more complexities of linking, like searching for Detour on the system, and vendoring.

This should probably result in cutting a new crate version for divert since this would be taking on a totally new dependency.