MCPcopy Create free account
hub / github.com/Rust-GPU/rust-gpu / read_deps_file

Function read_deps_file

crates/spirv-builder/src/depfile.rs:14–21  ·  view source on GitHub ↗

Read a Makfile-style dependency file. `f` is called for every target. The first argument is the target, the second is the list of dependencies.

(
    file_name: &Path,
    f: impl FnMut(RawString, Vec<RawString>) -> Result<(), Error>,
)

Source from the content-addressed store, hash-verified

12/// `f` is called for every target. The first argument is the target, the
13/// second is the list of dependencies.
14pub fn read_deps_file(
15 file_name: &Path,
16 f: impl FnMut(RawString, Vec<RawString>) -> Result<(), Error>,
17) -> Result<(), Error> {
18 let file = File::open(file_name)
19 .map_err(|e| Error::new(e.kind(), format!("Unable to read {file_name:?}: {e}")))?;
20 read_deps_file_from(file, f)
21}
22
23/// Read a Makfile-style dependency file.
24///

Callers 1

leaf_depsFunction · 0.85

Calls 1

read_deps_file_fromFunction · 0.85

Tested by

no test coverage detected