• Home
Name Date Size #Lines LOC

..--

.github/workflows/06-Sep-2024-346330

cmake-modules/06-Sep-2024-2521

configuration/06-Sep-2024-600458

examples/06-Sep-2024-2,254977

extras/06-Sep-2024-8,2736,483

include/fruit/06-Sep-2024-15,5529,302

src/06-Sep-2024-1,070710

test_package/06-Sep-2024-5639

tests/06-Sep-2024-15,91313,021

.clang-formatD06-Sep-2024151 76

.gitattributesD06-Sep-202431 21

.gitignoreD06-Sep-2024331 2221

Android.bpD06-Sep-20242 KiB6760

BUILDD06-Sep-2024619 2824

CMakeLists.txtD06-Sep-20248.1 KiB169134

CONTRIBUTING.mdD06-Sep-202410.1 KiB226164

COPYINGD06-Sep-202411.1 KiB203169

LICENSED06-Sep-202411.1 KiB203169

METADATAD06-Sep-20241 KiB2119

MODULE_LICENSE_APACHE2D06-Sep-20240

OWNERSD06-Sep-202445 11

README.mdD06-Sep-20241.5 KiB139

conanfile.pyD06-Sep-20242.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