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
- Host: GitHub
- URL: https://github.com/byzanteam/jet-programmable-rust-binding
- Owner: Byzanteam
- Created: 2022-05-01T10:44:52.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-12-29T08:37:42.000Z (over 3 years ago)
- Last Synced: 2025-02-03T22:43:04.820Z (over 1 year ago)
- Topics: jet
- Language: Rust
- Homepage:
- Size: 79.1 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
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
}
```