Skip to main content

recon_cli/
lib.rs

1#![doc = include_str!("../README.md")]
2//
3// The doc-comment block below is intentionally a `//` comment, not `//!`,
4// so it doesn't clobber the README-derived crate-level rustdoc that
5// docs.rs renders. It documents the *internal* purpose of this lib.rs
6// shim for anyone reading the source:
7//
8// Library surface for integration tests and downstream crates.
9//
10// The `recon-cli` crate is primarily a binary; this `lib.rs` exposes the
11// minimal internal paths required by `tests/script_ai_it.rs`. Nothing
12// here is part of a public API guarantee.
13//
14// We deliberately do NOT re-export the full `script` module tree because
15// that tree depends on `cli::Args` and hundreds of other internal modules.
16// Instead we mirror only the `script::bindings::ai` path the tests need,
17// using `#[path]` so Rust finds the source files in their real location
18// under `src/script/bindings/ai/`.
19
20pub mod config;
21
22// The real `ai/` module tree, pointed at the actual source files via
23// `#[path]`. Compiled independently of the binary's module tree.
24#[path = "script/bindings/ai/mod.rs"]
25pub(crate) mod ai_impl;
26
27/// Mirrors the `script::bindings::ai` import path used by integration tests.
28pub mod script {
29    pub mod bindings {
30        pub mod ai {
31            pub mod backend {
32                pub use crate::ai_impl::backend::*;
33            }
34            pub mod request {
35                pub use crate::ai_impl::request::*;
36            }
37            pub use crate::ai_impl::register_with_registry;
38        }
39    }
40}