compile-typst-site 2.1.0

Command-line program for static site generation using Typst.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use std::process::exit;

use compile_typst_site::internals::config::Config;
use compile_typst_site::internals::entrypoint;
use compile_typst_site::internals::logging;

fn main() {
    Config::new()
        .inspect(|config| logging::init(config))
        .inspect_err(|_| logging::init_default())
        .and_then(|config| entrypoint::run(&config))
        .unwrap_or_else(|e| {
            log::error!("{:?}", e);
            exit(1);
        });
}