Commit Graph

194 Commits

Author SHA1 Message Date
openharmony_ci 8d0c160cdc !2 Add OAT.xml and README.OpenSource
Merge pull request !2 from fangting/master
OpenHarmony-v6.0-Beta1 OpenHarmony-v4.1.4-Release OpenHarmony-v5.1.0-Release OpenHarmony-v5.0.3-Release OpenHarmony-v4.1.3-Release OpenHarmony-v5.0.2-Release OpenHarmony-v4.1.2-Release OpenHarmony-v5.0.1-Release OpenHarmony-v4.0.4-Release OpenHarmony-v5.0.0-Release OpenHarmony-v4.0.3-Release OpenHarmony-v4.0.2-Release OpenHarmony-v5.0-Beta1 OpenHarmony-v4.0-Beta1 OpenHarmony-v4.0-Beta2 OpenHarmony-v4.0-Release OpenHarmony-v4.0.1-Release OpenHarmony-v4.1-Beta1 OpenHarmony-v4.1-Release OpenHarmony-v4.1.1-Release master-v weekly_20240115-v
2023-04-14 08:10:50 +00:00
fangting bae7829bef Add OAT.xml and README.OpenSource
Signed-off-by: fangting <fangting12@huawei.com>
2023-04-14 14:15:00 +08:00
openharmony_ci ef045d30fd !1 [libloading]Add GN Build Files and Custom Modifications to Rust Third-party Libraries
Merge pull request !1 from lubinglun/master
2023-04-13 11:34:04 +00:00
lubinglun fa8f7f9430 Add GN Build Files and Custom Modifications
Issue:https://gitee.com/openharmony/build/issues/I6UFTP
Signed-off-by: lubinglun <lubinglun@huawei.com>
2023-04-12 17:26:23 +08:00
Simonas Kazlauskas 9d168eeb1a Fix CI github.com/nagisa/rust_libloading.git/0.7.4 github.com/nagisa/rust_libloading/0.7.4 2022-11-07 01:26:14 +02:00
Simonas Kazlauskas 4569e35836 Placate clippy 2022-11-07 01:12:56 +02:00
Simonas Kazlauskas 842d3b418f Release 0.7.4 2022-11-07 00:34:04 +02:00
Qiu Chaofan d5e85c73ab Support AIX dyld constants 2022-08-30 15:16:47 +08:00
cuishuang 6511538e52 fix typo
Signed-off-by: cuishuang <imcusg@gmail.com>
2022-04-24 23:09:52 +08:00
Simonas Kazlauskas 6d0f9bd0b5 Construct a PathBuf
Representing what's the data here holistically.
2022-01-18 14:25:18 +02:00
Simonas Kazlauskas a6334c080b Simplify lib_path
Since these are the tests, I'm sure we can afford to pay 1 allocation
per test for a path.
2022-01-18 14:20:36 +02:00
James McCoy 40b5ea3fae Honor Cargo's target directory when building LIBPATH
Running the tests with “cargo test --target-dir <path>” fails because
"target/" doesn't exist.

Rust 1.57.0 added $CARGO_TARGET_TMPDIR as a scratch directory for
integration tests to use, which Cargo itself won't touch.

Therefore, use $CARGO_TARGET_TMPDIR if it's available, $CARGO_TARGET_DIR
otherwise, and fallback to "target" as a last resort.
2022-01-18 14:17:29 +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 aed0110b8c Fix documentation building on Windows 2021-11-15 22:36:40 +02:00
Simonas Kazlauskas 282000ef46 Fix broken rustdoc links 2021-11-15 21:45:05 +02:00
Simonas Kazlauskas 7c5a6a0eda Changelog for 0.7.2 2021-11-15 21:44:43 +02:00
Simonas Kazlauskas 3ff0188486 Library & Symbol exist on supported platforms only
This makes the error messages and use of this library on targets such as
wasm32-unknown-unknown much more straightforward.
2021-11-15 21:44:39 +02:00
Simonas Kazlauskas f0b85f212b Annotate the MSRV in Cargo.toml 2021-11-14 16:07:16 +02:00
Mario 16310c5f08 Small typo 2021-10-17 20:52:31 +02:00
Simonas Kazlauskas 7c6a6682c1 Bump 0.7.1 2021-10-09 13:59:23 +03:00
William Henderson c483d866ec Removed unclear sentence 2021-10-09 11:50:04 +01:00
William Henderson 0e62077bd2 Added a few commas in the documentation 2021-10-09 11:32:26 +01:00
William Henderson 41a81fafef Made documentation spelling consistent
It was previously a mix of British and American English, it is now just British English
2021-10-08 20:56:51 +01:00
William Henderson 22b0e8cb6c Improved documentation of platform-specific APIs
Fixed a few minor grammatical errors and made it more idiomatic
2021-10-08 20:55:02 +01:00
William Henderson 6bc6106bc6 Improved the README and lib.rs documentation
It has been made more idiomatic and some minor grammatical errors have been amended
2021-10-08 20:37:58 +01:00
Simonas Kazlauskas b458fcb2a5 Adjust the date of the release in changelog 2021-02-06 20:27:05 +02:00
Simonas Kazlauskas 1774322f1d Review documentation 2021-02-06 20:04:21 +02:00
Simonas Kazlauskas 4182c7e7e8 Drop the code for supporting XP/Vista 2021-02-06 18:59:45 +02:00
Simonas Kazlauskas 2dc3cb5983 Bump version to 0.7 and add changelog 2021-01-31 21:32:14 +02:00
Simonas Kazlauskas ebf363ea72 Make various library loading functions unsafe 2021-01-31 21:32:14 +02:00
Simonas Kazlauskas 5afb886574 Use RTLD_LOCAL | RTLD_LAZY as default dlopen flags 2021-01-31 19:06:10 +02:00
Simonas Kazlauskas 050f41df81 Rename Error::LoadLibraryW → LoadLibraryExW 2021-01-31 19:04:57 +02:00
Simonas Kazlauskas 29ce1077e2 Add a missing link in changelog 2021-01-14 16:14:54 +02:00
Simonas Kazlauskas f5b79b966a Bump to 0.6.7 2021-01-14 16:10:24 +02:00
Ivan Molodetskikh ff4ebe7615 Add os::windows::Library::open_already_loaded() 2020-12-30 19:45:39 +03:00
Ivan Molodetskikh d4a222f90a Fix typo in GHA workflow 2020-12-30 19:18:56 +03:00
Ivan Molodetskikh 4bfc6b53d7 Fix error comment 2020-12-30 19:01:50 +03:00
Simonas Kazlauskas ad352b2ae2 Bump v0.6.6 2020-12-03 15:20:46 +02:00
Simonas Kazlauskas 86b5095f75 Don't neglect to forget self in close
Otherwise it leads to a double-free, once in `close` and another time in
`drop`. Curiously this was only a bug on Windows, and Unix code was
fine. Not sure how this happened.
2020-12-03 15:05:35 +02:00
Simonas Kazlauskas 2b67ea3fe9 Bump to 0.6.5 2020-10-23 17:12:03 +03:00
Paolo Barbolini 6832e3852a Bump cfg-if to 1.0 2020-10-22 09:52:42 +02:00
Simonas Kazlauskas f11349a85c Bump to 0.6.4 2020-10-10 18:51:06 +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 cd2771bf32 Tests read TARGET environment variable for helpers 2020-10-10 18:09:55 +03:00
Simonas Kazlauskas e0b5392aea Remove superfluous use of build.rs
This should make building of this crate significantly faster.

At the same time we also correctly annotate the linkage on the `extern`
block, the way it ought to be.

Sadly there's a regression in tests – the helper scripts no longer
specify the target for which tests are being built. This shall be
addressed in a subsequent commit.
2020-10-10 17:44:39 +03:00
Simonas Kazlauskas f1053ec0c0 Care around cfg to not show wrong values in docs 2020-08-24 04:40:03 +03:00
Simonas Kazlauskas 735a20691d Release 0.6.3 2020-08-24 04:29:15 +03:00
Simonas Kazlauskas 7e5f290148 Make resolve_name a stand-alone function. 2020-08-23 18:45:41 +00:00