Skip to content

amishdev/rust-ray

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 

Repository files navigation

A crate for using Spatie Ray to dump debug a rust project.

Get started

cargo add rs-ray

To use within a tokio runtime add the "with_tokio" feature flag.

cargo add rs-ray --features with_tokio

Usage

To dump to ray simply use the ray! macro and pass it anything that implements the Debug trait

use rs_ray::*;

ray!(foo);

// just comma seperate for multiple values
ray!(foo, bar);

// add color
ray!(foo).color("green");

// log
ray!().log(vec!["log".to_string()]);

// text
ray!().text("text".to_string());

// confetti
ray!().confetti();

// clear ray screen
ray!().clear_all();

About

crate for spatie ray

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages