You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 1, 2020. It is now read-only.
**This is a [`*-sys`](https://doc.rust-lang.org/cargo/reference/build-scripts.html#a-sys-packages) crate; you shouldn't use its API directly.** The [`proj`](https://github.com/georust/proj) crate is designed for general use.
5
4
6
-
A guide to the functions can be found here: https://proj.org/development/reference/functions.html. Run `cargo doc (optionally --open)` to generate the crate documentation.
By default, `libproj` (via `PROJ v7.1.x`) must be present on your system. While this crate may be backwards-compatible with older PROJ 7 and PROJ 6 versions, this is neither tested or supported.
13
+
By default, the crate will search for an existing `libproj` (via `PROJ v7.1.x`)
If an acceptable installation is not found, proj-sys will attempt to build
18
+
libproj from source bundled in the crate.
14
19
15
-
`proj-sys = { version = "0.18.1", features = ["bundled_proj"] }`
16
-
`proj-sys = { version = "0.18.1", features = ["pkg_config"] }`
20
+
## Features
17
21
18
-
Note that these features are **mutually exclusive**.
19
-
20
-
1.`bundled_proj` (Linux and macOS targets):
21
-
- allow the crate to internally build and depend on a bundled `libproj`. Note that SQLite3 and `libtiff` must be present on your system if you wish to use this feature, and that it builds `libproj`**without** its native network functionality; you will have to implement your own set of callbacks if you wish to make use of them (see the [`proj`](https://crates.io/crates/proj) crate for an example).
22
-
2.`pkg_config` (Linux and macOS targets)
23
-
- uses [`pkg-config`](https://en.wikipedia.org/wiki/Pkg-config) to add search paths to the build script. Requires `pkg-config` to be installed (available on Homebrew, Macports, apt etc.)
22
+
`bundled_proj` - forces building libproj from source even if an acceptable
23
+
version could be found on your system. Note that SQLite3 and `libtiff` must be
24
+
present on your system if you wish to use this feature, and that it builds
25
+
`libproj`**without** its native network functionality; you will have to
26
+
implement your own set of callbacks if you wish to make use of them (see the
27
+
[`proj`](https://crates.io/crates/proj) crate for an example).
//! **This is a [`*-sys`](https://doc.rust-lang.org/cargo/reference/build-scripts.html#a-sys-packages) crate; you shouldn't use its API directly.** The [`proj`](https://github.com/georust/proj) crate is designed for general use.
7
-
//!
8
-
//! A guide to the functions can be found on [proj.org](https://proj.org/development/reference/functions.html). Run `cargo doc (optionally --open)` to generate the crate documentation.
9
-
//!
10
-
//! ## Requirements
11
-
//!
12
-
//! By default, `libproj` (via `PROJ v7.1.x`) must be present on your system. While this crate may be backwards-compatible with older PROJ 7 and PROJ 6 versions, this is neither tested or supported.
13
-
//!
14
-
//! ## Optional Features
15
-
//! Enable these in your `Cargo.toml` like so:
16
-
//!
17
-
//! `proj-sys = { version = "0.18.2", features = ["bundled_proj"] }`
18
-
//! `proj-sys = { version = "0.18.2", features = ["pkg_config"] }`
19
-
//!
20
-
//! Note that these features are **mutually exclusive**.
21
-
//!
22
-
//! 1. `bundled_proj` (Linux and macOS targets):
23
-
//! - allow the crate to internally build and depend on a bundled `libproj`. Note that SQLite3 and `libtiff` must be present on your system if you wish to use this feature, and that it builds `libproj` **without** its native network functionality; you will have to implement your own set of callbacks if you wish to make use of them (see the [`proj`](https://crates.io/crates/proj) crate for an example).
24
-
//! 2. `pkg_config` (Linux and macOS targets)
25
-
//! - uses [`pkg-config`](https://en.wikipedia.org/wiki/Pkg-config) to add search paths to the build script. Requires `pkg-config` to be installed (available on Homebrew, Macports, apt etc.)
26
-
//!
27
-
//! ## License
28
-
//!
29
-
//! Licensed under either of
30
-
//!
31
-
//! * Apache License, Version 2.0 ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)
32
-
//! * MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)
0 commit comments