papermake 0.3.0

Fast PDF generation library using Typst with a virtual file system for templates, images, and fonts
Documentation
//! Papermake is a PDF generation library that uses Typst templates
//! with associated schemas to render PDFs from structured data.

pub mod error;
pub mod render;
pub mod typst;
// Re-export core types
pub use error::{
    PapermakeError, Result, SourceLocation, TemplateError, compilation_error_from_diagnostics,
    convert_typst_diagnostic, template_missing_file,
};
pub use render::{
    PdfStandard, RenderError, RenderOptions, RenderResult, render_template,
    render_template_with_cache, render_template_with_options,
};
pub use typst::{InMemoryFileSystem, PapermakeWorld, RenderFileSystem};

// Re-export typst types needed by papermake-registry
pub use ::typst::diag::FileError;

/// Get the library version
pub fn version() -> &'static str {
    env!("CARGO_PKG_VERSION")
}