//! Release manifest for the `code_graph` stub crate.
//!
//! Constants are templated by `.github/workflows/release.yml` between
//! `make-manifest` and `publish-cargo`. Local development builds keep
//! the empty placeholder values, which cause `build.rs` to produce a
//! non-runnable stub binary (see `build.rs` placeholder detection and
//! `main.rs` placeholder check).

/// Base URL for the GitHub Release that hosts the per-platform
/// binary archives.
pub const RELEASE_URL_BASE: &str = "https://github.com/Renso-AI/code-graph-dist/releases/download";

/// File-name stem of the prebuilt archive. The full URL is
/// `<RELEASE_URL_BASE>/v<version>/<ARCHIVE_PREFIX>-<target>.<ext>`.
pub const ARCHIVE_PREFIX: &str = "code_graph";

/// The binary inside the archive (`code_graph` or `code_graph-mcp`).
/// This is what gets extracted and embedded into the trampoline.
pub const BINARY_NAME: &str = "code_graph";

/// SHA256 hex of each per-target archive, keyed by Rust target triple.
/// Templated at release time. An empty slice triggers placeholder mode
/// (workspace dev builds, `cargo build --workspace` without network).
pub const SHA256_BY_TARGET: &[(&str, &str)] = &[
    ("aarch64-apple-darwin", "346865df46025f93139fe622eb968e27b7d0f561320ddece67cffc5a54d65b90"),
    ("aarch64-unknown-linux-gnu", "8e30b3652fe461f76625465549457628f32fed97b64eaf1223d0a93b14767796"),
    ("x86_64-apple-darwin", "b0174d47e998165d48b75dd7e7339dc53703839984a212e29e693e9ae28e58fa"),
    ("x86_64-pc-windows-msvc", "770082d54dad1b996d8254d4a66477db9b851516041eb7b0b5d96a3d04d39bdd"),
    ("x86_64-unknown-linux-gnu", "cefc78fc6574eaf5680c276d240c2cc020d37fed50486055a8540dee8a65b895"),
];

/// Optional minisign public key (base64) that signs each release
/// archive. Empty string disables signature verification. Templated
/// alongside `SHA256_BY_TARGET` at release time.
pub const MINISIGN_PUBKEY: &str = "";
