Spout bindings to Rust. Initially created for usage with Godot and gdext.
Uses a fork of Spout2 with all the precompiled dll
s, lib
s, and exe
s removed.
A Godot GDExtension-compatible library can be built with the godot
feature enabled.
Build using the included build.sh
utility. Because of the dependency on building Spout2,
building the crate is more complicated than just running cargo build
.
Run: build.sh [debug|release|package|clean]
If using package
, a new directory will be created in the project root containing the
compiled library along with SpoutLibrary.dll
.
cargo build
orcargo build --release
- Find the build
$OUT_DIR/bin
directory - Copy the compiled
SpoutLibrary.dll
to be next to your binary
Before building and running any example, make sure the library itself has been built using the instructions in Building.
- Run
cargo build --example send && cargo build --example receive
- Copy the examples from
target/debug/examples
totarget/debug
, since they need to be next to theSpoutLibrary.dll
to work. Alternatively, copy theSpoutLibrary.dll
intotarget/debug/examples
so thatcargo run --example [send|receive]
just works
MPL-2.0