Koja 0.14.1

Released July 12, 2026 · All releases · GitHub release

Added

  • Releases now include a prebuilt Linux arm64 tarball.
  • The unit value () can now be printed and interpolated into strings, rendering as ().

Fixed

  • Functions can now return Result<(), E> and use () in any generic position, including enum payloads, collections, and closures.
  • Assigning to a variable after it was first assigned inside a while, loop, if, or match arm no longer crashes the compiler.
  • Builder functions that assign to a field of self and then return self no longer crash or produce corrupted values.
  • Reassigning a struct field that holds a list, map, set, struct, or enum no longer leaks memory.
  • Panics on Linux arm64 now print their message and backtrace instead of crashing the program with a segmentation fault.
  • koja format now keeps a comment above a function, protocol method, or type alias inside a type body attached to it instead of moving it into the body.
  • koja format no longer moves a comment before an impl, extend, or protocol block’s end outside the block.
  • koja format no longer deletes comments placed after struct or enum literal fields.