Skip to content

virtual-puppet-project/rusty-spout

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rusty Spout

Spout bindings to Rust. Initially created for usage with Godot and gdext.

Uses a fork of Spout2 with all the precompiled dlls, libs, and exes removed.

A Godot GDExtension-compatible library can be built with the godot feature enabled.

Building

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.

Script build steps

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.

Manual build steps

  1. cargo build or cargo build --release
  2. Find the build $OUT_DIR/bin directory
  3. Copy the compiled SpoutLibrary.dll to be next to your binary

Examples

Before building and running any example, make sure the library itself has been built using the instructions in Building.

Send/Receive

  1. Run cargo build --example send && cargo build --example receive
  2. Copy the examples from target/debug/examples to target/debug, since they need to be next to the SpoutLibrary.dll to work. Alternatively, copy the SpoutLibrary.dll into target/debug/examples so that cargo run --example [send|receive] just works

License

MPL-2.0

Releases

No releases published