Documentation
/*
==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--

R/O

Copyright (C) 2019, 2026  Anonymous



This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License
along with this program.  If not, see <https://www.gnu.org/licenses/>.

::--::--::--::--::--::--::--::--::--::--::--::--::--::--::--::--
*/

//! #   R/O
//!
//! ##  Project
//!
//! -   License: GNU Lesser General Public License, either version 3, or (at your option) any later version.
//! -   _This project follows [Semantic Versioning 2.0.0]_
//!
//! ##  Features
//!
//! This crate helps make stuff read-only, via [`ReadOnly`][struct:ReadOnly].
//!
//! [Semantic Versioning 2.0.0]: https://semver.org/spec/v2.0.0.html
//! [struct:ReadOnly]: struct.ReadOnly.html

#![warn(missing_docs)]
#![no_std]
#![forbid(unsafe_code)]

// ╔═════════════════╗
// ║   IDENTIFIERS   ║
// ╚═════════════════╝

macro_rules! code_name  { () => { "r/o" }}
macro_rules! version    { () => { "2.0.0" }}

/// # Crate name
pub const NAME: &str = "R/O";

/// # Crate code name
pub const CODE_NAME: &str = code_name!();

/// # ID of this crate
pub const ID: &str = concat!(
    "232323ad-5e101351-db09d4c1-8f2551c7-a8891a49-f9e74895-a8719deb-19ec7261-",
    "bd30d07a-16027a15-35d72930-624c04eb-c686981f-b914af24-9630e343-4fce4864",
);

/// # Crate version
pub const VERSION: &str = version!();

/// # Crate release date (year/month/day)
pub const RELEASE_DATE: (u16, u8, u8) = (2026, 7, 21);

/// # Tag, which can be used for logging...
pub const TAG: &str = concat!(code_name!(), "::232323ad::", version!());

// ╔════════════════════╗
// ║   IMPLEMENTATION   ║
// ╚════════════════════╝

pub mod version_info;

mod ro;

pub use crate::ro::*;

#[test]
fn test_crate_version() {
    assert_eq!(VERSION, env!("CARGO_PKG_VERSION"));
}