Crafter.Debug/interfaces/Crafter.Debug.Core-BuildInfo.cppm

17 lines
779 B
Text
Raw Permalink Normal View History

// SPDX-License-Identifier: LGPL-3.0-only
// SPDX-FileCopyrightText: Copyright (C) 2026 Catcrafts®
// What the build knew: a hash of Crafter.Debug's own sources, and where the
// client built alongside this library is. project.cpp generates the
// definitions into build/generated/, so the app and the client, which share
// this core, report the same values exactly when they came from the same
// sources: the safety net under "the client is built with the app".
export module Crafter.Debug.Core:BuildInfo;
import std;
export namespace Crafter::Debug::Detail {
// 16 hex digits over every interface and implementation source.
std::string_view SourceId();
// The absolute path of the crafter-debug client this build compiled.
std::string_view ClientPath();
}