solana-msg-utils 0.1.1

macros for efficient on-chain logging and better error handling / debugging
Documentation
  • Coverage
  • 75%
    3 out of 4 items documented0 out of 0 items with examples
  • Size
  • Source code size: 54.63 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 675.11 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 39s Average build duration of successful builds.
  • all releases: 39s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • bonedaddy

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