---
title: "libloading 0.9.0 Breaking Changes on crates.io | Since.dev"
description: "What each libloading release removed, renamed or changed: 36 breaking changes in 2 versions on crates.io, each with its source."
canonical_url: https://since.dev/packages/crates/libloading
last_updated: 2026-12-04
---

# libloading breaking changes

libloading 0.9.0 (November 5, 2025) is its newest release with breaking changes, 22 of them. The first: Removed libloading::Error::CreateCString. Every breaking API change we have recorded in libloading on crates.io: 36 breaking changes in 2 versions. Below, its 2 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `0.9.1`, released November 13, 2026. [Source repository](https://github.com/nagisa/rust%5Flibloading)

Packages on crates.io run on Rust. [Rust end of life dates](https://since.dev/calendar/rust.md).

- From [0.8.0](#v-0-8-0) to [0.9.0](#v-0-9-0): 22 breaking changes in 1 version.

## libloading 0.9.0 breaking changes

libloading 0.9.0, released November 5, 2025: 22 breaking changes.

- **Removed** `libloading::Error::CreateCString`  

libloading::Error::CreateCString was removed in libloading 0.9.0 [crates.io](https://crates.io/crates/libloading/0.9.0)
- **Removed** `libloading::Error::CreateCStringWithTrailing`  

libloading::Error::CreateCStringWithTrailing was removed in libloading 0.9.0 [crates.io](https://crates.io/crates/libloading/0.9.0)
- **Signature changed** `libloading::Error::DlClose`  

Was DlClose {/// The source error. desc: DlDescription}; now DlClose {/// The source error. source: DlError}. [crates.io](https://crates.io/crates/libloading/0.9.0)
- **Signature changed** `libloading::Error::DlOpen`  

Was DlOpen {/// The source error. desc: DlDescription}; now DlOpen {/// The source error. source: DlError}. [crates.io](https://crates.io/crates/libloading/0.9.0)
- **Signature changed** `libloading::Error::DlSym`  

Was DlSym {/// The source error. desc: DlDescription}; now DlSym {/// The source error. source: DlError}. [crates.io](https://crates.io/crates/libloading/0.9.0)
- **Signature changed** `libloading::library_filename`  

Was fn library_filename\<S: AsRef\<OsStr>>(name: S) -> OsString; now fn library_filename\<S: AsRef\<std::ffi::OsStr>>(name: S) -> std::ffi::OsString. [crates.io](https://crates.io/crates/libloading/0.9.0)
- **Signature changed** `libloading::Library::get`  

Was unsafe fn get\<T>(&self, symbol: &\[u8\]) -> Result\<Symbol<'\_, T>, Error>; now unsafe fn get\<T>(&self, symbol: impl AsSymbolName) -> Result\<Symbol<'\_, T>, Error>. [crates.io](https://crates.io/crates/libloading/0.9.0)
- **Signature changed** `libloading::Library::new`  

Was unsafe fn new\<P: AsRef\<OsStr>>(filename: P) -> Result\<Library, Error>; now unsafe fn new(filename: impl AsFilename) -> Result\<Library, Error>. [crates.io](https://crates.io/crates/libloading/0.9.0)
- **Signature changed** `libloading::os::unix::Library::from_raw`  

Was unsafe fn from_raw(handle: \*mut raw::c_void) -> Library; now unsafe fn from_raw(handle: \*mut core::ffi::c_void) -> Library. [crates.io](https://crates.io/crates/libloading/0.9.0)
- **Signature changed** `libloading::os::unix::Library::get`  

Was unsafe fn get\<T>(&self, symbol: &\[u8\]) -> Result\<Symbol\<T>, crate::Error>; now unsafe fn get\<T>(&self, symbol: impl AsSymbolName) -> Result\<Symbol\<T>, crate::Error>. [crates.io](https://crates.io/crates/libloading/0.9.0)
- **Signature changed** `libloading::os::unix::Library::get_singlethreaded`  

Was unsafe fn get_singlethreaded\<T>(&self, symbol: &\[u8\]) -> Result\<Symbol\<T>, crate::Error>; now unsafe fn get_singlethreaded\<T>(&self, symbol: impl AsSymbolName) -> Result\<Symbol\<T>, crate::Error>. [crates.io](https://crates.io/crates/libloading/0.9.0)
- **Signature changed** `libloading::os::unix::Library::into_raw`  

Was fn into_raw(self) -> \*mut raw::c_void; now fn into_raw(self) -> \*mut core::ffi::c_void. [crates.io](https://crates.io/crates/libloading/0.9.0)
- **Signature changed** `libloading::os::unix::Library::new`  

Was unsafe fn new\<P: AsRef\<OsStr>>(filename: P) -> Result\<Library, crate::Error>; now unsafe fn new(filename: impl AsFilename) -> Result\<Library, crate::Error>. [crates.io](https://crates.io/crates/libloading/0.9.0)
- **Signature changed** `libloading::os::unix::Library::open`  

Was unsafe fn open\<P>(filename: Option\<P>, flags: raw::c_int) -> Result\<Library, crate::Error> where P: AsRef\<OsStr>,; now unsafe fn open\<P>(filename: Option\<P>, flags: core::ffi::c_int) -> Result\<Library, crate::Error> where P... [crates.io](https://crates.io/crates/libloading/0.9.0)
- **Signature changed** `libloading::os::unix::Symbol::as_raw_ptr`  

Was fn as_raw_ptr(self) -> \*mut raw::c_void; now fn as_raw_ptr(self) -> \*mut core::ffi::c_void. [crates.io](https://crates.io/crates/libloading/0.9.0)
- **Signature changed** `libloading::os::unix::Symbol::into_raw`  

Was fn into_raw(self) -> \*mut raw::c_void; now fn into_raw(self) -> \*mut core::ffi::c_void. [crates.io](https://crates.io/crates/libloading/0.9.0)
- **Signature changed** `libloading::os::windows::Library::get`  

Was unsafe fn get\<T>(&self, symbol: &\[u8\]) -> Result\<Symbol\<T>, crate::Error>; now unsafe fn get\<T>(&self, symbol: impl AsSymbolName) -> Result\<Symbol\<T>, crate::Error>. [crates.io](https://crates.io/crates/libloading/0.9.0)
- **Signature changed** `libloading::os::windows::Library::load_with_flags`  

Was unsafe fn load_with_flags\<P: AsRef\<OsStr>>(filename: P, flags: LOAD_LIBRARY_FLAGS) -> Result\<Library, crate::Error>; now unsafe fn load_with_flags(filename: impl AsFilename, flags: LOAD_LIBRARY_FLAGS) -> Result\<Library, crate::Error>. [crates.io](https://crates.io/crates/libloading/0.9.0)
- **Signature changed** `libloading::os::windows::Library::new`  

Was unsafe fn new\<P: AsRef\<OsStr>>(filename: P) -> Result\<Library, crate::Error>; now unsafe fn new(filename: impl AsFilename) -> Result\<Library, crate::Error>. [crates.io](https://crates.io/crates/libloading/0.9.0)
- **Signature changed** `libloading::os::windows::Library::open_already_loaded`  

Was fn open_already_loaded\<P: AsRef\<OsStr>>(filename: P) -> Result\<Library, crate::Error>; now fn open_already_loaded(filename: impl AsFilename) -> Result\<Library, crate::Error>. [crates.io](https://crates.io/crates/libloading/0.9.0)
- **Signature changed** `libloading::os::windows::Symbol::as_raw_ptr`  

Was fn as_raw_ptr(self) -> \*mut raw::c_void; now fn as_raw_ptr(self) -> \*mut core::ffi::c_void. [crates.io](https://crates.io/crates/libloading/0.9.0)
- **Signature changed** `libloading::Symbol::try_as_raw_ptr`  

Was unsafe fn try_as_raw_ptr(self) -> Option<\*mut raw::c_void>; now unsafe fn try_as_raw_ptr(self) -> Option<\*mut core::ffi::c_void>. [crates.io](https://crates.io/crates/libloading/0.9.0)

## libloading 0.8.0 breaking changes

libloading 0.8.0, released April 11, 2023: 14 breaking changes.

- **Signature changed** `libloading::os::windows::Library::get_ordinal`  

Was unsafe fn get_ordinal\<T>(&self, ordinal: WORD) -> Result\<Symbol\<T>, crate::Error>; now unsafe fn get_ordinal\<T>(&self, ordinal: u16) -> Result\<Symbol\<T>, crate::Error>. [crates.io](https://crates.io/crates/libloading/0.8.0)
- **Signature changed** `libloading::os::windows::Library::load_with_flags`  

Was unsafe fn load_with_flags\<P: AsRef\<OsStr>>(filename: P, flags: DWORD) -> Result\<Library, crate::Error>; now unsafe fn load_with_flags\<P: AsRef\<OsStr>>(filename: P, flags: LOAD_LIBRARY_FLAGS) -> Result\<Library, crate::Error>. [crates.io](https://crates.io/crates/libloading/0.8.0)
- **Signature changed** `libloading::os::windows::LOAD_IGNORE_CODE_AUTHZ_LEVEL`  

Was const LOAD_IGNORE_CODE_AUTHZ_LEVEL: DWORD; now const LOAD_IGNORE_CODE_AUTHZ_LEVEL: LOAD_LIBRARY_FLAGS. [crates.io](https://crates.io/crates/libloading/0.8.0)
- **Signature changed** `libloading::os::windows::LOAD_LIBRARY_AS_DATAFILE`  

Was const LOAD_LIBRARY_AS_DATAFILE: DWORD; now const LOAD_LIBRARY_AS_DATAFILE: LOAD_LIBRARY_FLAGS. [crates.io](https://crates.io/crates/libloading/0.8.0)
- **Signature changed** `libloading::os::windows::LOAD_LIBRARY_AS_DATAFILE_EXCLUSIVE`  

Was const LOAD_LIBRARY_AS_DATAFILE_EXCLUSIVE: DWORD; now const LOAD_LIBRARY_AS_DATAFILE_EXCLUSIVE: LOAD_LIBRARY_FLAGS. [crates.io](https://crates.io/crates/libloading/0.8.0)
- **Signature changed** `libloading::os::windows::LOAD_LIBRARY_AS_IMAGE_RESOURCE`  

Was const LOAD_LIBRARY_AS_IMAGE_RESOURCE: DWORD; now const LOAD_LIBRARY_AS_IMAGE_RESOURCE: LOAD_LIBRARY_FLAGS. [crates.io](https://crates.io/crates/libloading/0.8.0)
- **Signature changed** `libloading::os::windows::LOAD_LIBRARY_REQUIRE_SIGNED_TARGET`  

Was const LOAD_LIBRARY_REQUIRE_SIGNED_TARGET: DWORD; now const LOAD_LIBRARY_REQUIRE_SIGNED_TARGET: LOAD_LIBRARY_FLAGS. [crates.io](https://crates.io/crates/libloading/0.8.0)
- **Signature changed** `libloading::os::windows::LOAD_LIBRARY_SAFE_CURRENT_DIRS`  

Was const LOAD_LIBRARY_SAFE_CURRENT_DIRS: DWORD; now const LOAD_LIBRARY_SAFE_CURRENT_DIRS: LOAD_LIBRARY_FLAGS. [crates.io](https://crates.io/crates/libloading/0.8.0)
- **Signature changed** `libloading::os::windows::LOAD_LIBRARY_SEARCH_APPLICATION_DIR`  

Was const LOAD_LIBRARY_SEARCH_APPLICATION_DIR: DWORD; now const LOAD_LIBRARY_SEARCH_APPLICATION_DIR: LOAD_LIBRARY_FLAGS. [crates.io](https://crates.io/crates/libloading/0.8.0)
- **Signature changed** `libloading::os::windows::LOAD_LIBRARY_SEARCH_DEFAULT_DIRS`  

Was const LOAD_LIBRARY_SEARCH_DEFAULT_DIRS: DWORD; now const LOAD_LIBRARY_SEARCH_DEFAULT_DIRS: LOAD_LIBRARY_FLAGS. [crates.io](https://crates.io/crates/libloading/0.8.0)

And 4 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
