elb-dl 0.4.0

A library that resolves ELF dependencies without loading and executing them.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use std::ffi::CString;
use std::path::PathBuf;

/// Dynamic loader error.
#[derive(thiserror::Error, Debug)]
#[allow(missing_docs)]
pub enum Error {
    #[error("ELF error: {0}")]
    Elf(#[from] elb::Error),
    #[error("Failed to resolve dependency {0:?} of {1:?}")]
    FailedToResolve(CString, PathBuf),
    #[error("Input/output error: {0}")]
    Io(#[from] std::io::Error),
}