-
Notifications
You must be signed in to change notification settings - Fork 95
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
Conversation
5f375c9
to
f745033
Compare
println!("cargo:rustc-cfg=major_ge_{major}"); | ||
} | ||
|
||
for minor in 0..=minor { | ||
println!("cargo:rustc-cfg=minor_ge_{minor}"); | ||
} | ||
|
There was a problem hiding this comment.
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 cfg
s for it.
@@ -14,28 +14,21 @@ fn main() { | |||
let minor = (gdal_version - major * 1000000) / 10000; | |||
let patch = (gdal_version - major * 1000000 - minor * 10000) / 100; |
There was a problem hiding this comment.
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 ?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
7ae4df6
to
56e4a28
Compare
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. |
r? @metasim |
@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. |
FYI the |
Thanks for spotting that, updated in 0f2996a. |
@metasim there wasn't much negative feedback, do you think we could merge this? |
@lnicola Yes! Go for it! |
CHANGES.md
if knowledge of this change could be valuable to users.Closes #477
Closes #467