fruit
« Back to VersTracker
Description:
Dependency injection framework for C++
Type: Formula  |  Tracked Since: Dec 28, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: c++ dependency-injection library development testing
Install: brew install fruit
About:
Fruit is a dependency injection framework for C++ that facilitates writing modular and testable code. It provides compile-time dependency resolution and injection, resulting in minimal runtime overhead. The framework uses modern C++ features to simplify component assembly and lifecycle management.
Key Features:
  • Compile-time dependency resolution
  • Minimal runtime overhead
  • Support for multi-binding and scoped bindings
  • Clear error messages for wiring issues
Use Cases:
  • Building modular C++ applications with clear dependency management
  • Unit testing by easily injecting mock dependencies
  • Managing complex object graphs in large-scale software
Alternatives:
  • Boost.DI – Header-only, compile-time DI library with similar performance goals
  • Google Guice – Java-based DI framework, runtime-oriented
Version History
Detected Version Rev Change Commit
Sep 11, 2025 1:03pm 0 VERSION_BUMP f1bacc52
Dec 22, 2024 6:49pm 0 VERSION_BUMP a95843d6