Typster.Native (Typster v0.7.1)

View Source

Native Implemented Functions (NIFs) for Typster.

This module provides the low-level Rust NIF interface for Typst compilation and rendering. Most users should use the high-level Typster module instead, which provides a more ergonomic API with better error handling.

Available NIFs

  • test_nif/0 - Basic connectivity test
  • compile_to_pdf/1 - Simple PDF compilation
  • compile_to_pdf_with_variables/2 - PDF with variable binding
  • compile_to_pdf_with_options/3 - PDF with packages
  • compile_to_pdf_with_full_options/4 - PDF with metadata
  • compile_to_svg_with_options/3 - Multi-page SVG
  • compile_to_png_with_options/4 - Multi-page PNG
  • check_syntax/3 - Syntax validation without rendering

Note

These functions return raw results from the Rust layer and should not be called directly unless you need low-level control. Use the Typster module for the recommended API.

Summary

Functions

check_syntax(source, opts)

compile_to_pdf(source, opts)

compile_to_png(source, opts)

compile_to_svg(source, opts)

test_nif()