Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement rust-proj as an optional feature within geo #192

Merged
merged 7 commits into from
Apr 8, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,13 @@ serde_derive = "1.0"
spade = "1.3.0"
failure = "0.1.1"
postgis = { version = "0.5", optional = true }
proj-sys = { version = "0.6.1", optional = true }
libc = { version = "0.2.39", optional = true }

[features]
default = []
postgis-integration = ["postgis"]
proj = ["proj-sys", "libc"]

[dev-dependencies]
approx = "0.1.1"
Expand Down
3 changes: 3 additions & 0 deletions src/algorithm/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,6 @@ pub mod to_postgis;
pub mod haversine_length;
/// Calculate, and work with, the winding order of Linestrings
pub mod winding_order;
/// Coordinate projections and transformations using [PROJ](http://proj4.org) v5.0.x
#[cfg(feature = "proj")]
pub mod proj;
Loading