Rust: Difference between revisions

From KDE Community Wiki
(Update KDE projects related to Rust)
(Restructure, add more links)
Line 32: Line 32:
Repo: https://cgit.kde.org/kdev-cargo.git/about/
Repo: https://cgit.kde.org/kdev-cargo.git/about/


== External ==
= Documentation =
==== Rust Documentation Hub ====
Contains multiple knowledge bases, of which the most useful for beginners are probably [https://doc.rust-lang.org/book/ The Book] and [https://doc.rust-lang.org/stable/rust-by-example/ Rust By Example].


=== Projects ===
Link: https://doc.rust-lang.org/


* [https://github.com/rust-qt/cpp_to_rust cpp_to_rust] - using C++/Qt from Rust
==== Tutorials ====
* [https://blog.devolutions.net/2018/06/insider-series-using-rust-code-in-a-cc-project-with-cmake Using Rust Code in a C/C++ Project with CMake]
* [https://michael-f-bryan.github.io/rust-ffi-guide/ Using unsafe for Fun and Profit] - tutorial for CMake-based Qt GUI using Rust library for the business logic


=== Documentation ===
= Useful components for KDE development =
* [https://doc.rust-lang.org/ doc.rust-lang.org] - Rust Documentation Hub site
==== C/C++ <-> Rust bridging ====
 
* [https://github.com/rust-qt/ritual ritual] - crate generator to use C++/Qt libraries from Rust
=== Tutorials ===
* [https://github.com/rust-lang/rust-bindgen bindgen] - Rust binding generator for C libraries
* [https://michael-f-bryan.github.io/rust-ffi-guide/ Using unsafe for Fun and Profit] - tutorial for CMake-based Qt GUI using Rust library for the business logic
* [https://github.com/eqrion/cbindgen cbindgen] — C binding generator for Rust crates

Revision as of 17:24, 1 April 2020

Rust in KDE

KDE projects that use Rust

Ikona — an icon preview utility for KDE Plasma

Repo: https://invent.kde.org/kde/ikona

ActivityDesk — a Qt/KDE-centric ActivityPub (Mastodon) client

Repo: https://invent.kde.org/jalcine/activitydesk

KDE tools for Rust

Rust Qt Binding Generator

To use Rust code from Qt and QML code

Repo: https://cgit.kde.org/rust-qt-binding-generator.git/about/

Kate LSP Plugin

Rust Language Server can be used in Kate via the LSP plugin.

Repo: https://invent.kde.org/kde/kate/-/tree/master/addons%2Flspclient

KDevelop Rust Language Support Plugin

To work on Rust code & projects in KDevelop.

Repo: https://cgit.kde.org/kdev-rust.git/about/

KDevelop Cargo Support Plugin

To manage, build and run Rust packages (crates) with Cargo.

Repo: https://cgit.kde.org/kdev-cargo.git/about/

Documentation

Rust Documentation Hub

Contains multiple knowledge bases, of which the most useful for beginners are probably The Book and Rust By Example.

Link: https://doc.rust-lang.org/

Tutorials

Useful components for KDE development

C/C++ <-> Rust bridging

  • ritual - crate generator to use C++/Qt libraries from Rust
  • bindgen - Rust binding generator for C libraries
  • cbindgen — C binding generator for Rust crates