Skip to main content

nido_sdk/
lib.rs

1// SPDX-License-Identifier: MIT OR Apache-2.0
2
3//! # nido-sdk — placeholder crate
4//!
5//! Brand-reservation placeholder for the Nido third-party SDK. The
6//! real `nido-sdk` ships at `>=0.1.0` with first-class support for
7//! integrating external agents into Nido fleets via MCP, ACP, and A2A.
8//!
9//! See <https://securanido.com/nido> for the platform overview.
10
11#![forbid(unsafe_code)]
12#![warn(missing_docs)]
13#![doc(html_root_url = "https://docs.rs/nido-sdk/0.0.0-alpha.0")]
14
15/// Metadata returned by [`brand_reservation`].
16#[derive(Debug, Clone, Copy, PartialEq, Eq)]
17pub struct BrandReservation {
18    /// The reserved crate name.
19    pub name: &'static str,
20    /// The placeholder version.
21    pub version: &'static str,
22    /// Status.
23    pub status: &'static str,
24}
25
26/// Returns metadata about this brand-reservation placeholder.
27#[inline]
28pub const fn brand_reservation() -> BrandReservation {
29    BrandReservation {
30        name: "nido-sdk",
31        version: env!("CARGO_PKG_VERSION"),
32        status: "brand-reservation-placeholder",
33    }
34}
35
36#[cfg(test)]
37mod tests {
38    use super::*;
39
40    #[test]
41    fn brand_reservation_metadata_is_stable() {
42        assert_eq!(brand_reservation().name, "nido-sdk");
43    }
44}