# The three builds

The TypeScript, Go, and Rust builds of dmog, what each needs, where each is published, and the library each package holds.

dmog is built in three languages. Each build installs a command named `dmog` that takes the same command line and reads and writes the same formats. Each build's package is also a library, which its command is built on, and which [The libraries](https://dmog.tabnas.dev/reference/library.html) describes.

| Build | Package | Needs | Install |
|---|---|---|---|
| TypeScript | `@tabnas/dmog` on npm | Node.js 24 or later | `npm install -g @tabnas/dmog` |
| Go | `github.com/tabnas/dmog/go` on the Go module proxy | Go 1.24 or later | `go install github.com/tabnas/dmog/go/cmd/dmog@latest` |
| Rust | `tabnas-dmog` on crates.io | Rust 1.85 or later | `cargo install --locked tabnas-dmog` |

## Versions

The three builds are released together, at one version number, with their libraries. This documentation describes version 0.4.0.

## What is the same

Each build is tested against the same test files: the formats' own documents, the language's fixtures, and the translation of every document of every format into every other. A difference between the builds that those tests find is treated as a defect, and each build's tests record the ones not yet repaired.

## Where they differ

The Go build can write the members of an object in another order than the other two, for a document read whole. The values are the same. Speed and memory follow each runtime.

The Go command needs no build tag. One built with `-tags tabnas_nodecell` behaves as one built without it.
