The following projects are recommended for implementing Rust applications using the YugabyteDB YSQL API.

Supported projects

Project Documentation and Guides Example Apps
Diesel Documentation Hello World

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.

Prerequisites

To develop Rust applications for YugabyteDB, you need the following:

  • Rust
    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-rust which consists of a Cargo.toml file (project metadata) and a src directory containing the main code file, main.rs.

  • YugabyteDB cluster

Next steps

  • Learn how to use Diesel with YugabyteDB.