MCPcopy Create free account
hub / github.com/Wulf/tsync / process_dir_entry

Function process_dir_entry

src/lib.rs:186–201  ·  view source on GitHub ↗
(path: P, state: &mut BuildState, config: &BuildSettings)

Source from the content-addressed store, hash-verified

184}
185
186fn process_dir_entry<P: AsRef<Path>>(path: P, state: &mut BuildState, config: &BuildSettings) {
187 WalkDir::new(path.as_ref())
188 .sort_by_file_name()
189 .into_iter()
190 .filter_map(|res| validate_dir_entry(res, path.as_ref()))
191 .for_each(|entry| {
192 // make sure it is a rust file
193 if entry
194 .path()
195 .extension()
196 .is_some_and(|extension| check_extension(extension, path.as_ref()))
197 {
198 process_rust_file(entry.path(), state, config);
199 }
200 })
201}
202
203pub fn generate_typescript_defs_inner(
204 input: Vec<PathBuf>,

Callers 1

Calls 3

validate_dir_entryFunction · 0.85
check_extensionFunction · 0.85
process_rust_fileFunction · 0.85

Tested by

no test coverage detected