package worker // UseNativeLibs controls whether to use C++ implementations. // Set FETCHML_NATIVE_LIBS=1 to enable native libraries. // This is defined here so it's available regardless of build tags. var UseNativeLibs = false // dirOverallSHA256Hex selects implementation based on toggle. // This file has no CGo imports so it compiles even when CGO is disabled. // The actual implementations are in native_bridge.go (native) and data_integrity.go (Go). func dirOverallSHA256Hex(root string) (string, error) { if !UseNativeLibs { return dirOverallSHA256HexGo(root) } return dirOverallSHA256HexNative(root) }