Crates.io | lddtree |
lib.rs | lddtree |
version | |
source | src |
created_at | 2021-12-05 12:31:41.124326 |
updated_at | 2024-11-30 02:53:35.078636 |
description | Read the ELF dependency tree |
homepage | |
repository | https://github.com/messense/lddtree-rs |
max_upload_size | |
id | 492661 |
Cargo.toml error: | TOML parse error at line 17, column 1 | 17 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
Read the ELF dependency tree, this does not work like ldd
in that we do not execute/load code (only read
files on disk).
This is roughly a Rust port of the lddtree.py from the auditwheel project. It's intended to be used in maturin for implementing automatic repair of manylinux and musllinux wheels.
Add it to your Cargo.toml
:
[dependencies]
lddtree = "0.3"
There is also a simple cli utility which can be installed via
cargo install lddtree
Usage: lddtree <pathname> [root]
pathname
is the path to a linux shared library.root
is an optional path to a sysroot directory.This work is released under the MIT license. A copy of the license is provided in the LICENSE file.