mirror of
https://github.com/fluencelabs/examples
synced 2025-05-01 13:42:15 +00:00
* init reorg * updated readme * fix CI * remove outdated ipfs-node example * add Readme * update readme, add config file Co-authored-by: folex <0xdxdy@gmail.com>
22 lines
326 B
Rust
22 lines
326 B
Rust
use marine_rs_sdk::marine;
|
|
use marine_rs_sdk::module_manifest;
|
|
|
|
module_manifest!();
|
|
|
|
#[marine]
|
|
pub struct Echo {
|
|
pub echo: String,
|
|
}
|
|
|
|
#[marine]
|
|
pub fn echo(inputs: Vec<String>) -> Vec<Echo> {
|
|
inputs
|
|
.iter()
|
|
.map(|s| Echo {
|
|
echo: s.to_string(),
|
|
})
|
|
.collect()
|
|
}
|
|
|
|
fn main() {}
|