# nagisa/rust_libloading

Bindings around the platform's dynamic library loading primitives with greatly improved memory safety.

Repository: https://github.com/nagisa/rust_libloading
Canonical: https://ross.abutalabs.com/products/rust_libloading
Homepage: https://docs.rs/libloading
Language: Rust
License: ISC
License Family: permissive
Last push: 2026-08-02T09:16:45+00:00

## Health v2 (maintenance only)
Score: 75/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 95, release rhythm 35, longevity 100
- inputs: {"age_days": 3952, "days_push": 31, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, no_readme
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1470, forks 126 (observed 2026-08-28T04:04:49.153239+00:00)

## What it is
libloading is a Rust crate providing safe, cross-platform bindings around dynamic library loading primitives (dlopen/LoadLibrary). It lets programs load shared libraries at runtime and call their functions or access their symbols with compiler-enforced lifetime safety.

## Use cases
- load a shared library at runtime in Rust
- call functions from a .so or .dll dynamically
- build a plugin system with runtime-loaded modules
- wrap dlopen and LoadLibrary with a safe API
- get symbols from a dynamic library safely
- load native libraries for FFI at runtime

## When to choose
- you need to load shared libraries at runtime in Rust with memory safety
- you are building a plugin architecture that loads native modules
- you want a cross-platform alternative to calling dlopen/LoadLibrary directly

## When to avoid
- you only need compile-time linking to a C library (use a -sys crate instead)
- you need to hide all platform behavioral differences between dynamic loaders
- you need to load non-native plugins like WASM or interpreted scripts

## Facets
- artifact type: library
- maturity: stable
- function: developer-tools
- domain: developer-tools, operating-systems, cross-platform
- platform: windows, rust, cross-platform
- tags: ffi, dynamic-library-loading, shared-libraries, dlopen, loadlibrary, plugin-system, linux, macos

## Member repositories
- nagisa/rust_libloading (main) score 75

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:49.153239+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:34:50.451754+00:00, confidence not recorded.
  - homepage: https://docs.rs/libloading (fetched 2026-08-29T11:42:51.694697+00:00, sha f84b59335580)
  - site_page: https://docs.rs/ (fetched 2026-08-29T11:42:51.703649+00:00, sha 980aa96ba493)
  - site_page: https://docs.rs/crate/libloading/latest (fetched 2026-08-29T11:42:51.705382+00:00, sha 9a6fac04bb14)
  - site_page: https://docs.rs/crate/libloading/latest/features (fetched 2026-08-29T11:42:51.707097+00:00, sha 912f1ed345b6)
  - site_page: https://docs.rs/about (fetched 2026-08-29T11:42:51.708760+00:00, sha 29ab7986fbf5)
  - site_page: https://docs.rs/about/badges (fetched 2026-08-29T11:42:51.710604+00:00, sha 6588cac258af)
  - site_page: https://docs.rs/about/builds (fetched 2026-08-29T11:42:51.712130+00:00, sha 811231ca4680)
  - site_page: https://docs.rs/about/metadata (fetched 2026-08-29T11:42:51.713815+00:00, sha 0dcdccb2b2b2)
  - site_page: https://docs.rs/about/redirections (fetched 2026-08-29T11:42:51.715306+00:00, sha 1b1efd93105f)
- Data as of 2026-08-30T08:39:29.467469+00:00.
