sharedlib icon indicating copy to clipboard operation
sharedlib copied to clipboard

A cross-platform shared library loader.

Results 9 sharedlib issues
Sort by recently updated
recently updated
newest added

Since I want to load dynamic libraries manually at runtime, I might also first know about the function types at runtime, so doing it like in the example code, where...

I am facing strange behavior: when I am passing the absolute path to `Lib::new` method, it returns an error saying that it cannot find the file. However, calling `canonicalize` on...

Maximiato's fix (from #12) for #10 with an upgrade of Gradle so it works with newer Java versions.

Converting to CString type before passing as a C pointer to dlopen added the \0 termination and obviates one of the casts. Tests would fail if the same rigor was...

E.g.: ``` let path_to_lib_str = path_to_lib .as_ref() .to_string_lossy(); let path_to_lib_c_str = path_to_lib_str.as_ptr() as *const c_char; ``` here `path_to_lib_c_str` is not really a c_str, but a pointer to a regular Rust...

Interested in using this project but when I ran the tests I got failures, please advise: ```---- test::shared::check_test_value stdout ---- thread 'test::shared::check_test_value' panicked at 'called `Result::unwrap()` on an `Err` value:...

For some reason we are importing the Unix os with `#[macro_use]`. This is probably not necessary.

I would have a working test for this. It is an important use-case.