Struggling with diesel + sqlite on Windows

I'm trying to use diesel - Rust with sqlite3 on Windows.
When I compile, it fail because sqlite3.lib cannot be found.
I look at SQLite Download Page but there is not sqlite3.lib file.
Also, where I am supposed to put the file ?

1 Like

Do the suggestions in this ticket help?

The probably easiest way to get something working is to use the bundled feature of the libsqlite3-sys crate (that is used internally by diesel). This will just build and statically link a compatible libsqlite3 version.
For projects depending on diesel this can be done by just adding libsqlite3-sys to your dependencies and enable the corresponding feature there. Be sure to use the same version as used by diesel.
diesel_cli provides a feature flag to enable the corresponding feature. Checkout the Install section of the readme for details.

1 Like

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.