Skip to content

v0.3.0

Choose a tag to compare

@QuadnucYard QuadnucYard released this 17 Jul 13:52
· 21 commits to main since this release

v0.3.0 (2025-07-17)

Added

  • Doc::Align
  • Doc::DedentToRoot, DocBuilder::dedent_to_root
  • Doc::ExpandParent, DocAllocator::expand_parent
  • Doc::LineSuffix, DocAllocator::line_suffix, DocBuilder::as_line_suffix
  • Doc::is_nil
  • DocAllocator::ascii_text (skips is_ascii checks)
  • DocBuilder::into_ref
  • DocBuilder::indent and DocBuilder::dedent (shorthand for DocBuilder::nest with unsigned argument)
  • [T; N]::pretty (easier concatenation)

Changed

  • Breaking: Contextual functions (DocAllocator::on_column, DocAllocator::on_nesting) and related types are now optional under the contextual feature
  • DocBuilder::align works without contextual functions
  • Breaking: Removed DocBuilder::hang and the old DocBuilder::indent (use doc.nest(n).align() or (doc + allocator.spaces(n)).nest(n).align())
  • Arena now avoids allocating common single-character string literals (e.g. " ", ";")
  • Breaking: SmallText and Text::Small variant are now optional under the small-text feature.