9 Rust Best Practices - Utils, Examples, Tests (Part 2/3) @JeremyChone
9 Rust Best Practices - Utils, Examples, Tests (Part 2/3)  @JeremyChone
Uploaded August 2024 | Updated September 2026, 15 hours ago
This is part 2/3 of the 9 Rust Programming best practices I am using when building a library. We will continue to use a real library, genai, as an example.

In addition, we will write a real unit test for the library.

Part 1: youtube.com/watch?v=XCrZleaIUO4&list=PL7r-PXl6ZPcCIOFaL7nVHXZvBmHNhrh_Q
Part 2 (this one): youtube.com/watch?v=LRfDAZfo00o&list=PL7r-PXl6ZPcCIOFaL7nVHXZvBmHNhrh_Q
Part 3: youtube.com/watch?v=93SS3VGsKx4&list=PL7r-PXl6ZPcCIOFaL7nVHXZvBmHNhrh_Q
In this episode, we will go through the following four chapters:

1) (c04) Utils and Trait Extensions best practices (for single crate and multi-crates project)
2) (c05) Examples best practices
3) (c06) Integration and Unit Testing best practices

- 00:00 - Intro
- 00:19 - c04: Utils & Support
- 10:03 - c04: Extension Trait Intro
- 12:22 - c04: ValueExt (Extension trait by example)
- 19:27 - c05: Examples best practices
- 25:05 - c06: Integration Tests code review
- 35:23 - c06: Unit Tests, by example

c01..c03 are in the part 1 video: youtube.com/watch?v=XCrZleaIUO4&list=PL7r-PXl6ZPcCIOFaL7nVHXZvBmHNhrh_Q

Part 3 coming soon.

== Jeremy Chone:

- Discord general-rust - discord.gg/W2besKCzjx
- Discord rust10x - discord.gg/XuKWrNGKpC
- Patreon - patreon.com/jeremychone - Any help is a big help (for Rust educational content)
- Twitter - twitter.com/jeremychone

britesnow.com - BriteSnow is my enterprise consulting company I have been running for 15 years. We help enterprises build and modernize next-gen applications. Feel free to send an email to jeremy.chone@britensow.com if you have any questions.

Big thanks to CrabNebula (https://crabnebula.dev/) for sponsoring this channel.

== Jeremy Chone Rust Video Playlists:

- Everything Rust Programming - Tutorials, Courses, Tips, Examples: youtube.com/playlist?list=PL7r-PXl6ZPcCIOFaL7nVHXZvBmHNhrh_Q
- Rust AI Programming Series: youtube.com/playlist?list=PL7r-PXl6ZPcBcLsBdBABOFUuLziNyigqj
- Rust Web App Production Coding Series: youtube.com/playlist?list=PL7r-PXl6ZPcCTTxjmsb9bFZB9i01fAtI7
- Rust For Desktop App: youtube.com/playlist?list=PL7r-PXl6ZPcAQAi1lfVrtHCSbaJbwZ4O8
- Rust Programming for Web Development: youtube.com/playlist?list=PL7r-PXl6ZPcCLvwpdD2Vj1O4CyoFTiHKd
- Rust Courses: youtube.com/playlist?list=PL7r-PXl6ZPcB4jn1_VR3D8tSK9DxOaiQE
- Rust for Java Developers: youtube.com/playlist?list=PL7r-PXl6ZPcD63DS2djSiz4SlXkaTfobc
9 Rust Best Practices - Utils, Examples, Tests (Part 2/3)Rust Coding Session - New awesome-app CLI feature2 Cool Pull Requests for Rust Web App BlueprintAxum 0.6 to 0.7 in 5 quick stepsJC Rust Live Coding โžœ GenAI Library - Adding Multi-Content Response SupportRust + Lua - Why & Full Code ExamplesGemini 2.5 Pro vs. OpenAI o3 - Twice the Price?  #Coding #AILets split a Rust crate - Rust live codingRust Ollama By Examples - 4 Chapters (Full Tutorial - Rust AI)Rust Lang Course 2021 - Overview - Types, Functions, if/else/loopLive Coding โžœ MCP Streamable Transport ยท Part 1Rust live coding โžœ The building of zcoder, E04
Jeremy Chone |

9 Rust Best Practices - Utils, Examples, Tests (Part 2/3)

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER