Crates.io | mysqlclient-src |
lib.rs | mysqlclient-src |
version | 0.1.1 |
source | src |
created_at | 2024-05-17 09:40:22.735007 |
updated_at | 2024-05-31 07:20:57.343829 |
description | Bundled version of libmysqlclient |
homepage | |
repository | https://github.com/sgrif/mysqlclient-sys |
max_upload_size | 100000000 |
id | 1242980 |
size | 58,756,498 |
Autogenerated Rust bindings for libmysql-client (#include <mysql.h>
)
For this crate to build, libmysqlclient
must be installed on your system
(brew install mysql
on macOS, apt-get install libmysqlclient-dev
on Ubuntu,
included with the server distribution on Windows). Additionally, either
pkg-config
or mysql_config
must be present and able to successfully locate
libmysqlclient
.
The build script of the crate will attempt to find the lib path of libmysql-client using the following methods:
PKG_CONFIG_ALLOW_CROSS
, PKG_CONFIG_ALL_STATIC
etc., of the crate
pkg-config
apply.VCPKG_ROOT
environment variable to point to your Vcpkg installation and
run vcpkg install libmysql:x64-windows
to install the required libraries.MYSQLCLIENT_LIB_DIR
and MYSQLCLIENT_VERSION
environment variablespkg-config
, it will invoke the command
mysql_config --variable=pkglibdir
The crate will try to use pregenerated bindings for a variety of libmysqlclient versions and supported operating systems.
Licensed under either of
at your option.
The mysqlclient-src
crate is licensed under GPL-2.0
to match the license of the packed mysql source code.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.