(path: P, state: &mut BuildState, config: &BuildSettings)
| 184 | } |
| 185 | |
| 186 | fn 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 | |
| 203 | pub fn generate_typescript_defs_inner( |
| 204 | input: Vec<PathBuf>, |
no test coverage detected