Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/appsinacup/godot-syntax-rust
- Owner: appsinacup
- License: mit
- Created: 2024-05-23T09:19:14.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-08-17T11:37:10.000Z (6 months ago)
- Last Synced: 2024-08-18T11:49:15.919Z (6 months ago)
- Topics: godot, godot-engine, godot4, rust, rust-lang
- Language: Rust
- Homepage:
- Size: 1.22 MB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Rust Syntax for Godot
Note: This is still WIP
-----
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`.