Files
examples/aqua-examples/echo-greeter/echo-service/src/main.rs

22 lines
326 B
Rust
Raw Normal View History

2021-06-15 13:08:11 -05:00
use marine_rs_sdk::marine;
2021-06-16 18:27:49 -05:00
use marine_rs_sdk::module_manifest;
module_manifest!();
2021-04-08 00:39:58 -05:00
#[marine]
2021-04-08 00:39:58 -05:00
pub struct Echo {
pub echo: String,
}
#[marine]
2021-04-08 00:39:58 -05:00
pub fn echo(inputs: Vec<String>) -> Vec<Echo> {
inputs
.iter()
.map(|s| Echo {
echo: s.to_string(),
})
.collect()
}
fn main() {}