Skip to content

Installation

Building from source

dql is a Rust project. From the repository root:

cargo build --release

The binary is produced at target/release/dql.

To also build the standalone formatter:

cargo build --release -p delightql-formatter --features bundled-parser

This produces target/release/dql-fmt.

Prerequisites

  • Rust stable toolchain
  • Tree-sitter grammar (built automatically by the Cargo build script)
  • SQLite development headers (provided by the bundled rusqlite dependency)

Bundle

The bundle mise task builds size-optimized binaries and packages them:

mise run bundle

This produces untracked/delightql-cli.tar.gz containing dql, dql-fmt, the shared grammar library, highlights queries, and theme files.

Verifying the installation

dql --version

Prints the version, build date, and target triple.