sgrif / mysqlclient-sys

Rust bindings for libmysqlclient
Apache License 2.0
37 stars 31 forks source link

allow use of libraries from a vcpkg ports tree on windows (msvc) #4

Closed mcgoo closed 7 years ago

mcgoo commented 7 years ago

Similar to https://github.com/sgrif/pq-sys/pull/13, this is intended to make Diesel easier to install/build on Windows.

There were a lot of bindgen tests failing on Windows because sizeof(long)==4, although I think because everything was actually internally consistent with the MySQL header, those failures were actually spurious. Also, the file handle size is int on unixoids and long long on Windows so stuff containing file handles was probably not being used. Because of all that I ran bindgen on a Windows machine and added those bindings to the crate also.

I have run the Diesel Travis and Appveyor against it and it works.