gerstrong / Rusty-Creator

QtCreator plugin that adds support for the Rust language

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rusty

This plugins extends QtCreator to support the Rust language. The code is basically based on the python plugin that is normally shipped by any QtCreator installation.

How to Build

In order to build this plugin you need to get the qtcreator sources. You can easily do this by:

git submodule init
git submodule update

It is also recommended to build that qtcreator if you happen to have problems with your currently installed one.

Create a build directory and run

cmake -DCMAKE_PREFIX_PATH=<path_to_qtcreator> -DCMAKE_BUILD_TYPE=RelWithDebInfo <path_to_plugin_source>
cmake --build .

where <path_to_qtcreator> is the relative or absolute path to a Qt Creator build directory, or to a combined binary and development package (Windows / Linux), or to the Qt Creator.app/Contents/Resources/ directory of a combined binary and development package (macOS), and <path_to_plugin_source> is the relative or absolute path to this plugin directory.

How to Run

Run a compatible Qt Creator with the additional command line argument

-pluginpath <path_to_plugin>

where <path_to_plugin> is the path to the resulting plugin library in the build directory (<plugin_build>/lib/qtcreator/plugins on Windows and Linux, <plugin_build>/Qt Creator.app/Contents/PlugIns on macOS).

You might want to add -temporarycleansettings (or -tcs) to ensure that the opened Qt Creator instance cannot mess with your user-global Qt Creator settings.

When building and running the plugin from Qt Creator, you can use

-pluginpath "%{buildDir}/lib/qtcreator/plugins" -tcs

on Windows and Linux, or

-pluginpath "%{buildDir}/Qt Creator.app/Contents/PlugIns" -tcs

for the Command line arguments field in the run settings.

About

QtCreator plugin that adds support for the Rust language

License:GNU General Public License v3.0


Languages

Language:C++ 97.9%Language:CMake 1.4%Language:Rust 0.4%Language:C 0.1%Language:Smarty 0.1%