summaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2019-12-12 22:19:38 +0100
committerLaurenz <laurmaedje@gmail.com>2019-12-12 22:19:38 +0100
commitff107cf3e75acf041f8b7631337d299cdeaa1685 (patch)
tree40799f0337a5c2bc13166ff32a1f0b4f5c23bfe8 /src/lib.rs
parent3c0496bb6104f0e2a60520e42137ecc29f26e9fa (diff)
Tidying up 🧹
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs19
1 files changed, 10 insertions, 9 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 5b5e3b0c..8e5d1441 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -8,11 +8,13 @@
//! - **Layouting:** The next step is to transform the syntax tree into a
//! portable representation of the typesetted document. Types for these can be
//! found in the [layout] module. A finished layout reading for exporting is a
-//! [multi layout](crate::layout::MultiLayout) consisting of multiple boxes (or
-//! pages).
-//! - **Exporting:** The finished document can finally be exported into a supported
-//! format. Submodules for these formats are located in the [export](crate::export)
-//! module. Currently, the only supported output format is _PDF_.
+//! [multi-layout](crate::layout::MultiLayout) consisting of multiple boxes
+//! (or pages).
+//! - **Exporting:** The finished layout can then be exported into a supported
+//! format. Submodules for these formats are located in the
+//! [export](crate::export) module. Currently, the only supported output
+//! format is _PDF_. Alternatively, the layout can be serialized to pass it to
+//! a suitable renderer.
#![allow(unused)]
@@ -25,9 +27,8 @@ use toddle::query::{FontLoader, FontProvider, SharedFontLoader};
use toddle::Error as FontError;
use crate::func::Scope;
-use crate::layout::{layout_tree, MultiLayout, LayoutContext};
-use crate::layout::{LayoutAxes, LayoutAlignment};
-use crate::layout::{LayoutResult, LayoutSpace, LayoutExpansion};
+use crate::layout::{layout_tree, MultiLayout, LayoutContext, LayoutResult};
+use crate::layout::{LayoutSpace, LayoutExpansion, LayoutAxes, LayoutAlignment};
use crate::syntax::{parse, SyntaxTree, ParseContext, Span, ParseResult};
use crate::style::{LayoutStyle, PageStyle, TextStyle};
@@ -38,9 +39,9 @@ pub mod export;
pub mod func;
pub mod layout;
pub mod library;
+pub mod syntax;
pub mod size;
pub mod style;
-pub mod syntax;
/// Transforms source code into typesetted layouts.
///