Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proposal to add Rust code editor in Engine as Addon #76

Open
Ughuuu opened this issue Oct 19, 2024 · 0 comments
Open

Proposal to add Rust code editor in Engine as Addon #76

Ughuuu opened this issue Oct 19, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@Ughuuu
Copy link

Ughuuu commented Oct 19, 2024

The idea is to keep this as easy as possible. The workflow would be similar to this: https://libriscv.no/docs/godot/cppprogram

C++ Usage Workflow:
When creating a Script you have option to create C++ script file:

  • Create file (just normal Rust file)
image
  • Edit c++ files in the editor
image
  • Compile them

Since this would be generic, it would probably support GDExt (godot-rust). So you would how to be able to write rust code and build it, either when using regular Rust project, godot-rust project (when doing GDExtension addon), or something else.

Autocomplete

For this the code needs to be processed to offer autocomplete options. For this we can use the same libs as rust check.

Build

For this there can be a build option, similar to how C# has. Also, if not, when Saving files and/or when running project, build the code to a GDExtension or DLL (custom lib).

Compiler

As for building, we could support either setting compiler path and using that, or using local Docker and use that (send files to the Docker and get the binary output and save it).

@Starkium Starkium added the enhancement New feature or request label Oct 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants