(f, dir2name)
| 166 | |
| 167 | def is_non_rust_dep_path(f): |
| 168 | return any(f == p or f.startswith(p + "/") for p in NON_RUST_DEPS_PREFIX) |
| 169 | |
| 170 | |
| 171 | def is_cross_cutting(f): |
| 172 | if is_non_rust_dep_path(f): |
| 173 | return False |
| 174 | return ( |
| 175 | f in CROSS_EXACT |
| 176 | or any(f.startswith(p) for p in CROSS_PREFIX) |
| 177 | or Path(f).name.startswith("rust-toolchain") |