Commit graph

12 commits

Author SHA1 Message Date
Eric Kidd 727d912b3b Add support for static linking of sqlx
`sqlx` requires linking against OpenSSL twice:

- `sqlx-macros` needs to link against OpenSSL as a shared libary for use
  at compile time.
- `sqlx` needs to link against OpenSSL a static library for use at
  runtime.

You can find the details here:

https://github.com/launchbadge/sqlx/issues/670
https://github.com/sfackler/rust-openssl/issues/1337

We go with the fix proposed by @sfackler, and add a test program that we
can use to verify everything works correctly.

We remove a few `OPENSSL`-related variables that were added 4 years ago,
and that no longer appear to be needed.
2020-09-03 16:24:49 -04:00
Tom Fay 8f2936c318 Use ADD --chown 2019-11-13 10:14:16 +00:00
Eric Kidd e50cbda169 Allow building with OpenSSL 1.0 or 1.1
It turns out that some popular libaries still have problems with OpenSSL
1.1, particularly `postgres` 0.15. So we'll build two sets of images
now.

We also explain the new image tagging scheme, and fix a bug wher the
test script didn't test the newly built image.
2019-04-27 09:21:32 -04:00
Eric Kidd 8f3d28c26e examples/using-diesel: Fix link errors 2019-04-18 11:34:20 -04:00
Eric Kidd bc32059eee Update documentation for making diesel work 2018-04-25 07:02:35 -04:00
Damir Vandic 6ba2dd5978 Remove patch pg-sys, use openssl crate and diesel stable 2018-04-25 11:18:02 +02:00
Eric Kidd 7b30114420 Merge branch 'fix/link_zlib_with_test' of https://github.com/mriehl/rust-musl-builder
Merge libgit2 support, but heavily overhaul the tests.
2018-04-08 13:42:02 -04:00
Eric Kidd d33fbc37d2 Add sqlite support for diesel applications (fixes #28)
This appears to work fine from inside an Alpine container, but it hasn't
been extensively tested yet.
2017-12-16 16:15:02 -05:00
Eric Kidd 4959d3188a Fix build-release example to work on current TravisCI
The Travis UUID has been changed from 1000 to 2000, so now making images
is considerably more annoying than before.
2017-10-24 09:37:21 -04:00
Eric Kidd fcc6921ddb Add working example and test case for diesel
Fixes #27, or at least works around it.

This deals with the issues mentioned in
https://github.com/sgrif/pq-sys/pull/18, and it relies heavily on ideas
from @golddranks and @clux.
2017-10-24 09:05:22 -04:00
Eric Kidd 1bf7dc854e Add instructions for building releases with Travis CI 2016-09-12 08:39:22 -04:00
Eric Kidd aae972390a Add an example script for use with Travis CI 2016-09-12 07:22:46 -04:00