mirror of
https://github.com/fluencelabs/examples
synced 2025-06-11 00:51:21 +00:00
update main
This commit is contained in:
18
par-greeter/echo-service/src/main.rs
Normal file
18
par-greeter/echo-service/src/main.rs
Normal file
@ -0,0 +1,18 @@
|
||||
use fluence::fce;
|
||||
|
||||
#[fce]
|
||||
pub struct Echo {
|
||||
pub echo: String,
|
||||
}
|
||||
|
||||
#[fce]
|
||||
pub fn echo(inputs: Vec<String>) -> Vec<Echo> {
|
||||
inputs
|
||||
.iter()
|
||||
.map(|s| Echo {
|
||||
echo: s.to_string(),
|
||||
})
|
||||
.collect()
|
||||
}
|
||||
|
||||
fn main() {}
|
Reference in New Issue
Block a user