| Crates.io | gdal-sys |
| lib.rs | gdal-sys |
| version | 0.11.0 |
| created_at | 2017-10-08 16:19:50.97547+00 |
| updated_at | 2025-03-28 22:50:45.662451+00 |
| description | Low level GDAL bindings for Rust |
| homepage | |
| repository | https://github.com/georust/gdal |
| max_upload_size | |
| id | 34895 |
| size | 10,128,136 |
Low level GDAL bindings for Rust. The build script will try to auto-detect the installed GDAL version.
Contains:
The build script should work an Linux and Windows systems. It can be configured with a couple of environment variables:
GDAL_INCLUDE_DIR or GDAL_LIB_DIR are defined, they will be used. You should also set GDAL_VERSION to X.Y.ZGDAL_HOME is defined, the build script looks for GDAL_HOME/include, GDAL_HOME/lib and GDAL_HOME/binpkg-config is queried to determine the GDAL locationGDAL_STATIC to link GDAL staticallyThe include directories are only used if you choose to generate the bindings at build time.
On Linux, building should work out-of-the-box.
On Windows, the easiest solution is to point the GDAL_HOME environment variable to the GDAL folder.
windows-msvc requires gdal_i.lib to be found in %GDAL_HOME%\lib.windows-gnu requires either gdal_i.lib in %GDAL_HOME%\lib OR gdal{version}.dll in %GDAL_HOME%\bin.By default, gdal-sys will detect the version of libgdal you have installed and
attempt to use prebuilt bindings corresponding to that version. Alternatively,
you can generate your own bindings from your libgdal installation by specifying
the bindgen feature.