#ldd #elf

bin+lib lddtree

Read the ELF dependency tree

19 releases

0.3.2 Oct 24, 2022
0.3.1 Sep 13, 2022
0.2.10 Sep 8, 2022
0.2.9 Apr 1, 2022
0.1.4 Dec 17, 2021

#139 in Filesystem

Download history 3026/week @ 2023-02-09 2714/week @ 2023-02-16 2676/week @ 2023-02-23 2054/week @ 2023-03-02 2134/week @ 2023-03-09 1760/week @ 2023-03-16 2129/week @ 2023-03-23 2010/week @ 2023-03-30 1864/week @ 2023-04-06 2050/week @ 2023-04-13 1950/week @ 2023-04-20 1871/week @ 2023-04-27 3539/week @ 2023-05-04 2256/week @ 2023-05-11 2222/week @ 2023-05-18 1807/week @ 2023-05-25

10,194 downloads per month
Used in maturin

MIT license

20KB
452 lines

lddtree-rs

CI Crates.io docs.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.2"

Command line utility

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.

License

This work is released under the MIT license. A copy of the license is provided in the LICENSE file.

Dependencies

~1MB
~18K SLoC