DuckDB Extension Template for Rust
June 10, 2026 ยท View on GitHub
Warning
This project is deprecated.
Since cargo-duckdb-ext-tools v0.5.0, released on February 28, 2026, cargo-duckdb-ext-tools can create, build, and package DuckDB Rust extensions directly. New projects should use the latest version of cargo-duckdb-ext-tools instead of this template.
Use cargo-duckdb-ext-tools Instead
Install or update to the latest version:
cargo install --force cargo-duckdb-ext-tools
Create and build a new DuckDB extension project:
# 1. Create a new extension project
cargo duckdb-ext new quack
# 2. Enter the project directory
cd quack
# 3. Build and package the extension
cargo duckdb-ext build -- --release
Test the extension:
duckdb -unsigned -c "load 'target/release/quack.duckdb_extension'; from quack('Joe')"
For more details, see the cargo-duckdb-ext-tools README.