ydt 0.5.0

A simple command-line dictionary tool powered by Youdao
Documentation
# ydt

A simple [Youdao](https://www.youdao.com/) dict tool.

## Installation

Install `ydt` with Cargo:

```bash
cargo install ydt
```

Or use the following [Nix](https://nixos.org/) command to install and run directly:

```bash
nix run . -- <WORD>
```

## Usage

To use the `ydt` for looking up a word, use the following command:

```bash
ydt <WORD>
```

## Library

`ydt` can also be used as a library:

```rust
match ydt::get_translation("hello") {
    Ok(text) => println!("{text}"),
    Err(err) => eprintln!("{err}"),
}
```

## Documentation

API docs are generated with `cargo doc` and published to GitHub Pages:

- <https://yushengyangchem.github.io/ydt/>