Skip to content

Puddi v0.1.2

Latest

Choose a tag to compare

@github-actions github-actions released this 21 Nov 20:58
· 10 commits to main since this release

Added

  • Nine portable standard library modules for browser, WASI and plugins. They provide deques and priority queues, lazy iterator sources, Unicode text helpers, radix formatting, binary readers, hex and Base64 codecs, percent encoding, lexical paths, CSV and descriptive statistics.
  • std.date adds Gregorian dates, UTC timestamps, Unix epoch conversions and checked arithmetic. CSV supports configurable delimiters, JSON supports pretty printing and pointer lookup, and std.fmt parses signed and unsigned integers in bases 2 through 36.

Fixed

  • JSON parsing rejects malformed surrogate escape pairs.
  • Float literals can be used on either side of a binary operator with a fixed-width integer when a lossless common type exists.
  • Trait implementations resolve Self.Item and other associated types from the current impl in method signatures and local annotations.
  • Naming conventions produce warnings. Struct literals and patterns accept lowercase type names.
  • The compiler rejects overlapping trait implementation headers and cyclic supertraits.
  • Recursive constant initializers are diagnosed instead of overflowing the compiler stack.
  • Type aliases resolve in dependency order, preserve their target types in generic bounds, and report cycles.
  • Constant initializers resolve names in their declaring module and reject references to ordinary functions.
  • Numeric operands can constrain unannotated closure parameters.
  • WIT exports can use records, variants, enums and flags aliased from an interface.
  • pud fmt preserves trailing spaces inside multiline strings. #4
  • Str.from_utf8 rejects overlong encodings, surrogate code points and values above the Unicode range.

Documentation