solana-msg-utils

Crates.iosolana-msg-utils
lib.rssolana-msg-utils
version0.1.1
sourcesrc
created_at2022-03-17 06:26:12.666397
updated_at2022-03-17 06:31:41.416628
descriptionmacros for efficient on-chain logging and better error handling / debugging
homepage
repository
max_upload_size
id551646
size16,960
bonedaddy (bonedaddy)

documentation

https://docs.rs/solana-msg-utils

README

solana-msg-utils

utilities for emitting efficient messages on-chain.

Usage

Add the following to your Cargo.toml file:

[dependencies]
solana-msg-utils = "0.1.0"

then you can use the crate like so:

// emit a trace level msg
use solana_program::msg;
use solana_msg_utils::{msg_trace, msg_panic, sum};
msg_trace!("{}", "this is a trace level log");
msg_panic!("{}", "this is a traced & off-chain parsable panic message for better error handling than annoying decimal numbers and hexadecimal digits, because debugging that is really, really f**king tilting (if you cant tell)");

Documentation

Commit count: 0

cargo fmt