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

#1243 in Encoding

Download history 248/week @ 2024-02-26 176/week @ 2024-03-04 148/week @ 2024-03-11 190/week @ 2024-03-18 134/week @ 2024-03-25 251/week @ 2024-04-01 172/week @ 2024-04-08 135/week @ 2024-04-15 156/week @ 2024-04-22 112/week @ 2024-04-29 107/week @ 2024-05-06 139/week @ 2024-05-13 125/week @ 2024-05-20 160/week @ 2024-05-27 130/week @ 2024-06-03 123/week @ 2024-06-10

562 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.7–1.3MB
~29K SLoC