Add compiler and server regression tests

Expose the compiler session as a library target, run core as a workspace member, and add direct typeset tests plus end-to-end HTTP tests. Coverage: examples, arXiv fixture, starred headings, rectangles, errors, page-hash cache stability, static frontend assets, project API, preview/PDF, traversal rejection, and the legacy endpoint.
This commit is contained in:
gloamxun committed 2026-10-19 12:31:05 +08:00
1 parent ff9717397e
commit bad477fbee
9 files changed
+501 -3

No files matched your search

+7
View File
@@ -0,0 +1,7 @@
//! texrra engine library.
//!
//! Process, CLI, and HTTP concerns live in `src/main.rs`; this crate exposes
//! the typesetting session so tests and other frontends can drive the compiler
//! directly.
pub mod rust_typeset;
+2 -1
View File
@@ -9,7 +9,8 @@ use std::{
use tiny_http::{Header, Method, Request, Response, Server, StatusCode};
mod projects;
mod rust_typeset;
use texrra_engine::rust_typeset;
fn main() {
if let Err(error) = run() {