Skip to content

v0.3.2

Choose a tag to compare

@github-actions github-actions released this 15 Jul 19:35
· 484 commits to main since this release

What's New in v0.3.2

Much bytes, very network, wow.

This release rounds out Doge's networking and binary-data story: raw byte sockets,
a general HTTP client, a crypto module, and base64/hex round-tripping for Bytes.

Networking

  • Binary-safe sockets (#60) — howl.recv_bytes / howl.send_bytes move raw
    Bytes over a socket with no UTF-8 assumptions, so a pure-Doge server can frame
    binary bodies by Content-Length and handle file uploads.
  • howl.request (#62) — the general HTTP(S) client: any method
    (GET/POST/PUT/PATCH/DELETE/HEAD/OPTIONS), custom request headers, and a body
    (Str or raw Bytes). Every response now carries a lowercased headers Dict.

New stdlib modules

  • crypto — hashing & secrets (#61): sha256, hmac_sha256, token (OS-CSPRNG
    random bytes), and same (constant-time compare). Everything speaks Bytes
    (render with .hex()); wrong types are a catchable TypeError, never a crash.

Language & types

  • Bytes base64/hex round-trip (#63) — Bytes.b64() encodes to base64;
    Str.from_b64 and Str.from_hex decode back to Bytes, with a catchable
    ValueError on malformed input.

Fixes

  • doge test constant init (#65) — top-level so constants declared in the test
    file itself now initialize before tests run, instead of staying none.
  • Relative script paths in a project (#64) — doge check/bark/test lib/x.doge
    now resolves the project root correctly instead of failing with "could not open
    the project directory"; discover_root canonicalizes the path before the walk.

Install

cargo install dogelang

Full Changelog: v0.3.1...v0.3.2