Function
as_ts
(rust_api: dict[str, list[str]], python_api: dict[str, list[str]])
Source from the content-addressed store, hash-verified
| 54 | module = rust_module_key(crate, src_root, path) |
| 55 | fns: list[str] = [] |
| 56 | for line in path.read_text(encoding="utf-8").splitlines(): |
| 57 | m = RUST_FN_RE.match(line.strip()) |
| 58 | if not m: |
| 59 | continue |
| 60 | fns.append(m.group(1)) |
| 61 | if fns: |
| 62 | if module in out: |
| 63 | raise SystemExit(f"duplicate rust module key: {module}") |
| 64 | out[module] = sorted(set(fns)) |
| 65 | return out |
| 66 | |
Tested by
no test coverage detected