Cargo Features

[dependencies]
dlopen-rs = { version = "0.2.3", default-features = false, features = ["ldso", "debug", "std", "mmap", "tls", "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 default-features = false somewhere in the dependency tree.

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

nightly

enable this can make loading faster, but you'll need to use the nightly compiler

unwinding

enable this when you want to use the exception handling mechanism provided by dlopen-rs

Enables spin and unwinding

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

see https://github.com/nbdd0121/unwinding/#unwinder

Enables fde-phdr-dl of optional unwinding

fde-static

see https://github.com/nbdd0121/unwinding/#baremetal

Enables fde-static of optional unwinding

fde-gnu-eh-frame-hdr

see https://github.com/nbdd0121/unwinding/#baremetal

Enables fde-gnu-eh-frame-hdr of optional unwinding