1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
|
# lddtree-rs
[](https://github.com/messense/lddtree-rs/actions?query=workflow%3ACI)
[](https://crates.io/crates/lddtree)
[](https://docs.rs/lddtree/)
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](https://github.com/pypa/auditwheel/blob/main/src/auditwheel/lddtree.py)
from the [auditwheel](https://github.com/pypa/auditwheel) project.
It's intended to be used in [maturin](https://github.com/PyO3/maturin) for
[implementing automatic repair of manylinux and musllinux wheels](https://github.com/PyO3/maturin/pull/742).
## Installation
Add it to your ``Cargo.toml``:
```toml
[dependencies]
lddtree = "0.3"
```
## Command line utility
There is also a simple cli utility which can be installed via
```bash
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.
## License
This work is released under the MIT license. A copy of the license is provided
in the [LICENSE](./LICENSE) file.
|