From 54fbdfd5aed0ec0777ee5f59f5dea2125394df88 Mon Sep 17 00:00:00 2001 From: Frank Villaro-Dixon Date: Thu, 11 Apr 2024 13:27:03 +0200 Subject: [PATCH] build: no bindings: make error more explicit 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 --- gdal-sys/build.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdal-sys/build.rs b/gdal-sys/build.rs index 0fccd63b..d0f8bf10 100644 --- a/gdal-sys/build.rs +++ b/gdal-sys/build.rs @@ -247,7 +247,7 @@ fn main() { version.major, version.minor )); if !binding_path.exists() { - panic!("No pre-built bindings available for GDAL version {}.{}. Use `--features bindgen` to generate your own bindings.", version.major, version.minor); + panic!("No pre-built bindings available for GDAL version {}.{}. Enable the `bindgen` feature of the `gdal` or `gdal-sys` crate to generate them during build.", version.major, version.minor); } std::fs::copy(&binding_path, &out_path)