Commit Graph

17 Commits

Author SHA1 Message Date
Simonas Kazlauskas 9d168eeb1a Fix CI 2022-11-07 01:26:14 +02:00
Simonas Kazlauskas 02cb381c15 Fix a typo in the CI scripts 2022-01-15 18:34:16 +02:00
Simonas Kazlauskas 5411a8b94d Replace docsrs cfg with libloading_docs
`docsrs` is a commonly used `cfg` identifier. `libloading`'s
implementation is written in such a way that it cannot compile with this
cfg set, but is still able to produce documentation. This is done so
that the documentation is naturally covering all platform-specific
details in a single page, without users having to e.g. switch between
Windows® and Linux when reading the documentation on `docs.rs`.

The downstream crates may accidentally set this `cfg` for `rustc`
invocations as well, which can then cause them to fail to build, for no
good reason!

Using a cfg specific to a crate (e.g. `libloading_docs`)
more accurately reflects the purpose of this cfg and avoids these
problems altogether.

Fixes #101
2022-01-15 01:28:41 +02:00
Simonas Kazlauskas c6fe94855f Build wasm32-unknown-unknown in CI 2021-11-15 22:37:50 +02:00
Simonas Kazlauskas 282000ef46 Fix broken rustdoc links 2021-11-15 21:45:05 +02:00
Ivan Molodetskikh d4a222f90a Fix typo in GHA workflow 2020-12-30 19:18:56 +03:00
Simonas Kazlauskas 28d8c5d95f Refresh the actions file
* Remove deprecated usage of set-path as per
https://github.blog/changelog/2020-10-01-github-actions-deprecating-set-env-and-add-path-commands/
* Set TARGET variable for tests
2020-10-10 18:41:24 +03:00
Simonas Kazlauskas f75a0d0606 Do not encourage use of libloading for TLS
On MSVC Windows loading a TLS symbol will give an address to the
initializer (which when overwritten simply changes the default value new
threads gain for the variable).

On macOS thread locals are misimplemented entirely.

On Linux things "just work", but unknown to what extent, really.

Since the behaviour of using thread local variables as if they were
plain global variables is mostly undefined, lets just not make any
claims of this working.
2020-08-22 19:53:18 +00:00
Simonas Kazlauskas bbc5028a88 Improve tests
* Don’t forget to CI the thread-local support;
* Clean up some tests;
* Properly pass thorugh the target to use for the test helper.
2020-08-22 19:53:18 +00:00
Simonas Kazlauskas 5b26e8e1af Generate documentation and run clippy in CI 2020-08-22 19:53:18 +00:00
Mateusz Mikuła 852b9741bc CI: remove no longer necessary workaround 2020-05-18 13:10:19 +02:00
Simonas Kazlauskas 32368c0de5 Implement the Error type
This allows us to:

a) remove the panics in this library and give the control over what to
do to the user;
b) expose the error conditions to the user better, even if just slightly;
c) implement the modern error handling currently implemented in many of
the modern Rust libraries.
2020-04-05 22:25:39 +03:00
Simonas Kazlauskas 95e4bdbe81 Bump MSRV in CI 2020-04-05 17:28:38 +03:00
Simonas Kazlauskas 20d922c81d Raise CI step timeout to 20 minutes 2020-04-05 04:39:55 +03:00
Simonas Kazlauskas facdccaf16 Do not test nonexistent examples 2020-04-05 01:19:46 +03:00
Simonas Kazlauskas 47c10024b2 Add redox and fuchsia 2020-04-05 01:10:43 +03:00
Simonas Kazlauskas fcdda33f46 Move to github workflows 2020-04-05 00:45:43 +03:00