{"id":34249971,"url":"https://github.com/linuxdicaspro/rldd-rex","last_synced_at":"2025-12-16T09:07:49.014Z","repository":{"id":322169832,"uuid":"1088427869","full_name":"LinuxDicasPro/rldd-rex","owner":"LinuxDicasPro","description":"rldd-rex - Minimalist Recursive ELF Dependency Resolver Linux, BSDs, and Solaris","archived":false,"fork":false,"pushed_at":"2025-11-03T01:05:03.000Z","size":904,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-11-03T01:17:35.158Z","etag":null,"topics":["ldd","rex","rldd","rust"],"latest_commit_sha":null,"homepage":"https://crates.io/crates/rldd-rex","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LinuxDicasPro.png","metadata":{"files":{"readme":"README.md","changelog":"changelog","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-11-02T23:52:47.000Z","updated_at":"2025-11-03T01:16:16.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/LinuxDicasPro/rldd-rex","commit_stats":null,"previous_names":["linuxdicaspro/rldd-rex"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/LinuxDicasPro/rldd-rex","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinuxDicasPro%2Frldd-rex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinuxDicasPro%2Frldd-rex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinuxDicasPro%2Frldd-rex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinuxDicasPro%2Frldd-rex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LinuxDicasPro","download_url":"https://codeload.github.com/LinuxDicasPro/rldd-rex/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinuxDicasPro%2Frldd-rex/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27761659,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-12-16T02:00:10.477Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ldd","rex","rldd","rust"],"created_at":"2025-12-16T09:07:46.703Z","updated_at":"2025-12-16T09:07:49.001Z","avatar_url":"https://github.com/LinuxDicasPro.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"logo.png\" width=\"220\"\u003e\n\u003c/p\u003e\n\n\u003ch2 align=\"center\"\u003erldd-rex - Minimalist Recursive ELF Dependency Resolver Linux, BSDs, and Solaris\u003c/h3\u003e \n\n`rldd-rex` is a **minimal Rust library** designed to recursively inspect ELF binaries\nand their shared library dependencies. It was specifically created for integration with\nthe [Rex - Static Rust Executable](https://github.com/LinuxDicasPro/Rex), prioritizing\n**portability, robustness, and security** over feature complexity.\nThis library is intentionally minimal; most features are focused on safe,\nreliable ELF parsing and dependency resolution.\n\n## Features\n\n- Detect ELF architecture: `Elf32` / `Elf64`.\n- Detect ELF type: `Static`, `Dynamic`, `PIE`, `Invalid`.\n- Recursively resolve shared library dependencies.\n- Optional support for `LD_LIBRARY_PATH` via the `enable_ld_library_path` feature.\n- Resolve dependencies based on the binary's current directory to improve dependency resolution.\n- Works on Linux, BSDs, and Solaris.\n- Lightweight and minimal dependencies.\n- Provides detailed verbose information about each dependency.\n\n\u003e ⚠️ Note: This project emphasizes minimalism and robust integration with the Rex project.\nIt avoids extra features, focusing only on compatibility, portability, dependency\nresolution, binary architecture and type detection, error handling, and security.\n\n## Installation\n\nAdd `rldd-rex` to your `Cargo.toml`:\n\n```toml\n[dependencies]\nrldd-rex = \"1.0\"\n```\n\nTo enable `LD_LIBRARY_PATH` support:\n\n```toml\nrldd-rex = { version = \"1.0\", features = [\"enable_ld_library_path\"] }\n```\n\n## Usage Example\n\n```rust\nuse rldd_rex::*;\n\nfn main() -\u003e std::io::Result\u003c()\u003e {\n    let path = \"/usr/bin/ocenaudio\";\n\n    let deps_info = rldd_rex(path)?;\n\n    println!(\"ELF Type: {:?}\", deps_info.elf_type);\n    println!(\"Architecture: {:?}\", deps_info.arch);\n\n    println!(\"Dependencies:\");\n    for (i, (lib, path_or_status)) in deps_info.deps.iter().enumerate() {\n        let num = i + 1;\n        if path_or_status == \"not found\" {\n            println!(\"{num}. {} =\u003e \\x1b[1;31mnot found\\x1b[0m\", lib);\n        } else {\n            println!(\"{num}. {} =\u003e {}\", lib, path_or_status);\n        }\n    }\n\n    Ok(())\n}\n```\n\n## Integration Notes\n\n`rldd-rex` is ideal for projects that require:\n\n- Recursive ELF dependency inspection.\n- Minimal, portable ELF parsing functionality.\n- Deterministic, safe behavior for integration with other tools.\n\nIt is **not intended** as a full-featured replacement for `ldd` or other ELF tools.\nIt is focused on robustness, minimalism, and security.\n\n## Crate Features\n\n- `enable_ld_library_path`: Reads and respects the `LD_LIBRARY_PATH` environment variable,\nadding extra search directories for ELF libraries.\n\n## Supported Platforms\n\n- Linux\n- BSDs\n- Solaris\n\n\u003e Only ELF binaries are supported.\n\n## License\n\nThis project is licensed under the **MIT License**. See the\n[LICENSE](https://choosealicense.com/licenses/mit/) file for details.\n\n## Contributing\n\n`rldd-rex` is a **minimalistic library by design**. Its main purpose is to provide a\n**robust, portable, and secure ELF dependency resolver**, specifically built to integrate\nseamlessly with the [Rex - Static Rust Executable](https://github.com/LinuxDicasPro/Rex). \nBecause of this tight integration and focus on minimalism,\n**adding new features outside the core functionality is strongly discouraged**.\n\nThe library intentionally avoids extra features to maintain:\n\n* **Portability** across Linux, BSDs, and Solaris\n* **Security** and safe handling of ELF binaries\n* **Robustness** against malformed binaries or recursive dependency loops\n* **Compatibility** with errors and behaviors encountered in the Rex project\n\nContributions are **welcome** if they **follow these principles**, such as:\n\n* Fixing bugs or improving error handling\n* Enhancing compatibility across supported platforms\n* Improving code clarity or maintainability without adding new feature sets\n\nPull requests that introduce new features unrelated to dependency resolution or ELF parsing\nwill likely be **declined**, to preserve the library’s minimalistic and reliable design.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinuxdicaspro%2Frldd-rex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flinuxdicaspro%2Frldd-rex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinuxdicaspro%2Frldd-rex/lists"}