wire-framework 0.1.0

A DI library for Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
# `wire-framework` - A lightweight DI framework for Rust

This library is based on the [node_framework](https://github.com/matter-labs/zksync-era/tree/main/core/lib/node_framework) library from [`zksync-era`](https://github.com/matter-labs/zksync-era).

## Usage

The library provides following DI abstractions:

- **Resources** are provided or requested by node components. An example of a resource is a Postgres connection pool
  factory.
- Components may also provide **tasks** managed by the framework.
- Requesting and providing resources / tasks is encapsulated in **wiring layers**.