//! 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", "6cb6424bf2f0cde654309ed791ed28e4f9799501d61df71be1ac246fc01c6aa5"),
    ("aarch64-unknown-linux-gnu", "ba5ad39d4259352fb8c7940dc2932739f2f43a872ae842700c9bf0b397f82bfb"),
    ("x86_64-apple-darwin", "9613a21f2097e72b87c9c2792f51f60ce4c89d2e12d3962518d71d4facdb3e63"),
    ("x86_64-pc-windows-msvc", "255005933449868732db24fdcf82f725fe5e468978e247bd4a8dd02029e98729"),
    ("x86_64-unknown-linux-gnu", "af7fda9cb0a016555acdee3d56b23bda5e49a33083d2531a146fbb480d8623e2"),
];

/// 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 = "";
