spring-opendal 0.4.1

OpenDAL plugin for spring-rs
Documentation

[![crates.io](https://img.shields.io/crates/v/spring-opendal.svg)](https://crates.io/crates/spring-opendal)
[![Documentation](https://docs.rs/spring-opendal/badge.svg)](https://docs.rs/spring-opendal)

## Dependencies

```toml
spring-opendal = { version = "<version>" }
```

## Configuration items

```toml
[opendal]
scheme = "fs"                # service that OpenDAL supports
options = { root = "/tmp" }  # service options. Different options for different scheme
layers = []                  # Layer is the mechanism to intercept operations.
```

For Layer configuration, see [this document](https://docs.rs/opendal/latest/opendal/layers/index.html)

## Components

After configuring the above configuration items, the plugin will automatically register a [`Op`](https://docs.rs/spring-opendal/latest/spring_opendal/type.Op.html) client. This object is an alias of [`opendal::Operator`](https://docs.rs/opendal/latest/opendal/struct.Operator.html).

```rust
pub type Op = Operator;
```

For the complete code, please refer to [`spring-opendal-example`](https://github.com/spring-rs/spring-rs/tree/master/examples/spring-opendal-example)