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

Function load_metadata

ci/wasm_build_library.py:464–477  ·  view source on GitHub ↗

Load library build metadata from previous build.

()

Source from the content-addressed store, hash-verified

462
463
464def load_metadata() -> dict[str, Any]:
465 """Load library build metadata from previous build."""
466 if not LIBRARY_METADATA.exists():
467 return {}
468
469 try:
470 with open(LIBRARY_METADATA) as f:
471 return json.load(f)
472 except KeyboardInterrupt as ki:
473 handle_keyboard_interrupt(ki)
474 raise
475 except Exception as e:
476 print(f"Warning: Could not load library metadata: {e}")
477 return {}
478
479
480def save_metadata(metadata: dict[str, Any]) -> None:

Callers 1

build_libraryFunction · 0.70

Calls 3

printFunction · 0.50
loadMethod · 0.45

Tested by

no test coverage detected