MCPcopy Create free account
hub / github.com/Open-Quant/openquant / as_ts

Function as_ts

scripts/generate_api_inventory.py:56–63  ·  view source on GitHub ↗
(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

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected