Skip to content

Glossary: Software Design Patterns in Rust

Composition root

The one place, usually `main`, where the real parts are built and handed to the code that needs them. Everything else just receives its dependencies.

Where the book teaches it

Related terms

Dependency injectionDI container