Crates.io | gdal-sys |
lib.rs | gdal-sys |
version | |
source | src |
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 |
Cargo.toml error: | TOML parse error at line 20, column 1 | 20 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
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.Z
GDAL_HOME
is defined, the build script looks for GDAL_HOME/include
, GDAL_HOME/lib
and GDAL_HOME/bin
pkg-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.