Builds the library to generate the dynamic libraries and then copies them over to the Godot project's /gdnative/bin
directory.
Note: This command has to be run within the library directory and will fail outside of it.
Usage
godot-rust-cli build [-w, --watch] [-r, --release] [-a, --all]
where:
-
w, --watch
can be passed optionally to have godot-rust-cli watch the library for changes and rebuild + copy the files over auotmatically. -
r, --release
can be passed optionally to have godot-rust-cli create a release build instead of the default debug build. This is passed directly to thecargo build
command so you can check the documentation on that on the cargo build documentation. -
a, --all
can be passed optionally to have godot-rust-cli build for all of the platforms defined in the configuration. This is a more advanced feature so make sure to check the documentation on platforms first.
Examples:
- Building the library normally:
godot-rust-cli build
- Building the library and watching for changes to trigger automatic rebuilds:
godot-rust-cli build --watch
- Building the release build of the library:
godot-rust-cli build --release