MCPcopy Create free account
hub / github.com/FastLED/FastLED / load_metadata

Function load_metadata

ci/wasm_compile_pch.py:97–110  ·  view source on GitHub ↗

Load PCH metadata from previous build.

()

Source from the content-addressed store, hash-verified

95
96
97def load_metadata() -> dict[str, str]:
98 """Load PCH metadata from previous build."""
99 if not PCH_METADATA.exists():
100 return {}
101
102 try:
103 with open(PCH_METADATA) as f:
104 return json.load(f)
105 except KeyboardInterrupt as ki:
106 handle_keyboard_interrupt(ki)
107 raise
108 except Exception as e:
109 print(f"Warning: Could not load PCH metadata: {e}")
110 return {}
111
112
113def save_metadata(metadata: dict[str, str]) -> None:

Callers 1

needs_rebuildFunction · 0.70

Calls 3

printFunction · 0.50
loadMethod · 0.45

Tested by

no test coverage detected