• Home
Name Date Size #Lines LOC

..--

.github/workflows/04-Jul-2025-346330

cmake-modules/04-Jul-2025-2521

configuration/04-Jul-2025-600458

examples/04-Jul-2025-2,254977

extras/04-Jul-2025-8,2786,488

include/fruit/04-Jul-2025-15,5529,302

src/04-Jul-2025-1,070710

test_package/04-Jul-2025-5639

tests/04-Jul-2025-15,91313,021

.clang-formatD04-Jul-2025151 76

.gitattributesD04-Jul-202531 21

.gitignoreD04-Jul-2025331 2221

Android.bpD04-Jul-20252 KiB7063

BUILDD04-Jul-2025619 2824

CMakeLists.txtD04-Jul-20258.1 KiB169134

CONTRIBUTING.mdD04-Jul-202510.1 KiB226164

COPYINGD04-Jul-202511.1 KiB203169

LICENSED04-Jul-202511.1 KiB203169

METADATAD04-Jul-20251 KiB2119

MODULE_LICENSE_APACHE2D04-Jul-20250

OWNERSD04-Jul-202545 11

README.mdD04-Jul-20251.5 KiB139

conanfile.pyD04-Jul-20252.9 KiB7461

README.md

1
2[![Test on Linux](https://github.com/google/fruit/actions/workflows/test-on-linux.yml/badge.svg?branch=master)](https://github.com/google/fruit/actions/workflows/test-on-linux.yml)
3[![Test on Windows](https://github.com/google/fruit/actions/workflows/test-on-windows.yml/badge.svg?branch=master)](https://github.com/google/fruit/actions/workflows/test-on-windows.yml)
4[![Test on OS X](https://github.com/google/fruit/actions/workflows/test-on-osx.yml/badge.svg?branch=master)](https://github.com/google/fruit/actions/workflows/test-on-osx.yml)
5[![Coverity Scan Status](https://img.shields.io/coverity/scan/8486.svg?label=Coverity%20scan)](https://scan.coverity.com/projects/google-fruit)
6[![CII Best Practices](https://bestpractices.coreinfrastructure.org/projects/1040/badge)](https://bestpractices.coreinfrastructure.org/projects/1040)
7
8Fruit is a [dependency injection](http://en.wikipedia.org/wiki/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.
9It allows to split the implementation code in "components" (aka modules) that can be assembled to form other components.
10From a component with no requirements it's then possible to create an injector, that provides an instance of the interfaces exposed by the component.
11
12See the [wiki](https://github.com/google/fruit/wiki) for more information, including installation instructions, tutorials and reference documentation.
13