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

Drop pre-3.0 GDAL support #504

Merged
merged 5 commits into from
Jan 5, 2024
Merged

Drop pre-3.0 GDAL support #504

merged 5 commits into from
Jan 5, 2024

Conversation

lnicola
Copy link
Member

@lnicola lnicola commented Dec 23, 2023

  • I agree to follow the project's code of conduct.
  • I added an entry to CHANGES.md if knowledge of this change could be valuable to users.

Closes #477
Closes #467

println!("cargo:rustc-cfg=major_ge_{major}");
}

for minor in 0..=minor {
println!("cargo:rustc-cfg=minor_ge_{minor}");
}

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We never care about the patch version, so I think it's fine to emitting all those cfgs for it.

@@ -14,28 +14,21 @@ fn main() {
let minor = (gdal_version - major * 1000000) / 10000;
let patch = (gdal_version - major * 1000000 - minor * 10000) / 100;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is that line calculating patch still needed ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's still printed in the panic message below, just in case. Probably doesn't hurt to have it.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah ok, nevermind, I missed that use

@lnicola lnicola changed the title Drop support for GDAL pre-3.0 Drop pre-3.0 GDAL support Dec 23, 2023
@lnicola lnicola force-pushed the min-gdal-3-0 branch 2 times, most recently from 7ae4df6 to 56e4a28 Compare December 23, 2023 18:48
@lnicola
Copy link
Member Author

lnicola commented Dec 23, 2023

Added version info support to the README and a commit to drop the pre-built 2.4 bindings. Will wait a little before merging, since it's the kind of change that might make people upset.

@lnicola
Copy link
Member Author

lnicola commented Dec 28, 2023

r? @metasim

src/dataset.rs Outdated Show resolved Hide resolved
@metasim
Copy link
Contributor

metasim commented Dec 29, 2023

@lnicola What do you think about holding back this PR until after the 0.17 release? Since the pre-3.0 support works up to now, it would give legacy users one more release (with lots of improvements) to work with.

@lnicola
Copy link
Member Author

lnicola commented Dec 29, 2023

@metasim 2.4 is broken anyway, #467. We could fix it, but I don't think it's worth it since not many people complain.

@valarauca
Copy link

FYI the docs.rs page for the project does state 2.4 to 3.X is supported, so that should also be updated in this patch series.

@lnicola
Copy link
Member Author

lnicola commented Jan 3, 2024

Thanks for spotting that, updated in 0f2996a.

@lnicola
Copy link
Member Author

lnicola commented Jan 5, 2024

@metasim there wasn't much negative feedback, do you think we could merge this?

@metasim
Copy link
Contributor

metasim commented Jan 5, 2024

@lnicola Yes! Go for it!

@lnicola lnicola merged commit 924bdbf into georust:master Jan 5, 2024
9 checks passed
@lnicola lnicola deleted the min-gdal-3-0 branch January 5, 2024 18:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Define a policy for the supported GDAL versions Does not compile with prebuilt GDAL 2.4 bindings
4 participants