Skip to content

google/fruit

Folders and files

NameName
Last commit message
Last commit date
Feb 2, 2025
Apr 17, 2020
Jan 29, 2023
May 22, 2024
Feb 2, 2025
Feb 3, 2025
Feb 2, 2025
Sep 15, 2018
Feb 2, 2025
Dec 27, 2017
Jul 12, 2020
Aug 9, 2020
Aug 10, 2020
Apr 6, 2025
Nov 15, 2022
Jun 21, 2014
Nov 15, 2022
Jan 21, 2023

Test on Linux Test on Windows Test on OS X Coverity Scan Status CII Best Practices

Fruit is a dependency injection framework for C++, loosely inspired by the Guice framework for Java. It uses C++ metaprogramming together with some C++11 features to detect most injection problems at compile-time. It allows to split the implementation code in "components" (aka modules) that can be assembled to form other components. From a component with no requirements it's then possible to create an injector, that provides an instance of the interfaces exposed by the component.

See the wiki for more information, including installation instructions, tutorials and reference documentation.