Skip to content

Commit

Permalink
Drop support for GDAL pre-3.4
Browse files Browse the repository at this point in the history
  • Loading branch information
lnicola committed Oct 29, 2024
1 parent 86683a1 commit 5d886ab
Show file tree
Hide file tree
Showing 23 changed files with 27 additions and 50,659 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,6 @@ jobs:
- 3.6.4
- 3.5.3
- 3.4.3
- 3.3.3
- 3.2.3
- 3.1.3 # latest is 3.1.4, but there's no published image

runs-on: ubuntu-latest
container:
Expand Down
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

### Breaking

- Drop support for GDAL <3.4 ([#578](https://github.com/georust/gdal/pull/578))
- Regenerate the pre-built bindings with `std::ffi` instead of `libc` for C types ([#573](https://github.com/georust/gdal/pull/573))
- Upgrade `ndarray` dependency to 0.16 ([#569](https://github.com/georust/gdal/pull/569))

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ Using the `gdal-sys` crate directly is normally not needed, but it can be useful

## Version support

As a general rule, only GDAL versions in Ubuntu LTS-1 (previous LTS version, that is, GDAL 3.0 in 20.04 at this moment) are supported.
As a general rule, only GDAL versions in Ubuntu LTS-1 (previous LTS version, that is, GDAL 3.4 in 22.04 at this moment) are supported.
`gdal-sys` might support earlier versions using the `bindgen` feature flag, but `gdal` does not.

Building this crate assumes a compatible version of GDAL is installed with the corresponding header files and shared libraries.
This repository includes pre-generated bindings for GDAL 3.0 through 3.10 (see the `gdal-sys/prebuilt-bindings` directory).
This repository includes pre-generated bindings for GDAL 3.4 through 3.10 (see the `gdal-sys/prebuilt-bindings` directory).
If you're compiling against another version of GDAL, you can enable the `bindgen` feature flag to have the bindings generated on the fly.

## Community
Expand Down
4 changes: 2 additions & 2 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ fn main() {
let minor = (gdal_version - major * 1000000) / 10000;
let patch = (gdal_version - major * 1000000 - minor * 10000) / 100;

if major < 3 {
panic!("The GDAL crate requires a GDAL version >= 3.0.0. Found {major}.{minor}.{patch}");
if major < 3 || major == 4 && minor < 4 {
panic!("The GDAL crate requires a GDAL version >= 3.4.0. Found {major}.{minor}.{patch}");
}

println!("cargo:rustc-cfg=gdal_{major}");
Expand Down
Loading

0 comments on commit 5d886ab

Please sign in to comment.