An open API service indexing awesome lists of open source software.

https://github.com/byzanteam/jet-programmable-rust-binding

The rust binding for jet programmable
https://github.com/byzanteam/jet-programmable-rust-binding

jet

Last synced: about 1 month ago
JSON representation

The rust binding for jet programmable

Awesome Lists containing this project

README

          

# The rust binding for jet programmable

This repository contains the codec and host functions for the programmable wasm program.

## Example
```rust
#![cfg_attr(not(test), no_main)]

use jet_programmable_rust_binding::{
outputs::Outputs, program, value_presenter::field_type::FieldType,
value_presenter::ValuePresenter,
};

fn entrypoint(inputs: Vec) -> Outputs {
Outputs::build(inputs)
}

program!(entrypoint, vec![FieldType::SingleLineField]);

#[cfg(test)]
mod tests {
// test code goes here
// ...snpi
}
```