6 releases

0.2.2 Feb 5, 2024
0.2.1 May 18, 2023
0.2.0 Oct 3, 2022
0.1.2 Feb 28, 2022
0.1.0 Jun 15, 2021

#966 in Encoding

Download history 218/week @ 2024-07-21 183/week @ 2024-07-28 146/week @ 2024-08-04 137/week @ 2024-08-11 162/week @ 2024-08-18 128/week @ 2024-08-25 132/week @ 2024-09-01 180/week @ 2024-09-08 223/week @ 2024-09-15 277/week @ 2024-09-22 311/week @ 2024-09-29 174/week @ 2024-10-06 133/week @ 2024-10-13 110/week @ 2024-10-20 133/week @ 2024-10-27 125/week @ 2024-11-03

506 downloads per month
Used in tectonic

MIT license

35KB
560 lines

The tectonic_docmodel crate

This crate is part of the Tectonic project. It implements the Tectonic document model, including the Tectonic.toml file.

Cargo features

This crate does not currently provides any Cargo features.


lib.rs:

The Tectonic document model and its serialization into Tectonic.toml.

This crate provides data structures and serialization support for the Tectonic document model and its expression in the Tectonic.toml file. It only provides data access: you can use this crate without needing to link with the full Tectonic engines and all of the dependencies they drag in. The main tectonic crate provides extension traits that attach actual document-processing capabilities to these data structures.

Your primary entrypoint to this crate will likely be workspace::Workspace::open_from_environment, which will attempt to load up a workspace by searching the process’ current directory and parents for a Tectonic.toml file. There is also workspace::WorkspaceCreator for creating new workspaces from scratch.

Dependencies

~0.6–1.2MB
~28K SLoC