Skip to content

v0.7.0

Choose a tag to compare

@neogenie neogenie released this 21 Aug 19:32
· 15 commits to master since this release

Added

  • Big-integer conversion APIs #44:
    • Parsing from raw bytes:

      • from_radix_be(buf, radix) -> Option<Self>
      • from_radix_le(buf, radix) -> Option<Self>
    • Encoding to raw bytes:

      • to_radix_be(radix) -> Vec<u8>
      • to_radix_le(radix) -> Vec<u8>
    • String conversion helpers:

      • parse_str_radix(s, radix) -> Self (panicking variant)
      • parse_bytes(buf, radix) -> Option<Self>
      • to_str_radix(radix) -> String

Documentation

  • Conversion documentation expanded with clearer semantics, base handling, and examples.
  • Improved doc comments for:
    • Base-aware parsing behavior and panic conditions.
    • Byte-level import/export helpers.
    • parse_str(s) and from_str(s) for big integers recognize 0x and 0b prefixes (decimal remains default without a prefix).

Internal

  • Conversion code reorganized into focused modules:
    • bint/convert/{from_bytes,to_bytes,from_str,to_str}.rs
  • Macro routing for conversion implementation is simplified and deduplicated.