Skip to content
You're reading the docs for DRE 0.4 (v0.4.4). This page for 0.5 · New in 0.5

Building from source

Use a source build to develop DRE or test a change before a release. Requires a recent stable Rust toolchain, and Go for the Databricks, BigQuery and Snowflake packages.

Terminal window
cargo build --release
./target/release/dre --help

The first-party plugin packages are built from the same workspace (target/release/dre-plugin-*), except the Go packages (databricks, bigquery, snowflake) in go/:

Terminal window
for p in databricks bigquery snowflake; do
(cd "go/$p" && go build -o "../../target/release/dre-plugin-$p" .)
done

Put them in a project’s dre_deps/plugins/ (or point DRE_PLUGINS_DIR at them) to use them without a registry.

For a full local trial, build only the needed packages and use the tutorial project:

Terminal window
cargo build --release -p dre-cli -p dre-plugin-duckdb -p dre-plugin-csv -p dre-plugin-xlsx
export DRE_PLUGINS_DIR="$PWD/target/release"
cd examples/tutorial
../../target/release/dre validate --no-auto-install
../../target/release/dre run --no-auto-install --preview 5

If CARGO_TARGET_DIR is set, substitute that directory for target in every command. Avoid copying a build for another architecture; a plugin must run on the same machine as dre. plugin-not-installed means the binary name or plugins directory does not match discovery; plugin-install-failed describes a download problem, not a Rust compilation failure. The protocol specifies discovery layouts, the CLI reference lists flags, and the glossary defines packages.