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

build: no bindings: make error more explicit #527

Merged
merged 1 commit into from
Apr 11, 2024

Conversation

Frankkkkk
Copy link
Contributor

@Frankkkkk Frankkkkk commented Apr 11, 2024

Hi,

The panic that arises when there are no pre-build bindings available is not that explicit and may confuse some users into thinking there's something wrong with GDAL.

Thanks!

  • 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.

@lnicola
Copy link
Member

lnicola commented Apr 11, 2024

Thanks! Maybe we should go for something simpler like "Enable the bindgen feature of gdal or gdal-sys to generate them during build."?

@Frankkkkk
Copy link
Contributor Author

Disclaimer: I know nothing about gdal-rs ;-)

I think it'd be great to distinguish GDAL from the rust crate. To be honest I thought the message was related to the gdal library. Maybe something like "Enable the bindgen feature of the gdal or gdal-sys crate to generate them during build."?

If that's okay with you I can change the MR.
Thanks!

@lnicola
Copy link
Member

lnicola commented Apr 11, 2024

I mean sure, but GDAL is GDAL and gdal is this crate :-).

The panic that arises when there are no pre-build bindings available is
not that explicit and may confuse some users into thinking there's
something wrong with GDAL.

Signed-off-by: Frank Villaro-Dixon <[email protected]>
@lnicola lnicola merged commit 54fbdfd into georust:master Apr 11, 2024
9 checks passed
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.

None yet

2 participants