Skip to main content

nitr_cli/
lib.rs

1// SPDX-License-Identifier: MIT OR Apache-2.0
2// This file is part of Nitr.
3// See https://nitrweb.com/ for more information
4// Copyright (C) 2024-present Jose Quintana <joseluisq.net>
5
6//! Library side of the `nitr` binary.
7//!
8//! Exists so the API-description module compiles once and is shared by the
9//! binary and its drift test as an ordinary dependency — previously the
10//! test `#[path]`-included the source file, compiling it twice and forcing
11//! `#[allow(dead_code)]` on whichever half each target did not use.
12
13#![cfg_attr(not(test), deny(clippy::unwrap_used, clippy::expect_used))]
14
15// Internal single source for the generated `nitr.*` API artifacts; not a
16// public API of the `nitr-cli` crate (no stability promise applies).
17#[doc(hidden)]
18pub mod apidef;