Features
- Docker support for easy deployment.
- Proxy support by default (can be disabled via features).
Usage
Docker Deployment
- Clone the repository:
git clone https://github.com/hominsu/deeplx-rs.git - Start the container:
cd deploy docker-compose up -d
Install with Cargo
cargo install
Integration
Installation
Add deeplx to your Cargo.toml:
[]
= { = "2", = false }
Configuration
deeplx is configured via the Config struct. You can specify options such as proxy, timeout, and more. For example:
use ;
let translator = new;
Or you can simply omit the proxy field:
use ;
let translator = new;
Usage
Below is an example using tokio for async execution:
use ;
async
Reference
License
Distributed under the MIT License. See LICENSE for more information.