Skip to content

Commit 8db09d6

Browse files
michaelkirkMichael Kirk
and
Michael Kirk
authored
Update proj to 9.3.1 (#182)
* update proj source to 9.3.1 * update update documentation for maintainers * new bindings for docs.rs * update ci * update rust versions * Bump MSRV to 1.65 I don't know of any actual incompatibilities, but this is as far back as we're willing to build CI images for. * update changelog --------- Co-authored-by: Michael Kirk <mkirk@endoftheworl.de>
1 parent 154c0aa commit 8db09d6

10 files changed

+28
-16
lines changed

.github/workflows/test.yml

+8-8
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@ jobs:
5151
matrix:
5252
container_image:
5353
# Minimum supported rust (MSRV)
54-
- "georust/proj-ci:proj-9.2.1-rust-1.63"
54+
- "georust/proj-ci:proj-9.3.1-rust-1.65"
5555
# Latest stable rust
56-
- "georust/proj-ci:proj-9.2.1-rust-1.70"
56+
- "georust/proj-ci:proj-9.3.1-rust-1.74"
5757
features:
5858
- ""
5959
- "--features network"
@@ -98,34 +98,34 @@ jobs:
9898
include:
9999
# Minimum supported rust (MSRV)
100100
- container:
101-
image: georust/proj-ci:proj-9.2.1-rust-1.63
101+
image: georust/proj-ci:proj-9.3.1-rust-1.65
102102
env:
103103
_PROJ_SYS_TEST_EXPECT_BUILD_FROM_SRC: 0
104104
features: ""
105105
- container:
106-
image: georust/proj-ci:proj-9.2.1-rust-1.63
106+
image: georust/proj-ci:proj-9.3.1-rust-1.65
107107
env:
108108
_PROJ_SYS_TEST_EXPECT_BUILD_FROM_SRC: 1
109109
features: "--features bundled_proj"
110110
- container:
111-
image: georust/proj-ci-without-system-proj:proj-9.2.1-rust-1.63
111+
image: georust/proj-ci-without-system-proj:proj-9.3.1-rust-1.65
112112
env:
113113
_PROJ_SYS_TEST_EXPECT_BUILD_FROM_SRC: 1
114114
features: ""
115115

116116
# Latest stable rust
117117
- container:
118-
image: georust/proj-ci:proj-9.2.1-rust-1.70
118+
image: georust/proj-ci:proj-9.3.1-rust-1.74
119119
env:
120120
_PROJ_SYS_TEST_EXPECT_BUILD_FROM_SRC: 0
121121
features: ""
122122
- container:
123-
image: georust/proj-ci:proj-9.2.1-rust-1.70
123+
image: georust/proj-ci:proj-9.3.1-rust-1.74
124124
env:
125125
_PROJ_SYS_TEST_EXPECT_BUILD_FROM_SRC: 1
126126
features: "--features bundled_proj"
127127
- container:
128-
image: georust/proj-ci-without-system-proj:proj-9.2.1-rust-1.70
128+
image: georust/proj-ci-without-system-proj:proj-9.3.1-rust-1.74
129129
env:
130130
_PROJ_SYS_TEST_EXPECT_BUILD_FROM_SRC: 1
131131
features: ""

CHANGES.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changes
22

3+
## Unreleased
4+
5+
- Bump MSRV to 1.65
6+
37
## 0.27.2
48

59
- Update to proj-sys 0.23.2 (libproj 9.2.1)

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ keywords = ["proj", "projection", "osgeo", "geo"]
1111
license = "MIT OR Apache-2.0"
1212
readme = "README.md"
1313
edition = "2018"
14-
rust-version = "1.63"
14+
rust-version = "1.65"
1515

1616
[dependencies]
1717
proj-sys = { version = "0.23.1", path = "proj-sys" }

proj-sys/CHANGES.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# Unreleased
2+
3+
- Update to PROJ 9.3.1
4+
- Bump MSRV to 1.65
5+
6+
17
# 0.23.2
28

39
- Add explicit `tiff` feature for people using tiff files outside of `network`

proj-sys/Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ keywords = ["proj", "projection", "osgeo", "geo", "geospatial"]
99
license = "MIT OR Apache-2.0"
1010
edition = "2021"
1111
links = "proj"
12+
rust-version = "1.65"
1213

1314
[dependencies]
1415

proj-sys/MAINTAINERS.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,14 @@ expect docs.rs to do.
1212

1313
## To update the prebuilt bindings
1414

15-
Currently, the process looks like:
15+
After updating the source in PROJSRC and the build.rs script to reference the new source,
16+
The process of updating bindings looks like:
1617

1718
```
1819
cd proj-sys
1920
cargo clean
2021
cargo build
21-
find ../target/proj-sys-* -name bindings_docs-rs.rs
22+
find ../target/debug/build/proj-sys* -name bindings.rs
2223
```
2324

2425
copy that file over the `src/bindings_docs-rs.rs`, but retain the header:

proj-sys/PROJSRC/proj-9.2.1.tar.gz

-5.28 MB
Binary file not shown.

proj-sys/PROJSRC/proj-9.3.1.tar.gz

5.35 MB
Binary file not shown.

proj-sys/build.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use std::fs::File;
44
use std::path::PathBuf;
55
use tar::Archive;
66

7-
const MINIMUM_PROJ_VERSION: &str = "9.2.0";
7+
const MINIMUM_PROJ_VERSION: &str = "9.3.0";
88

99
#[cfg(feature = "nobuild")]
1010
fn main() {} // Skip the build script on docs.rs
@@ -81,13 +81,13 @@ fn build_from_source() -> Result<std::path::PathBuf, Box<dyn std::error::Error>>
8181
}
8282

8383
// NOTE: The PROJ build expects Sqlite3 to be present on the system.
84-
let path = "PROJSRC/proj-9.2.1.tar.gz";
84+
let path = "PROJSRC/proj-9.3.1.tar.gz";
8585
let out_path = PathBuf::from(env::var("OUT_DIR").unwrap());
8686
let tar_gz = File::open(path)?;
8787
let tar = GzDecoder::new(tar_gz);
8888
let mut archive = Archive::new(tar);
8989
archive.unpack("PROJSRC/proj")?;
90-
let mut config = cmake::Config::new("PROJSRC/proj/proj-9.2.1");
90+
let mut config = cmake::Config::new("PROJSRC/proj/proj-9.3.1");
9191
config.define("BUILD_SHARED_LIBS", "OFF");
9292
config.define("BUILD_TESTING", "OFF");
9393
config.define("BUILD_CCT", "OFF");

proj-sys/src/bindings_docs-rs.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
/* automatically generated by rust-bindgen 0.66.1 */
21
/* THESE ARE NOT LIVE BINDINGS */
32
/* THEY EXIST FOR USE BY DOCS-RS ONLY */
3+
/* automatically generated by rust-bindgen 0.68.1 */
44

55
pub const PROJ_VERSION_MAJOR: u32 = 9;
6-
pub const PROJ_VERSION_MINOR: u32 = 2;
6+
pub const PROJ_VERSION_MINOR: u32 = 3;
77
pub const PROJ_VERSION_PATCH: u32 = 1;
88
pub const PJ_DEFAULT_CTX: u32 = 0;
99
pub const PROJ_ERR_INVALID_OP: u32 = 1024;

0 commit comments

Comments
 (0)