1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
//! texforge — Self-contained LaTeX to PDF compiler CLI.
//!
//! A command-line tool that compiles LaTeX documents to PDF without requiring
//! TeX Live, `MiKTeX`, or any external LaTeX distribution.
mod cli;
mod commands;
mod compiler;
mod config;
mod diagrams;
mod domain;
mod formatter;
mod linter;
mod manifest;
mod pdftext;
mod placeholders;
mod raster;
mod templates;
mod texparse;
mod texutil;
mod utils;
mod version;
mod version_checker;
mod wordcount;
use anyhow::Result;
use clap::Parser;
use cli::Cli;
fn main() -> Result<()> {
// reqwest is built with `rustls-no-provider`, so install the ring crypto
// provider as the process default before any HTTPS request is made.
let _ = rustls::crypto::ring::default_provider().install_default();
let cli = Cli::parse();
cli.execute()
}