Configuration
📋 YAML File
You can customize the behavior of Rinf CLI commands by configuring the pubspec.yaml
file. All fields are optional and it's not necessary to write them.
pubspec.yaml
rinf:
message:
input_dir: messages/
rust_output_dir: native/hub/src/messages/
dart_output_dir: lib/messages/
rust_serde: true
You can check the current configuration status by running the command below in the CLI.
📦 Crate Features
Customizing the behavior of the Rinf crate is possible through its crate features.
show-backtrace
: Prints the full backtrace in the CLI when a panic occurs in debug mode. In general, backtrace is not very helpful when debugging async apps, so consider usingtracing
for logging purposes. Note that this feature does not affect debugging on the web platform.bevy
: Implements theEvent
trait frombevy_ecs
forDartSignal
, allowing Bevy's entity component system to listen for events from Dart.