agentmux_srv_core/lib.rs
1// Copyright 2026, AgentMux Corp.
2// SPDX-License-Identifier: Apache-2.0
3
4//! The server's core: everything that does not name the server layer (`server`, `sagas`, `drone`,
5//! `messaging`, `bootstrap`, `config`, `headless`, `open_cli`, which are the `agentmux-srv` package in
6//! `crates/srv`). It is its own package, so the server layer's tests and the core's tests are
7//! type-checked apart; the server reaches these modules through the `use agentmux_srv_core::...` lines
8//! at the top of its `main.rs`.
9
10// A build that ships never has the test-only feature. Tests run in the dev profile, which keeps
11// debug assertions on; a release-profile build with the feature on does not compile.
12#[cfg(all(feature = "test-support", not(test), not(debug_assertions)))]
13compile_error!("the `test-support` feature is for test builds only; a release build must not enable it");
14
15pub mod adoption;
16pub mod agents;
17pub mod ambient;
18pub mod backend;
19pub mod boot_timing;
20pub mod broker;
21pub mod connectivity;
22pub mod event_log;
23pub mod http_client;
24pub mod identity;
25pub mod migrations;
26pub mod muxbus;
27pub mod persist;
28pub mod persist_subscriber;
29pub mod reducer;
30pub mod registry;
31pub mod srv_info;
32pub mod state;
33pub mod util;
34#[cfg(any(test, feature = "test-support"))]
35pub mod test_support;
36
37#[cfg(any(test, feature = "test-support"))]
38mod tls_test_init;