| Crates.io | solana-bpf-logs-tracing |
| lib.rs | solana-bpf-logs-tracing |
| version | 0.1.0 |
| created_at | 2025-08-05 01:51:13.828407+00 |
| updated_at | 2025-08-05 01:51:13.828407+00 |
| description | An procedural macro to trace logs in Solana programs. |
| homepage | https://github.com/tuphan-dn/solana-bpf-logs-tracing |
| repository | https://github.com/tuphan-dn/solana-bpf-logs-tracing |
| max_upload_size | |
| id | 1781388 |
| size | 5,567 |
A procedural macro to trace logs in Solana programs.
Add the crate to your project:
cargo add solana-bpf-logs-tracing
Enable the tracing feature when building your program:
anchor build -- --features tracing
Apply the [trace] macro to any function you want to debug:
#[trace]
pub fn your_function() {
// ...
}
NOTE: For release builds, omit the --features tracing flag to disable all [trace] macros in your program.
Pull requests are welcome! For major changes, please open an issue first to discuss your ideas.
MIT