Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/messense/lddtree-rs
Read the ELF dependency tree
https://github.com/messense/lddtree-rs
auditwheel elf ldd
Last synced: 4 days ago
JSON representation
Read the ELF dependency tree
- Host: GitHub
- URL: https://github.com/messense/lddtree-rs
- Owner: messense
- License: other
- Created: 2021-12-05T04:49:26.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-11-30T02:53:27.000Z (about 1 month ago)
- Last Synced: 2024-12-23T09:23:32.341Z (11 days ago)
- Topics: auditwheel, elf, ldd
- Language: Rust
- Homepage:
- Size: 92.8 KB
- Stars: 32
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# lddtree-rs
[![CI](https://github.com/messense/lddtree-rs/workflows/CI/badge.svg)](https://github.com/messense/lddtree-rs/actions?query=workflow%3ACI)
[![Crates.io](https://img.shields.io/crates/v/lddtree.svg)](https://crates.io/crates/lddtree)
[![docs.rs](https://docs.rs/lddtree/badge.svg)](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 [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.