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

#1114 in Encoding

Download history 93/week @ 2024-01-01 103/week @ 2024-01-08 96/week @ 2024-01-15 104/week @ 2024-01-22 180/week @ 2024-01-29 202/week @ 2024-02-05 205/week @ 2024-02-12 201/week @ 2024-02-19 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

736 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