Cargo Features
[dependencies]
dlopen-rs = { version = "0.3.1", default-features = false, features = ["ldso", "debug", "std", "mmap", "tls", "version", "nightly", "unwinding", "libgcc", "libunwind", "fde-phdr-dl", "fde-static", "fde-gnu-eh-frame-hdr"] }
- default = debug, ldso, libgcc, mmap, tls
-
These default features are set whenever
dlopen-rs
is added without
somewhere in the dependency tree.default-features = false - ldso default = std
-
allows dynamic libraries to be loaded using system dynamic loaders(ldso)
Enables nix
- debug default = std
-
enable this when you want to use gdb/lldb to debug the loaded dynamic libraries
- std debug ldso mmap tls
-
enable std
Enables nix
- mmap default = std
-
enable this on platforms that support mmap
Enables nix
- tls default = std
-
enable this when you need to use thread local storage
Enables nix
- version
-
activate specific versions of symbols for dynamic library loading
- nightly
-
enable this can make loading
faster
, but you'll need to use thenightly
compiler - unwinding
-
enable this when you want to use the exception handling mechanism provided by dlopen-rs
- libgcc default
-
enable this when program uses libgcc to handle exceptions
Enables gimli ^0.30
- libunwind
-
enable this when program uses libunwind to handle exceptions
Enables gimli ^0.30
- fde-phdr-dl
-
Enables fde-phdr-dl of optional unwinding
- fde-static
-
Enables fde-static of optional unwinding
- fde-gnu-eh-frame-hdr
-
Enables fde-gnu-eh-frame-hdr of optional unwinding