| Crates.io | depfile |
| lib.rs | depfile |
| version | 0.1.1 |
| created_at | 2025-08-17 03:50:16.50967+00 |
| updated_at | 2025-08-17 03:58:01.548339+00 |
| description | Simply parse .d files |
| homepage | |
| repository | https://github.com/Pistonite/depfile |
| max_upload_size | |
| id | 1799106 |
| size | 33,406 |
Simply parse .d files.
use std::borrow::Cow;
fn main() {
let input = r"
x.cpp.o: x.cpp \
include/foo.h \
include/bar.h
include/foo.h:
include/bar.h: fiz.h
";
let targets = depfile::parse(input).expect("syntax error");
for dep in targets.recurse_deps("x.cpp.o") {
println!("x.cpp.o depends on: {dep}");
}
}
See documentation on docs.rs