EventGet 50% off your ticket to MongoDB.local NYC on May 2. Use code Web50!Learn more >>
MongoDB Developer
MongoDB Developer Centerchevron-right
Developer Topicschevron-right

Rust

plus Follow
Sign in to follow topics
A multi-paradigm, general-purpose programming language designed for performance and safety. Rust is a low-level programming language with high performance and can be used to write operating systems, game engines, and embedded applications.

Featured

Article

Using Rust Web Development Frameworks with MongoDB

Which Rust frameworks work best with MongoDB?...
MongoDB thumbnail image
MongoDBRust

Aug 30, 2022 | 1 min read
Rachelle Palmer
Article

MongoDB Field Level Encryption is now Available for Rust applications

MongoDB thumbnail image

Jan 24, 2023 | 1 min read
Quickstart

Getting Started with Aggregation Pipelines in Rust

MongoDB thumbnail image

Sep 23, 2022 | 15 min read
All Rust Content
search
  • Latest
  • Highest Rated
Tutorial

Red Mosquitto: Implement a noise sensor with an MQTT client in an ESP32

We write in Rust from scratch the firmware of a noise sensor implemented with an ESP32. We use the neopixel to inform the user about the status of the device. And we make that sensor expose the measurements through MQTT....
MongoDB thumbnail image

Mar 18, 2024
Jorge D. Ortiz-Fuentes
Quickstart

Getting Started with Deno & MongoDB

Deno is a “modern” runtime for JavaScript and TypeScript that is built in Rust. This makes it very fast! If you are familiar with Node.js, then you will be right at home with Deno. It is very similar but has some improvements over Node.js. In fact, the creator of Deno also created Node and Deno is meant to be the successor to Node.js. Deno pairs nicely with MongoDB....
MongoDB thumbnail image

Oct 19, 2023
Jesse Hall
Article

MongoDB Field Level Encryption is now Available for Rust applications

MongoDB now support field level encryption for Rust applications...
MongoDB thumbnail image

Jun 09, 2023
Rachelle Palmer
Code Example
FULL APPLICATION

Beginner Coding Project: Build a Blog Engine with Rust and MongoDB

A beginner level project using MongoDB with Rust...
MongoDB thumbnail image

Jun 09, 2023
Rachelle Palmer
Article

Using Rust Web Development Frameworks with MongoDB

Which Rust frameworks work best with MongoDB?...
MongoDB thumbnail image

Jun 09, 2023
Rachelle Palmer
Article

How Prisma Introspects a Schema from a MongoDB Database

In this blog, you’ll learn about Prisma and how we interact with MongoDB, plus the next steps after having a schema....
MongoDB thumbnail image

Jun 09, 2023
Jan Piotrowski
Article

Structuring Data with Serde in Rust

New upgrades in the Rust MongoDB Driver and BSON library that improve integration with Serde....
MongoDB thumbnail image

Jun 09, 2023
Isabel Atkinson
Quickstart

Getting Started with Aggregation Pipelines in Rust

Query, group, and join data in MongoDB using aggregation pipelines with Rust....
MongoDB thumbnail image

Jun 09, 2023
Mark Smith
Quickstart

Get Started with Rust and MongoDB

Learn how to perform CRUD operations using Rust for MongoDB databases....
MongoDB thumbnail image

Jun 09, 2023
Jorge D. Ortiz-Fuentes (+1)
Video

Everything You Wanted to Know About Rust Unit Testing (and then some more)

✅ Sign-up for a free cluster at: https://mdb.link/free-_jDKeOtOiEo ✅ Get help on our Community Forums: https://mdb.link/community-_jDKeOtOiEo Learn how to write unit tests in Rust with this hands-on video that covers these five topics with examples and real code: - The basic types of unit tests - The quality of the testing code - Testing the not-so-happy-path - Testing asynchronous code - Testing tools You can find the code used and produced in this video in the following repo: https://trymongodb.com/3W6npjj Connect with Jorge: Twitter: https://twitter.com/jdortiz Mastodon: https://fosstodon.org/@jdortiz LinkedIn: https://www.linkedin.com/in/jorgeortiz/ ⏱️ Timestamps ⏱️ 00:00:00 - Intro 00:01:25 - Basic concepts 00:04:43 - Project creation 00:08:38 - Tests module 00:10:24 - Rust snippets for tests 00:14:21 - First unit test return value 00:24:03 - Second unit test state 00:28:46 - Alternative implementation tested 00:32:44 - Third unit test interaction 00:46:50 - Recommended implementation 00:49:09 - Test code quality 00:49:34 - Use constants for literals 00:54:18 - Reduce repetition with setup and teardown 01:08:57 - Share code among test modules 01:13:05 - Why testing the not so happy path 01:13:32 - Test panics 01:18:03 - Use ignore and test results 01:28:02 - Bubble up errors in tests 01:30:34 - Asynchronous code in Rust 01:31:01 - Async tests 01:38:19 - Beyond cargo test 01:38:46 - rustdoc and doc-tests 01:48:00 - Show test output 01:49:33 - Selecting tests 01:55:55 - Test coverage 02:01:08 - Nextest 02:05:54 - Outro — Subscribe to MongoDB ➡️ https://bit.ly/3bpg1Z1 #mongodb #rust #rustunittesting...
MongoDB thumbnail image
Play Button

Jan 17, 2023