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

Function compute_unity_metadata_hash

ci/wasm_unity_generator.py:132–137  ·  view source on GitHub ↗

Compute hash of unity configuration for change detection.

(num_chunks: int, sources: list[Path])

Source from the content-addressed store, hash-verified

130
131
132def compute_unity_metadata_hash(num_chunks: int, sources: list[Path]) -> str:
133 """Compute hash of unity configuration for change detection."""
134 config_str = f"{num_chunks}:{len(sources)}:" + ":".join(
135 str(s) for s in sorted(sources)
136 )
137 return hashlib.sha256(config_str.encode()).hexdigest()
138
139
140def generate_unity_builds(

Callers 1

generate_unity_buildsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected