dlib icon indicating copy to clipboard operation
dlib copied to clipboard

A dynamic library helper for rust crates

Results 6 dlib issues
Sort by recently updated
recently updated
newest added

Random drive-by thought: if `external_library` generated code like this when not having the `dlopen` feature: ```rust mod private { #[link(name = "foo")] extern "C" { static me: c_int; static you:...

Allows `#[cfg]` to be used to make certain definitions conditional. Such as for library version feature flags. Needed for https://github.com/Smithay/wayland-rs/pull/735 so it can have a feature flag for the libwayland...

``` error: no rules expected the token `...` --> src/lib.rs:18:30 | 13 | fn blah(c_int, c_int ...) -> *const c_void, | ^^^ no rules expected this token in macro call...

I noticed this testing https://github.com/elinorbgr/dlib/pull/22. After updating the doc tests to build, this error occurs. ``` ---- src/lib.rs - (line 8) stdout ---- error: local ambiguity when calling macro `external_library`:...

We can make the crate work in `#![no_std]` environments with minimal changes. Literally just changing a few imports. Should be trivial to maintain as well, just make sure to always...

This adds `external_library_universal!`, a new entrypoint to the crate. It's very similar to `external_library!` but the generated bindings are universal for both dlopen and non-dlopen builds. This fixes #12. Of...