21 releases

0.3.4 Jan 7, 2024
0.3.3 Jun 12, 2023
0.3.2 Oct 24, 2022
0.2.9 Apr 1, 2022
0.2.4 Dec 23, 2021

#79 in Filesystem

Download history 4800/week @ 2024-01-01 4831/week @ 2024-01-08 5644/week @ 2024-01-15 5075/week @ 2024-01-22 5771/week @ 2024-01-29 6083/week @ 2024-02-05 4423/week @ 2024-02-12 7098/week @ 2024-02-19 13857/week @ 2024-02-26 22730/week @ 2024-03-04 36860/week @ 2024-03-11 31926/week @ 2024-03-18 6740/week @ 2024-03-25 7088/week @ 2024-04-01 5869/week @ 2024-04-08 5222/week @ 2024-04-15

25,903 downloads per month
Used in 2 crates

MIT license

21KB
468 lines

Contains (ELF exe/lib, 10KB) tests/test.elf

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
~19K SLoC