#libloading #dlopen #hash-table #load #shared #dylib

libfastdl

A libloading wrapper library that caches function pointer to hash table

2 unstable releases

Uses old Rust 2015

0.2.0 Mar 9, 2020
0.1.0 Apr 7, 2018

#6 in #libloading

MPL-2.0 license

7KB
67 lines

libfastdl-rust

About

A libloading wrapper library that caches function pointer to hash table

Usage

let mut lib = super::Library::new("libdltest.so").unwrap();
unsafe {
    let test_fn = lib.get::<unsafe extern fn(i32) -> i32>("test").unwrap();
    assert!(test_fn(100) == 200);
}

License

Mozilla Public License 2.0

Dependencies

~93–540KB