Skip to main content

Rust Contract Development

Rust is a programming language designed for performance and safety. It is syntactically similar to C++, but can guarantee memory safety without resorting to garbage collection.

Rust has proven to be a mature and secure language, which makes it ideal to write smart contracts. Because of this, Rust is the preferred programming language for writing smart contracts on NEAR. While there might be a learning curve for those coming from web development, learning Rust enables to write safer and faster contracts.

Furthermore, core contracts such as Fungible Tokens and DAOs are currently only available in Rust.

info

Refer the NEAR docs for more information

Create Your First Rust Contract

Create your first Rust contract in minutes:

  1. Download and install Rust.
  2. Create a new rust project using the NEAR quickstart guide.
  3. Read the NEAR docs on how to write smart contracts.