25 releases
| 0.3.8 | Nov 8, 2025 |
|---|---|
| 0.3.7 | Nov 30, 2024 |
| 0.3.6 | Oct 30, 2024 |
| 0.3.5 | Jul 1, 2024 |
| 0.2.4 | Dec 23, 2021 |
#68 in Filesystem
121,008 downloads per month
Used in 21 crates
(4 directly)
21KB
469 lines
Contains (ELF exe/lib, 10KB) tests/test.elf
lddtree-rs
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.
Installation
Add it to your Cargo.toml:
[dependencies]
lddtree = "0.3"
Command line utility
There is also a simple cli utility which can be installed via
cargo install lddtree
Usage: lddtree <pathname> [root]
pathnameis the path to a linux shared library.rootis an optional path to a sysroot directory.
License
This work is released under the MIT license. A copy of the license is provided in the LICENSE file.
Dependencies
~1.5MB
~25K SLoC