diff options
| author | Laurenz <laurmaedje@gmail.com> | 2020-01-24 16:23:57 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2020-01-24 16:23:57 +0100 |
| commit | 0a087cd28bbee5fcdffbb9d49b0ba9f413ad7f92 (patch) | |
| tree | fe00c96969ed2ee69e6d3b42de8ff2558f792edd /src/lib.rs | |
| parent | 03fddaf3aea778057aedd74dbcb27bae971ec22f (diff) | |
Reorganize modules 🧱
Diffstat (limited to 'src/lib.rs')
| -rw-r--r-- | src/lib.rs | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -25,22 +25,24 @@ use smallvec::smallvec; use toddle::query::{FontLoader, FontProvider, SharedFontLoader}; -use crate::func::Scope; -use crate::layout::{Layouted, MultiLayout}; -use crate::syntax::{parse, ParseContext, Parsed, SyntaxModel, Position}; +use crate::layout::MultiLayout; +use crate::layout::prelude::*; +use crate::layout::{LayoutContext, Layouted, layout}; use crate::style::{LayoutStyle, PageStyle, TextStyle}; +use crate::syntax::{SyntaxModel, Scope, ParseContext, Parsed, parse}; +use crate::syntax::span::Position; #[macro_use] mod macros; -pub mod export; pub mod error; +pub mod export; #[macro_use] 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. @@ -93,7 +95,6 @@ impl<'p> Typesetter<'p> { /// Layout a syntax tree and return the produced layout. pub async fn layout(&self, model: &SyntaxModel) -> Layouted<MultiLayout> { - use crate::layout::prelude::*; let margins = self.style.page.margins(); layout( &model, |
