STRA-338 size: data tables keep their compact form (rustfmt::skip: 1719/2051/1905 -> 933/259/360 lines), kernel_ab example becomes a directory example split into 13 modules (3992 -> 1635 in main.rs)

This commit is contained in:
Pavlo Ratushnyi
2026-11-06 13:05:10 +01:00
parent cdfec56460
commit ab4280a3df
21 changed files with 5106 additions and 8979 deletions
+1 -1
View File
@@ -51,7 +51,7 @@ def path_targets():
def process(path, target, dry_run, loaded, allow_root=False):
if is_root(path) and not (allow_root and path.name == "lib.rs"):
if is_root(path) and not (allow_root and path.name in ("lib.rs", "main.rs") or "examples" in path.parts and path.name == "main.rs"):
return "skipped", "crate root, bin or example"
directory = child_dir(path)
# a file loaded through `#[path]`, or an integration test crate root (tests/foo.rs): `mod x;` would look beside it