24 releases

0.3.7 Nov 30, 2024
0.3.5 Jul 1, 2024
0.3.4 Jan 7, 2024
0.3.3 Jun 12, 2023
0.2.4 Dec 23, 2021

#62 in Filesystem

Download history 17042/week @ 2024-08-17 15194/week @ 2024-08-24 16673/week @ 2024-08-31 18107/week @ 2024-09-07 14210/week @ 2024-09-14 16730/week @ 2024-09-21 13889/week @ 2024-09-28 17691/week @ 2024-10-05 18396/week @ 2024-10-12 14703/week @ 2024-10-19 14724/week @ 2024-10-26 14036/week @ 2024-11-02 16674/week @ 2024-11-09 16552/week @ 2024-11-16 19338/week @ 2024-11-23 22462/week @ 2024-11-30

77,596 downloads per month
Used in 17 crates (3 directly)

MIT license

21KB
469 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.3"

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