Replies: 1 comment 3 replies
-
|
It's complicated and likely depends a lot on your system configuration. mysqlclient-sys will first look for libmysqlclient, then for libmariadb. As it links stuff dynamically by default you still can end up with the application using the other lib at runtime. That will likely cause other interesting issues as well as these libraries are also not abi compatible in other places as well. Relevant source code: https://github.com/sgrif/mysqlclient-sys/blob/master/build.rs#L57-L58 Edit: the mysqlclient-sys also allows to configure which lib to link via environment variables. See the Readme there for details |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Backend
MySQL
Diesel version
2.3.3
Diesel Features
"chrono", "r2d2", "numeric"
Operating System Version
Fedora 42 and 43
Third party libraries
No response
What do you want to do?
During the issue dani-garcia/vaultwarden#6416 mariadb and mysql came up.
I just wanted to ask what happens, if one has both clients installed (when compiling mysql diesel): the mysql client and the mariadb connector. How does diesel choose? Is there a flag or is mysql the 1st order of preference?
I could of course test it, but then I still wouldn't know whether the picked library was picked on purpose or by chance.
Compile time error
No response
What code do you already have?
No response
Additional details
No response
Checklist
Beta Was this translation helpful? Give feedback.
All reactions