chesedo
Home Blog

Posts tagged with "Software Design"

Mastering Dependency Injection in Rust: Despatma with Lifetimes

Published on September 25, 2024

Learn how to use despatma to manage singleton, scoped, and transient dependencies in Rust. Explore practical examples and best practices for effective dependency lifetime management in your Rust applications.

Read full article

Mastering Dependency Injection in Rust: Despatma basics

Published on August 16, 2024

Explore how to simplify dependency injection in Rust using a custom macro. Learn about concrete types, trait-based dependencies, dynamic traits, chaining, and async dependencies with the despatma crate.

Read full article

Mastering Dependency Injection in Rust: Crafting a Custom Container

Published on August 08, 2024

Learn how to implement a custom Dependency Injection (DI) container in Rust. This comprehensive guide covers various dependency types, lifetimes, and advanced patterns, providing a solid foundation for building modular and testable Rust applications.

Read full article

About the Author

Pieter Engelbrecht

Pieter Engelbrecht

Rust Consultant & Software Craftsman

A Rust Programming Language Consultant with over 3 years of exclusive Rust experience. I specialize in architecting Rust projects and helping teams adopt Rust effectively.

Topics

Advanced Rust async Async Runtime Dependency Injection DesPatMa io_uring Performance Rust Software Architecture Software Design tracing

© 2025 Pieter Engelbrecht. All rights reserved.