spark_server/lib.rs
1// SPDX-License-Identifier: AGPL-3.0-only
2
3#![deny(warnings)]
4#![deny(clippy::all)]
5#![allow(dead_code)]
6#![allow(clippy::too_many_arguments)]
7#![allow(clippy::needless_range_loop)]
8#![allow(clippy::large_enum_variant)]
9#![allow(clippy::doc_lazy_continuation)]
10#![allow(clippy::doc_overindented_list_items)]
11
12//! Atlas Spark — shared modules for integration tests.
13
14pub mod tokenizer;
15
16// Reasoning-parser format registry (DeepSeek-R1 `<think>`/`</think>` contract
17// used by DS4F opt-in reasoning mode). Exposed here so the tokenizer unit tests
18// that assert `[reasoning]` registration compile under `--lib`, mirroring the
19// binary crate root. Its only crate dependency is `tokenizer`, already public above.
20pub mod reasoning_parser;
21
22// The three pure modules added in PR 4 (OpenAI compat remaining items) are
23// public here so `cargo test -p spark-server --lib` can exercise their
24// unit tests without needing to build the full binary.
25// Strict `ATLAS_*` parsing. Declared here as well as in the binary root
26// because `rate_limiter` — which is below — calls into it, and a `--lib`
27// build has to resolve that path too.
28#[path = "auth.rs"]
29pub mod auth;
30#[path = "env_config.rs"]
31pub mod env_config;
32#[path = "rate_limiter.rs"]
33pub mod rate_limiter;
34#[path = "refusal.rs"]
35pub mod refusal;