Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/appsinacup/godot-syntax-rust

Edit and Build Rust Code directly inside Godot Editor.
https://github.com/appsinacup/godot-syntax-rust

godot godot-engine godot4 rust rust-lang

Last synced: 3 months ago
JSON representation

Edit and Build Rust Code directly inside Godot Editor.

Awesome Lists containing this project

README

        

# Rust Syntax for Godot

Note: This is still WIP




Godot Rust Syntax

-----


Rust Syntax Support inside Godot Editor.

-----

Godot Rust Syntax offers support to edit `.rs` files inside the Godot Editor. Also offers support to view warnings and errors in Rust code directly inside the Godot Editor.

# Installation

- Automatic (Recommended): Download the plugin from the official [Godot Asset Store](https://godotengine.org/asset-library/asset/2267) using the `AssetLib` tab in Godot:
- TODO

- Manual: Download the [latest github release](https://github.com/appsinacup/gdgodot_syntax_rust/releases/latest) and move only the `addons` folder into your project `addons` folder.

# Platforms

- Windows (x86_64, x86_32)
- macOS (x86-64 + arm64 Universal)
- Linux (x86_64)

# How to build

Requirements:

- [cargo](https://doc.rust-lang.org/cargo/getting-started/installation.html)

1. Update dependencies to latest:

```bash
cargo update
```

2. Build the project
```bash
cargo build --release
```

3. Copy the output to bin folder of the addon:

Eg. macOS
```bash
cp target/release/libgodot_rust_syntax.dylib demo/addons/godot_syntax_rust/bin/libgodot_rust_syntax.macos.framework/libgodot_rust_syntax.macos.dylib
```

For the correct path to use inside the bin folder, look inside the `demo/addons/godot_syntax_rust.gdextension`.