#houdini #hdk #plugin

app cargo-hdk

Cargo subcommand for building Houdini plugins

9 releases

0.2.6 Sep 16, 2022
0.2.5 Mar 8, 2021
0.2.3 May 12, 2020
0.2.1 Mar 8, 2020
0.1.1 Mar 6, 2020

#286 in Cargo plugins

Download history 18/week @ 2023-10-30 2/week @ 2023-11-13 10/week @ 2023-11-20 49/week @ 2023-11-27 9/week @ 2023-12-11 19/week @ 2023-12-25 10/week @ 2024-01-01 8/week @ 2024-01-22 37/week @ 2024-01-29 1/week @ 2024-02-05 33/week @ 2024-02-12

79 downloads per month


233 lines


A subcommand of cargo for building Houdini plugins based on the Houdini Development Kit (HDK).

The purpose of this command line tool is to simplify building Rust plugins for Houdini using the HDK.

On crates.io


Build a CMake based HDK plugin in a subdirectory (default is $CARGO_MANIFEST_DIR/hdk where $CARGO_MANIFEST_DIR is the crate root directory containing the Cargo.toml file) containing the CMakeLists.txt and the source code. The actual build artifacts are stored in a designated build subdirectory (for debug builds the complete build path is $CARGO_MANIFEST_DIR/hdk/build_debug).


To build the HDK plugin located in $CARGO_MANIFEST_DIR/hdk, simply run

cargo hdk

For release builds use

cargo hdk --release

To use a different CMake generator like Ninja, use the --cmake option

cargo hdk --cmake '[-G Ninja]'

All arguments are expected to be within [ and ] brackets to avoid ambiguity with arguments passed directly to the cargo build command.

Note that specifying the CMake generator is required on the first build only. Subsequent builds will use the cached generator, unless cargo hdk --clean is run, which clears all build artifacts.


If you are having trouble with the build process, this crate implements clap-verbosity-flag, which means logging can be output with the following flags

cargo hdk -q    # silences output
cargo hdk -v    # show warnings
cargo hdk -vv   # show info
cargo hdk -vvv  # show debug
cargo hdk -vvvv # show trace


~279K SLoC