diff options
| author | Weicao-CatilGrass <1992414357@qq.com> | 2026-05-22 08:00:34 +0800 |
|---|---|---|
| committer | Weicao-CatilGrass <1992414357@qq.com> | 2026-05-22 08:00:34 +0800 |
| commit | 6f46fbfd287e1be36e9364d6da40c26c549af5fc (patch) | |
| tree | 3aab324ef20b92edac1b2693c28cacca44256731 | |
| parent | 16f1722894a5be67831a0382f48937118ddd176b (diff) | |
Skip dev_tools directory when collecting Cargo.toml paths
| -rw-r--r-- | dev_tools/src/lib.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/dev_tools/src/lib.rs b/dev_tools/src/lib.rs index 1b5dd0f..1e62a2d 100644 --- a/dev_tools/src/lib.rs +++ b/dev_tools/src/lib.rs @@ -92,6 +92,10 @@ pub fn cargo_tomls() -> Vec<std::path::PathBuf> { for entry in entries.flatten() { let path = entry.path(); if path.is_dir() { + // Skip the dev_tools directory + if path.file_name().and_then(|n| n.to_str()) == Some("dev_tools") { + continue; + } dirs.push(path); } else if path.file_name().and_then(|n| n.to_str()) == Some("Cargo.toml") { cargo_tomls.push(path); |
