xref: /aosp_15_r20/external/google-fruit/README.md (revision a65addddcf69f38db5b288d787b6b7571a57bb8f)
1*a65addddSAndroid Build Coastguard Worker
2*a65addddSAndroid Build Coastguard Worker[![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*a65addddSAndroid Build Coastguard Worker[![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*a65addddSAndroid Build Coastguard Worker[![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*a65addddSAndroid Build Coastguard Worker[![Coverity Scan Status](https://img.shields.io/coverity/scan/8486.svg?label=Coverity%20scan)](https://scan.coverity.com/projects/google-fruit)
6*a65addddSAndroid Build Coastguard Worker[![CII Best Practices](https://bestpractices.coreinfrastructure.org/projects/1040/badge)](https://bestpractices.coreinfrastructure.org/projects/1040)
7*a65addddSAndroid Build Coastguard Worker
8*a65addddSAndroid Build Coastguard WorkerFruit 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.
9*a65addddSAndroid Build Coastguard WorkerIt allows to split the implementation code in "components" (aka modules) that can be assembled to form other components.
10*a65addddSAndroid Build Coastguard WorkerFrom 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*a65addddSAndroid Build Coastguard Worker
12*a65addddSAndroid Build Coastguard WorkerSee the [wiki](https://github.com/google/fruit/wiki) for more information, including installation instructions, tutorials and reference documentation.
13