YAML GDExtension for Godot 4.x
Does not support object serialization. Objects will be parsed as a string "<ClassName#InstanceID>"
- Crates used:
Currently only pre-built windows builds are available, other platforms see Compiling
Head to releases and place the godot_rust_yaml
folder into your addons folder
Returns a dictionary of parsed YAML or a string if an error had occured
var parsed_yaml = YAML.parse("foo: bar") # {"foo":"bar"}
if typeof(parsed_yaml) != TYPE_DICTIONARY:
push_error(parsed_yaml)
return
# do stuff with dictionary
Returns a string of YAML or an error if it had occured
print(YAML.to_string({"foo":"bar"})) # foo: bar
Requires rust
- Fork this repository
- Navigate to
/addons/godot_rust_yaml/rust/
- To find a version of Godot 4, the library expects either an executable of name
godot4
in the PATH, or an environment variableGODOT4_BIN
containing the path to the executable (including filename) - Run
cargo build
and/orcargo build --release
for debug/release builds respectively - The project should now be runnable in the godot editor for debugging, your binary files will be in
res://addons/godot_rust_yaml/rust/target/