Repository navigation
v0.2.0
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 isdogelang; it installs thedogebinary. (#36)- Projects & dependencies — a
doge.tomlmanifest turns a directory into a project with dependencies by local path or git, resolved through one shared
loader (stdlib > dependency > sibling). Scaffold withdoge new. (#6)
Features
- I/O & environment access (#17) — the input half of the language:
gib()/gib("prompt")— read a line of stdin (noneat EOF)fetchstdlib —read/write/append/exists/deletefilesenvstdlib —args()andget(name)for CLI args and env vars- new catchable
IOErrorfor 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-argtest*functions asserting withamaze.doge test <file>runs one file,doge test <dir>runs everytest_*.dogerecursively. Runs on the interpreter (no rustc build); exits non-zero on any failure or an empty suite.- Language server (#25) —
doge lspserves diagnostics and completion over LSP, wired into the VS Code extension via adoge.serverPathsetting.
Diagnostics reuse the exactdoge checkfront 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 testis now project-aware — test files canso <alias>a declared dependency through the same resolverbark/build/checkuse.doge new <name>validates the name to a single safe path segment (letters, digits,-,_), preventing../evilor/etc/xfrom escaping the working
directory.- Install gap closed — the generated crate depends on
doge-runtimeby path in a dev checkout, else by published version, so an installeddogebuilds
scripts without the source tree.
Packaging
- All crates carry crates.io metadata; internal deps centralized in
[workspace.dependencies]. - Gated
publish-cratesrelease job publishes in dependency order:runtime → compiler → interp → lsp → dogelang.
Install: cargo install dogelang
Full Changelog: v0.1.5...v0.2.0