// SPDX-License-Identifier: MIT OR Apache-2.0
//! # nido-image-scan — brand-reservation placeholder
//!
//! This crate is a brand-reservation placeholder for the
//! nido-image-scan component of the Nido / Securanido platform.
//!
//! The real nido-image-scan implementation ships at version >= 0.1.0.
//! See <https://securanido.com> for the project homepage and roadmap.

#![forbid(unsafe_code)]
#![doc(html_root_url = "https://docs.rs/nido-image-scan/0.0.0-alpha.0")]

/// Brand-reservation metadata. The single public API of this placeholder.
pub struct BrandReservation {
    pub name: &'static str,
    pub version: &'static str,
    pub status: &'static str,
    pub homepage: &'static str,
}

/// Returns the reservation record for this crate name.
pub const fn brand_reservation() -> BrandReservation {
    BrandReservation {
        name: "nido-image-scan",
        version: "0.0.0-alpha.0",
        status: "placeholder; real release at >=0.1.0",
        homepage: "https://securanido.com",
    }
}

#[cfg(test)]
mod tests {
    use super::*;

    #[test]
    fn placeholder_metadata_is_stable() {
        let r = brand_reservation();
        assert_eq!(r.name, "nido-image-scan");
        assert_eq!(r.version, "0.0.0-alpha.0");
    }
}
