The following projects are recommended for implementing Rust applications using the YugabyteDB YSQL API.
|Project||Documentation and Guides||Example Apps|
Learn how to establish a connection to a YugabyteDB database and begin basic CRUD operations using the Hello World examples.
For fully-runnable code snippets and explanations of common operations, see the example apps. Before running the example apps, make sure you have installed the prerequisites.
To develop Rust applications for YugabyteDB, you need the following:
To download and install Rust, refer to the Rust documentation.
To check the version of Rust, use the following command:
$ rustc --version
Create a Rust project
To create a new Rust project, run the following command:
$ cargo new HelloWorld-rust
This creates the project as
HelloWorld-rustwhich consists of a
Cargo.tomlfile (project metadata) and a
srcdirectory containing the main code file,
- Learn how to use Diesel with YugabyteDB.