# Using Ray With Rust

[Rust](https://www.rust-lang.org/) is a systems programming language focused on safety, speed, and concurrency. Use Ray to help you debug your Rust applications. This is a third-party package with community support only.

[bnomei/ray-dbg](https://github.com/bnomei/ray-dbg)

Crates.io: [ray-dbg](https://crates.io/crates/ray-dbg)

## Installing the package

Add the dependency to your `Cargo.toml`:

```
[dependencies]
ray-dbg = "0.1"
```

Or install it via cargo:

```
cargo add ray-dbg
```

## Usage

The package implements most of the PHP Ray features and adds a convenient `ray_dbg!` macro for debugging. It also supports integration with the `tracing` crate.

```
use ray_dbg::ray_dbg;

fn main() {
    ray_dbg!("Hello from Rust!");
}
```

## Debug without breaking your flow

Ray keeps all your debug output neatly organized in a dedicated desktop app.

Download Ray

[Buy Ray for\
49 USD](https://spatie.be/products/ray)

Licenses are valid for 1 year and managed through [Spatie](https://spatie.be/products/ray). Licenses purchased before Ray 3 remain valid. VAT is calculated at checkout.

## Thanks for trying out Ray!

macOS

[ARM](https://spatie.be/products/ray/v3/download/macos-arm64/latest) [Intel](https://spatie.be/products/ray/v3/download/macos-x64/latest)

Windows

[x86 (Intel)](https://spatie.be/products/ray/v3/download/windows/latest)

Linux

[AppImage](https://spatie.be/products/ray/v3/download/linux/latest)

By downloading Ray, you agree to our [terms of use](/content/terms-of-use/index.html).

The free trial lets you send up to 20 messages per session.
