# link-cli Rust Package
[](https://github.com/link-foundation/link-cli/actions/workflows/rust.yml)
[](https://crates.io/crates/link-cli)
[](https://docs.rs/link-cli)
[](https://github.com/link-foundation/link-cli/releases)
This directory contains the Rust `link-cli` crate, which publishes both a
reusable `[lib]` (`link_cli`) and the `clink` `[[bin]]` from the same
package. It mirrors the core query processor, named references, LiNo
import/export, and structure formatting used by the production C# tool.
The WebAssembly wrapper crate lives in `rust/wasm/` and depends on this
package.
## Install
```bash
# Build and install the CLI binary.
cargo install link-cli
```
```bash
# Or pull in the public API to build your own tooling.
cargo add link-cli
```
API documentation for every published version is hosted on
[docs.rs/link-cli](https://docs.rs/link-cli). A copy is also published to
GitHub Pages alongside the C# DocFX site by `.github/workflows/docs.yml`.
## Use
```bash
clink '() ((1 1))' --changes --after
```
## Develop
```bash
cargo fmt --manifest-path rust/Cargo.toml --all -- --check
cargo clippy --manifest-path rust/Cargo.toml --all-targets --all-features
cargo test --manifest-path rust/Cargo.toml --all-features
```
Release automation for this package lives in `rust/scripts/` and uses changelog
fragments from `rust/changelog.d/`.