Skip to content

v0.2.0

Choose a tag to compare

@github-actions github-actions released this 12 Jul 22:09
· 520 commits to main since this release
3009f30

What's New in v0.2.0 - much release, very ship

Much release, very ship, wow.

This release makes Doge installable, packageable, and testable — plus real I/O and a language server.

Highlights

  • cargo install dogelang — Doge is now on crates.io. The CLI crate is dogelang; it installs the doge binary. (#36)
  • Projects & dependencies — a doge.toml manifest turns a directory into a project with dependencies by local path or git, resolved through one shared
    loader (stdlib > dependency > sibling). Scaffold with doge new. (#6)

Features

  • I/O & environment access (#17) — the input half of the language:
    • gib() / gib("prompt") — read a line of stdin (none at EOF)
    • fetch stdlib — read / write / append / exists / delete files
    • env stdlib — args() and get(name) for CLI args and env vars
    • new catchable IOError for every file/stdin failure
    • doge bark script.doge [args…] forwards trailing args to the program
  • doge test (#39) — discover and run tests: top-level zero-arg test* functions asserting with amaze. doge test <file> runs one file, doge test <dir> runs every test_*.doge recursively. Runs on the interpreter (no rustc build); exits non-zero on any failure or an empty suite.
  • Language server (#25) — doge lsp serves diagnostics and completion over LSP, wired into the VS Code extension via a doge.serverPath setting.
    Diagnostics reuse the exact doge check front end; completion reads from the single-source keyword/builtin/module tables.
  • String-path imports (#21) — so "sub/dir/mod.doge" imports a module by a /-separated path relative to the importing file. The loader dedups and
    detects cycles by canonical path, so one file reached two ways loads once.

Fixes & hardening

  • doge test is now project-aware — test files can so <alias> a declared dependency through the same resolver bark/build/check use.
  • doge new <name> validates the name to a single safe path segment (letters, digits, -, _), preventing ../evil or /etc/x from escaping the working
    directory.
  • Install gap closed — the generated crate depends on doge-runtime by path in a dev checkout, else by published version, so an installed doge builds
    scripts without the source tree.

Packaging

  • All crates carry crates.io metadata; internal deps centralized in [workspace.dependencies].
  • Gated publish-crates release job publishes in dependency order: runtime → compiler → interp → lsp → dogelang.

Install: cargo install dogelang

Full Changelog: v0.1.5...v0.2.0