owasm-debug 0.1.1

Logging utility ontop of owasm-ethereum
Documentation
  • Coverage
  • 0%
    0 out of 2 items documented0 out of 1 items with examples
  • Size
  • Source code size: 10.09 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.19 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • david-yan

owasm-debug

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.