| Crates.io | dependency_lister |
| lib.rs | dependency_lister |
| version | 1.0.1 |
| created_at | 2024-12-06 17:25:42.862105+00 |
| updated_at | 2024-12-13 16:18:13.161107+00 |
| description | Tools to list dependencies from .d files generated by clang or GCC. |
| homepage | https://github.com/Arkaeriit/dependency_lister |
| repository | https://github.com/Arkaeriit/dependency_lister |
| max_upload_size | |
| id | 1474478 |
| size | 13,047 |
A tool to read the dependency listed in .d files generated by clang or gcc. It's available as a Rust library or as CLI tool you can use in shell scripts.
The dependency-lister executable takes as argument a directory with .d files and output all the found dependencies. If there is an error, a non 0 exit code will be returned and an error message will be printed.
The rust library exposes a single function get_all_dependencies_from_dir which takes a directory's path as argument. It returns a hash set of all dependencies path in case of success or a custom error in case of failure.
The custom error can be handled or printed as-is to the user.