1ac7cb706Sopenharmony_ci//! The change log.
2ac7cb706Sopenharmony_ci
3ac7cb706Sopenharmony_ci/// Release 0.7.4 (2022-11-07)
4ac7cb706Sopenharmony_ci///
5ac7cb706Sopenharmony_ci/// This release has no functional changes.
6ac7cb706Sopenharmony_ci///
7ac7cb706Sopenharmony_ci/// `RTLD_LAZY`, `RTLD_GLOBAL` and `RTLD_LOCAL` constants have been implemented for AIX platforms.
8ac7cb706Sopenharmony_cipub mod r0_7_4 {}
9ac7cb706Sopenharmony_ci
10ac7cb706Sopenharmony_ci/// Release 0.7.3 (2022-01-15)
11ac7cb706Sopenharmony_ci///
12ac7cb706Sopenharmony_ci/// This release has no functional changes.
13ac7cb706Sopenharmony_ci///
14ac7cb706Sopenharmony_ci/// In this release the `docsrs` `cfg` has been renamed to `libloading_docs` to better reflect that
15ac7cb706Sopenharmony_ci/// this `cfg` is intended to be only used by `libloading` and only specifically for the invocation
16ac7cb706Sopenharmony_ci/// of `rustdoc` when documenting `libloading`. Setting this `cfg` in any other situation is
17ac7cb706Sopenharmony_ci/// unsupported and will not work.
18ac7cb706Sopenharmony_cipub mod r0_7_3 {}
19ac7cb706Sopenharmony_ci
20ac7cb706Sopenharmony_ci/// Release 0.7.2 (2021-11-14)
21ac7cb706Sopenharmony_ci///
22ac7cb706Sopenharmony_ci/// Cargo.toml now specifies the MSRV bounds, which enables tooling to report an early failure when
23ac7cb706Sopenharmony_ci/// the version of the toolchain is insufficient. Refer to the [min-rust-version RFC] and its
24ac7cb706Sopenharmony_ci/// [tracking issue].
25ac7cb706Sopenharmony_ci///
26ac7cb706Sopenharmony_ci/// [min-rust-version RFC]: https://rust-lang.github.io/rfcs/2495-min-rust-version.html
27ac7cb706Sopenharmony_ci/// [tracking issue]: https://github.com/rust-lang/rust/issues/65262
28ac7cb706Sopenharmony_ci///
29ac7cb706Sopenharmony_ci/// Additionally, on platforms `libloading` has no support (today: `not(any(unix, windows))`), we
30ac7cb706Sopenharmony_ci/// will no longer attempt to implement the cross-platform `Library` and `Symbol` types. This makes
31ac7cb706Sopenharmony_ci/// `libloading` compile on targets such as `wasm32-unknown-unknown` and gives ability to the
32ac7cb706Sopenharmony_ci/// downstream consumers of this library to decide how they want to handle the absence of the
33ac7cb706Sopenharmony_ci/// library loading implementation in their code. One of such approaches could be depending on
34ac7cb706Sopenharmony_ci/// `libloading` itself optionally as such:
35ac7cb706Sopenharmony_ci///
36ac7cb706Sopenharmony_ci/// ```toml
37ac7cb706Sopenharmony_ci/// [target.'cfg(any(unix, windows))'.dependencies.libloading]
38ac7cb706Sopenharmony_ci/// version = "0.7"
39ac7cb706Sopenharmony_ci/// ```
40ac7cb706Sopenharmony_cipub mod r0_7_2 {}
41ac7cb706Sopenharmony_ci
42ac7cb706Sopenharmony_ci/// Release 0.7.1 (2021-10-09)
43ac7cb706Sopenharmony_ci///
44ac7cb706Sopenharmony_ci/// Significantly improved the consistency and style of the documentation.
45ac7cb706Sopenharmony_cipub mod r0_7_1 {}
46ac7cb706Sopenharmony_ci
47ac7cb706Sopenharmony_ci/// Release 0.7.0 (2021-02-06)
48ac7cb706Sopenharmony_ci///
49ac7cb706Sopenharmony_ci/// ## Breaking changes
50ac7cb706Sopenharmony_ci///
51ac7cb706Sopenharmony_ci/// ### Loading functions are now `unsafe`
52ac7cb706Sopenharmony_ci///
53ac7cb706Sopenharmony_ci/// A number of associated methods involved in loading a library were changed to
54ac7cb706Sopenharmony_ci/// be `unsafe`. The affected functions are: [`Library::new`], [`os::unix::Library::new`],
55ac7cb706Sopenharmony_ci/// [`os::unix::Library::open`], [`os::windows::Library::new`],
56ac7cb706Sopenharmony_ci/// [`os::windows::Library::load_with_flags`]. This is the most prominent breaking change in this
57ac7cb706Sopenharmony_ci/// release and affects majority of the users of `libloading`.
58ac7cb706Sopenharmony_ci///
59ac7cb706Sopenharmony_ci/// In order to see why it was necessary, consider the following snippet of C++ code:
60ac7cb706Sopenharmony_ci///
61ac7cb706Sopenharmony_ci/// ```c++
62ac7cb706Sopenharmony_ci/// #include <vector>
63ac7cb706Sopenharmony_ci/// #include <iostream>
64ac7cb706Sopenharmony_ci///
65ac7cb706Sopenharmony_ci/// static std::vector<unsigned int> UNSHUU = { 1, 2, 3 };
66ac7cb706Sopenharmony_ci///
67ac7cb706Sopenharmony_ci/// int main() {
68ac7cb706Sopenharmony_ci///     std::cout << UNSHUU[0] << UNSHUU[1] << UNSHUU[2] << std::endl; // Prints 123
69ac7cb706Sopenharmony_ci///     return 0;
70ac7cb706Sopenharmony_ci/// }
71ac7cb706Sopenharmony_ci/// ```
72ac7cb706Sopenharmony_ci///
73ac7cb706Sopenharmony_ci/// The `std::vector` type, much like in Rust's `Vec`, stores its contents in a buffer allocated on
74ac7cb706Sopenharmony_ci/// the heap. In this example the vector object itself is stored and initialized as a static
75ac7cb706Sopenharmony_ci/// variable – a compile time construct. The heap, on the other hand, is a runtime construct. And
76ac7cb706Sopenharmony_ci/// yet the code works exactly as you'd expect – the vector contains numbers 1, 2 and 3 stored in
77ac7cb706Sopenharmony_ci/// a buffer on heap. So, _what_ makes it work out, exactly?
78ac7cb706Sopenharmony_ci///
79ac7cb706Sopenharmony_ci/// Various executable and shared library formats define conventions and machinery to execute
80ac7cb706Sopenharmony_ci/// arbitrary code when a program or a shared library is loaded. On systems using the PE format
81ac7cb706Sopenharmony_ci/// (e.g. Windows) this is available via the optional `DllMain` initializer. Various systems
82ac7cb706Sopenharmony_ci/// utilizing the ELF format take a sightly different approach of maintaining an array of function
83ac7cb706Sopenharmony_ci/// pointers in the `.init_array` section. A very similar mechanism exists on systems that utilize
84ac7cb706Sopenharmony_ci/// the Mach-O format.
85ac7cb706Sopenharmony_ci///
86ac7cb706Sopenharmony_ci/// For the C++ program above, the object stored in the `UNSHUU` global variable is constructed
87ac7cb706Sopenharmony_ci/// by code run as part of such an initializer routine. This initializer is run before the entry
88ac7cb706Sopenharmony_ci/// point (the `main` function) is executed, allowing for this magical behaviour to be possible.
89ac7cb706Sopenharmony_ci/// Were the C++ code built as a shared library instead, the initialization routines would run as
90ac7cb706Sopenharmony_ci/// the resulting shared library is loaded. In case of `libloading` – during the call to
91ac7cb706Sopenharmony_ci/// `Library::new` and other methods affected by this change.
92ac7cb706Sopenharmony_ci///
93ac7cb706Sopenharmony_ci/// These initialization (and very closely related termination) routines can be utilized outside of
94ac7cb706Sopenharmony_ci/// C++ too. Anybody can build a shared library in variety of different programming languages and
95ac7cb706Sopenharmony_ci/// set up the initializers to execute arbitrary code. Potentially code that does all sorts of
96ac7cb706Sopenharmony_ci/// wildly unsound stuff.
97ac7cb706Sopenharmony_ci///
98ac7cb706Sopenharmony_ci/// The routines are executed by components that are an integral part of the operating system.
99ac7cb706Sopenharmony_ci/// Changing or controlling the operation of these components is infeasible. With that in
100ac7cb706Sopenharmony_ci/// mind, the initializer and termination routines are something anybody loading a library must
101ac7cb706Sopenharmony_ci/// carefully evaluate the libraries loaded for soundness.
102ac7cb706Sopenharmony_ci///
103ac7cb706Sopenharmony_ci/// In practice, a vast majority of the libraries can be considered a good citizen and their
104ac7cb706Sopenharmony_ci/// initialization and termination routines, if they have any at all, can be trusted to be sound.
105ac7cb706Sopenharmony_ci///
106ac7cb706Sopenharmony_ci/// Also see: [issue #86].
107ac7cb706Sopenharmony_ci///
108ac7cb706Sopenharmony_ci/// ### Better & more consistent default behaviour on UNIX systems
109ac7cb706Sopenharmony_ci///
110ac7cb706Sopenharmony_ci/// On UNIX systems the [`Library::new`], [`os::unix::Library::new`] and
111ac7cb706Sopenharmony_ci/// [`os::unix::Library::this`] methods have been changed to use
112ac7cb706Sopenharmony_ci/// <code>[RTLD_LAZY] | [RTLD_LOCAL]</code> as the default set of loader options (previously:
113ac7cb706Sopenharmony_ci/// [`RTLD_NOW`]). This has a couple benefits. Namely:
114ac7cb706Sopenharmony_ci///
115ac7cb706Sopenharmony_ci/// * Lazy binding is generally quicker to execute when only a subset of symbols from a library are
116ac7cb706Sopenharmony_ci///   used and is typically the default when neither `RTLD_LAZY` nor `RTLD_NOW` are specified when
117ac7cb706Sopenharmony_ci///   calling the underlying `dlopen` API;
118ac7cb706Sopenharmony_ci/// * On most UNIX systems (macOS being a notable exception) `RTLD_LOCAL` is the default when
119ac7cb706Sopenharmony_ci///   neither `RTLD_LOCAL` nor [`RTLD_GLOBAL`] are specified. The explicit setting of the
120ac7cb706Sopenharmony_ci///   `RTLD_LOCAL` flag makes this behaviour consistent across platforms.
121ac7cb706Sopenharmony_ci///
122ac7cb706Sopenharmony_ci/// ### Dropped support for Windows XP/Vista
123ac7cb706Sopenharmony_ci///
124ac7cb706Sopenharmony_ci/// The (broken) support for Windows XP and Windows Vista environments was removed. This was
125ac7cb706Sopenharmony_ci/// prompted primarily by a similar policy change in the [Rust
126ac7cb706Sopenharmony_ci/// project](https://github.com/rust-lang/compiler-team/issues/378) but also as an acknowledgement
127ac7cb706Sopenharmony_ci/// to the fact that `libloading` never worked in these environments anyway.
128ac7cb706Sopenharmony_ci///
129ac7cb706Sopenharmony_ci/// ### More accurate error variant names
130ac7cb706Sopenharmony_ci///
131ac7cb706Sopenharmony_ci/// Finally, the `Error::LoadLibraryW` renamed to [`Error::LoadLibraryExW`] to more accurately
132ac7cb706Sopenharmony_ci/// represent the underlying API that's failing. No functional changes as part of this rename
133ac7cb706Sopenharmony_ci/// intended.
134ac7cb706Sopenharmony_ci///
135ac7cb706Sopenharmony_ci/// [issue #86]: https://github.com/nagisa/rust_libloading/issues/86
136ac7cb706Sopenharmony_ci/// [`Library::new`]: crate::Library::new
137ac7cb706Sopenharmony_ci/// [`Error::LoadLibraryExW`]: crate::Error::LoadLibraryExW
138ac7cb706Sopenharmony_ci/// [`os::unix::Library::this`]: crate::os::unix::Library::this
139ac7cb706Sopenharmony_ci/// [`os::unix::Library::new`]: crate::os::unix::Library::new
140ac7cb706Sopenharmony_ci/// [`os::unix::Library::open`]: crate::os::unix::Library::new
141ac7cb706Sopenharmony_ci/// [`os::windows::Library::new`]: crate::os::windows::Library::new
142ac7cb706Sopenharmony_ci/// [`os::windows::Library::load_with_flags`]: crate::os::windows::Library::load_with_flags
143ac7cb706Sopenharmony_ci/// [`RTLD_NOW`]: crate::os::unix::RTLD_NOW
144ac7cb706Sopenharmony_ci/// [RTLD_LAZY]: crate::os::unix::RTLD_LAZY
145ac7cb706Sopenharmony_ci/// [RTLD_LOCAL]: crate::os::unix::RTLD_LOCAL
146ac7cb706Sopenharmony_ci/// [`RTLD_GLOBAL`]: crate::os::unix::RTLD_GLOBAL
147ac7cb706Sopenharmony_cipub mod r0_7_0 {}
148ac7cb706Sopenharmony_ci
149ac7cb706Sopenharmony_ci/// Release 0.6.7 (2021-01-14)
150ac7cb706Sopenharmony_ci///
151ac7cb706Sopenharmony_ci/// * Added a [`os::windows::Library::open_already_loaded`] to obtain a handle to a library that
152ac7cb706Sopenharmony_ci/// must already be loaded. There is no portable equivalent for all UNIX targets. Users who do not
153ac7cb706Sopenharmony_ci/// care about portability across UNIX platforms may use [`os::unix::Library::open`] with
154ac7cb706Sopenharmony_ci/// `libc::RTLD_NOLOAD`;
155ac7cb706Sopenharmony_ci///
156ac7cb706Sopenharmony_ci/// [`os::windows::Library::open_already_loaded`]: crate::os::windows::Library::open_already_loaded
157ac7cb706Sopenharmony_ci/// [`os::unix::Library::open`]: crate::os::unix::Library::open
158ac7cb706Sopenharmony_cipub mod r0_6_7 {}
159ac7cb706Sopenharmony_ci
160ac7cb706Sopenharmony_ci/// Release 0.6.6 (2020-12-03)
161ac7cb706Sopenharmony_ci///
162ac7cb706Sopenharmony_ci/// * Fix a double-release of resources when [`Library::close`] or [`os::windows::Library::close`]
163ac7cb706Sopenharmony_ci///   is used on Windows.
164ac7cb706Sopenharmony_ci///
165ac7cb706Sopenharmony_ci/// [`Library::close`]: crate::Library::close
166ac7cb706Sopenharmony_ci/// [`os::windows::Library::close`]: crate::os::windows::Library::close
167ac7cb706Sopenharmony_cipub mod r0_6_6 {}
168ac7cb706Sopenharmony_ci
169ac7cb706Sopenharmony_ci/// Release 0.6.5 (2020-10-23)
170ac7cb706Sopenharmony_ci///
171ac7cb706Sopenharmony_ci/// * Upgrade cfg-if 0.1 to 1.0
172ac7cb706Sopenharmony_cipub mod r0_6_5 {}
173ac7cb706Sopenharmony_ci
174ac7cb706Sopenharmony_ci/// Release 0.6.4 (2020-10-10)
175ac7cb706Sopenharmony_ci///
176ac7cb706Sopenharmony_ci/// * Remove use of `build.rs` making it easier to build `libloading` without cargo. It also
177ac7cb706Sopenharmony_ci///   almost halves the build time of this crate.
178ac7cb706Sopenharmony_cipub mod r0_6_4 {}
179ac7cb706Sopenharmony_ci
180ac7cb706Sopenharmony_ci/// Release 0.6.3 (2020-08-22)
181ac7cb706Sopenharmony_ci///
182ac7cb706Sopenharmony_ci/// * Improve documentation, allowing to view all of the os-specific functionality from
183ac7cb706Sopenharmony_ci/// documentation generated for any target;
184ac7cb706Sopenharmony_ci/// * Add [`os::windows::Library::this`];
185ac7cb706Sopenharmony_ci/// * Added constants to use with OS-specific `Library::open`;
186ac7cb706Sopenharmony_ci/// * Add [`library_filename`].
187ac7cb706Sopenharmony_ci///
188ac7cb706Sopenharmony_ci/// [`os::windows::Library::this`]: crate::os::windows::Library::this
189ac7cb706Sopenharmony_ci/// [`library_filename`]: crate::library_filename
190ac7cb706Sopenharmony_cipub mod r0_6_3 {}
191ac7cb706Sopenharmony_ci
192ac7cb706Sopenharmony_ci/// Release 0.6.2 (2020-05-06)
193ac7cb706Sopenharmony_ci///
194ac7cb706Sopenharmony_ci/// * Fixed building of this library on Illumos.
195ac7cb706Sopenharmony_cipub mod r0_6_2 {}
196ac7cb706Sopenharmony_ci
197ac7cb706Sopenharmony_ci/// Release 0.6.1 (2020-04-15)
198ac7cb706Sopenharmony_ci///
199ac7cb706Sopenharmony_ci/// * Introduced a new method [`os::windows::Library::load_with_flags`];
200ac7cb706Sopenharmony_ci/// * Added support for the Illumos triple.
201ac7cb706Sopenharmony_ci///
202ac7cb706Sopenharmony_ci/// [`os::windows::Library::load_with_flags`]: crate::os::windows::Library::load_with_flags
203ac7cb706Sopenharmony_cipub mod r0_6_1 {}
204ac7cb706Sopenharmony_ci
205ac7cb706Sopenharmony_ci/// Release 0.6.0 (2020-04-05)
206ac7cb706Sopenharmony_ci///
207ac7cb706Sopenharmony_ci/// * Introduced a new method [`os::unix::Library::get_singlethreaded`];
208ac7cb706Sopenharmony_ci/// * Added (untested) support for building when targeting Redox and Fuchsia;
209ac7cb706Sopenharmony_ci/// * The APIs exposed by this library no longer panic and instead return an `Err` when it used
210ac7cb706Sopenharmony_ci///   to panic.
211ac7cb706Sopenharmony_ci///
212ac7cb706Sopenharmony_ci/// ## Breaking changes
213ac7cb706Sopenharmony_ci///
214ac7cb706Sopenharmony_ci/// * Minimum required (stable) version of Rust to build this library is now 1.40.0;
215ac7cb706Sopenharmony_ci/// * This crate now implements a custom [`Error`] type and all APIs now return this type rather
216ac7cb706Sopenharmony_ci///   than returning the `std::io::Error`;
217ac7cb706Sopenharmony_ci/// * `libloading::Result` has been removed;
218ac7cb706Sopenharmony_ci/// * Removed the dependency on the C compiler to build this library on UNIX-like platforms.
219ac7cb706Sopenharmony_ci///   `libloading` used to utilize a snippet written in C to work-around the unlikely possibility
220ac7cb706Sopenharmony_ci///   of the target having a thread-unsafe implementation of the `dlerror` function. The effect of
221ac7cb706Sopenharmony_ci///   the work-around was very opportunistic: it would not work if the function was called by
222ac7cb706Sopenharmony_ci///   forgoing `libloading`.
223ac7cb706Sopenharmony_ci///
224ac7cb706Sopenharmony_ci///   Starting with 0.6.0, [`Library::get`] on platforms where `dlerror` is not MT-safe (such as
225ac7cb706Sopenharmony_ci///   FreeBSD, DragonflyBSD or NetBSD) will unconditionally return an error when the underlying
226ac7cb706Sopenharmony_ci///   `dlsym` returns a null pointer. For the use-cases where loading null pointers is necessary
227ac7cb706Sopenharmony_ci///   consider using [`os::unix::Library::get_singlethreaded`] instead.
228ac7cb706Sopenharmony_ci///
229ac7cb706Sopenharmony_ci/// [`Library::get`]: crate::Library::get
230ac7cb706Sopenharmony_ci/// [`os::unix::Library::get_singlethreaded`]: crate::os::unix::Library::get_singlethreaded
231ac7cb706Sopenharmony_ci/// [`Error`]: crate::Error
232ac7cb706Sopenharmony_cipub mod r0_6_0 {}
233ac7cb706Sopenharmony_ci
234ac7cb706Sopenharmony_ci/// Release 0.5.2 (2019-07-07)
235ac7cb706Sopenharmony_ci///
236ac7cb706Sopenharmony_ci/// * Added API to convert OS-specific `Library` and `Symbol` conversion to underlying resources.
237ac7cb706Sopenharmony_cipub mod r0_5_2 {}
238ac7cb706Sopenharmony_ci
239ac7cb706Sopenharmony_ci/// Release 0.5.1 (2019-06-01)
240ac7cb706Sopenharmony_ci///
241ac7cb706Sopenharmony_ci/// * Build on Haiku targets.
242ac7cb706Sopenharmony_cipub mod r0_5_1 {}
243ac7cb706Sopenharmony_ci
244ac7cb706Sopenharmony_ci/// Release 0.5.0 (2018-01-11)
245ac7cb706Sopenharmony_ci///
246ac7cb706Sopenharmony_ci/// * Update to `winapi = ^0.3`;
247ac7cb706Sopenharmony_ci///
248ac7cb706Sopenharmony_ci/// ## Breaking changes
249ac7cb706Sopenharmony_ci///
250ac7cb706Sopenharmony_ci/// * libloading now requires a C compiler to build on UNIX;
251ac7cb706Sopenharmony_ci///   * This is a temporary measure until the [`linkage`] attribute is stabilised;
252ac7cb706Sopenharmony_ci///   * Necessary to resolve [#32].
253ac7cb706Sopenharmony_ci///
254ac7cb706Sopenharmony_ci/// [`linkage`]: https://github.com/rust-lang/rust/issues/29603
255ac7cb706Sopenharmony_ci/// [#32]: https://github.com/nagisa/rust_libloading/issues/32
256ac7cb706Sopenharmony_cipub mod r0_5_0 {}
257ac7cb706Sopenharmony_ci
258ac7cb706Sopenharmony_ci/// Release 0.4.3 (2017-12-07)
259ac7cb706Sopenharmony_ci///
260ac7cb706Sopenharmony_ci/// * Bump lazy-static dependency to `^1.0`;
261ac7cb706Sopenharmony_ci/// * `cargo test --release` now works when testing libloading.
262ac7cb706Sopenharmony_cipub mod r0_4_3 {}
263ac7cb706Sopenharmony_ci
264ac7cb706Sopenharmony_ci/// Release 0.4.2 (2017-09-24)
265ac7cb706Sopenharmony_ci///
266ac7cb706Sopenharmony_ci/// * Improved error and race-condition handling on Windows;
267ac7cb706Sopenharmony_ci/// * Improved documentation about thread-safety of Library;
268ac7cb706Sopenharmony_ci/// * Added `Symbol::<Option<T>::lift_option() -> Option<Symbol<T>>` convenience method.
269ac7cb706Sopenharmony_cipub mod r0_4_2 {}
270ac7cb706Sopenharmony_ci
271ac7cb706Sopenharmony_ci/// Release 0.4.1 (2017-08-29)
272ac7cb706Sopenharmony_ci///
273ac7cb706Sopenharmony_ci/// * Solaris support
274ac7cb706Sopenharmony_cipub mod r0_4_1 {}
275ac7cb706Sopenharmony_ci
276ac7cb706Sopenharmony_ci/// Release 0.4.0 (2017-05-01)
277ac7cb706Sopenharmony_ci///
278ac7cb706Sopenharmony_ci/// * Remove build-time dependency on target_build_utils (and by extension serde/phf);
279ac7cb706Sopenharmony_ci/// * Require at least version 1.14.0 of rustc to build;
280ac7cb706Sopenharmony_ci///   * Actually, it is cargo which has to be more recent here. The one shipped with rustc 1.14.0
281ac7cb706Sopenharmony_ci///     is what’s being required from now on.
282ac7cb706Sopenharmony_cipub mod r0_4_0 {}
283ac7cb706Sopenharmony_ci
284ac7cb706Sopenharmony_ci/// Release 0.3.4 (2017-03-25)
285ac7cb706Sopenharmony_ci///
286ac7cb706Sopenharmony_ci/// * Remove rogue println!
287ac7cb706Sopenharmony_cipub mod r0_3_4 {}
288ac7cb706Sopenharmony_ci
289ac7cb706Sopenharmony_ci/// Release 0.3.3 (2017-03-25)
290ac7cb706Sopenharmony_ci///
291ac7cb706Sopenharmony_ci/// * Panics when `Library::get` is called for incompatibly sized type such as named function
292ac7cb706Sopenharmony_ci///   types (which are zero-sized).
293ac7cb706Sopenharmony_cipub mod r0_3_3 {}
294ac7cb706Sopenharmony_ci
295ac7cb706Sopenharmony_ci/// Release 0.3.2 (2017-02-10)
296ac7cb706Sopenharmony_ci///
297ac7cb706Sopenharmony_ci/// * Minimum version required is now rustc 1.12.0;
298ac7cb706Sopenharmony_ci/// * Updated dependency versions (most notably target_build_utils to 0.3.0)
299ac7cb706Sopenharmony_cipub mod r0_3_2 {}
300ac7cb706Sopenharmony_ci
301ac7cb706Sopenharmony_ci/// Release 0.3.1 (2016-10-01)
302ac7cb706Sopenharmony_ci///
303ac7cb706Sopenharmony_ci/// * `Symbol<T>` and `os::*::Symbol<T>` now implement `Send` where `T: Send`;
304ac7cb706Sopenharmony_ci/// * `Symbol<T>` and `os::*::Symbol<T>` now implement `Sync` where `T: Sync`;
305ac7cb706Sopenharmony_ci/// * `Library` and `os::*::Library` now implement `Sync` (they were `Send` in 0.3.0 already).
306ac7cb706Sopenharmony_cipub mod r0_3_1 {}
307ac7cb706Sopenharmony_ci
308ac7cb706Sopenharmony_ci/// Release 0.3.0 (2016-07-27)
309ac7cb706Sopenharmony_ci///
310ac7cb706Sopenharmony_ci/// * Greatly improved documentation, especially around platform-specific behaviours;
311ac7cb706Sopenharmony_ci/// * Improved test suite by building our own library to test against;
312ac7cb706Sopenharmony_ci/// * All `Library`-ies now implement `Send`.
313ac7cb706Sopenharmony_ci/// * Added `impl From<os::platform::Library> for Library` and `impl From<Library> for
314ac7cb706Sopenharmony_ci/// os::platform::Library` allowing wrapping and extracting the platform-specific library handle;
315ac7cb706Sopenharmony_ci/// * Added methods to wrap (`Symbol::from_raw`) and unwrap (`Symbol::into_raw`) the safe `Symbol`
316ac7cb706Sopenharmony_ci/// wrapper into unsafe `os::platform::Symbol`.
317ac7cb706Sopenharmony_ci///
318ac7cb706Sopenharmony_ci/// The last two additions focus on not restricting potential usecases of this library, allowing
319ac7cb706Sopenharmony_ci/// users of the library to circumvent safety checks if need be.
320ac7cb706Sopenharmony_ci///
321ac7cb706Sopenharmony_ci/// ## Breaking Changes
322ac7cb706Sopenharmony_ci///
323ac7cb706Sopenharmony_ci/// `Library::new` defaults to `RTLD_NOW` instead of `RTLD_LAZY` on UNIX for more consistent
324ac7cb706Sopenharmony_ci/// cross-platform behaviour. If a library loaded with `Library::new` had any linking errors, but
325ac7cb706Sopenharmony_ci/// unresolved references weren’t forced to be resolved, the library would’ve “just worked”,
326ac7cb706Sopenharmony_ci/// whereas now the call to `Library::new` will return an error signifying presence of such error.
327ac7cb706Sopenharmony_ci///
328ac7cb706Sopenharmony_ci/// ## os::platform
329ac7cb706Sopenharmony_ci/// * Added `os::unix::Library::open` which allows specifying arbitrary flags (e.g. `RTLD_LAZY`);
330ac7cb706Sopenharmony_ci/// * Added `os::windows::Library::get_ordinal` which allows finding a function or variable by its
331ac7cb706Sopenharmony_ci/// ordinal number;
332ac7cb706Sopenharmony_cipub mod r0_3_0 {}
333