lddtree

Crates.iolddtree
lib.rslddtree
version0.3.4
sourcesrc
created_at2021-12-05 12:31:41.124326
updated_at2024-01-07 15:18:24.50813
descriptionRead the ELF dependency tree
homepage
repositoryhttps://github.com/messense/lddtree-rs
max_upload_size
id492661
size37,542
Maintainers (github:pyo3:maintainers)

documentation

README

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.

Commit count: 64

cargo fmt