3 releases
0.0.4 | Mar 14, 2023 |
---|---|
0.0.3 | Mar 9, 2023 |
0.0.1 | Mar 8, 2023 |
#2160 in Development tools
31KB
865 lines
ray-debug
A Rust adapter for Spatie's fantastic debugging tool, Ray.
This is a work in progress, so bugs and breaking changes are likely to occur! Also, not all Ray features are yet implemented!
Setup
By default, Ray is listening on http://localhost:23517. If you need to use another host or port, you can specify env variables for this:
RAY_HOST=http://localhost
RAY_PORT=23517
Usage
Only basic debugging is implemented at the moment, so you can use it like:
use ray_debug::ray;
// ...
fn do_stuff() {
// ...
ray(&some_struct);
// To set color:
ray(&some_struct).unwrap().orange();
}
Your struct needs to implement the trait serde::Serialize
for this to work. You can also call ray()
with strings, integers etc.
Dependencies
~6–22MB
~314K SLoC