Crates.io | owasm-debug |
lib.rs | owasm-debug |
version | 0.1.1 |
source | src |
created_at | 2019-02-26 22:52:18.418657 |
updated_at | 2019-02-26 23:24:07.911695 |
description | Logging utility ontop of owasm-ethereum |
homepage | |
repository | |
max_upload_size | |
id | 117457 |
size | 7,286 |
owasm-debug is a simple logging utility for Rust contracts running on Oasis.
To use, simply add the crate to your dependencies.
[dependencies]
owasm-debug = "0.1"
And add extern crate owasm_debug;
to your contract source.
Then, you can log by adding owasm_debug::log("YOUR MESSAGE HERE")
to your contract.
Under the hood owasm_debug
is simply creating a transaction log with a fixed topic for ease of use. It's intended to use in combination with oasis-debug.js to emulate a println!
style stream of console output.