2019-03-06 08:24:13 UTC - Michele Sciabarra: Hello all, look at this: ``` $ wsk action create hello-rust src/lib.rs --docker actionloop/actionloop-rust-v1.32 ok: created action hello-rust $ wsk action invoke hello-rust -r { "greeting": "Hello, stranger" } $ wsk action invoke hello-rust -r -p name Mike { "greeting": "Hello, Mike" } ``` tada : Dominic Kim rocket : Roberto Diaz https://openwhisk-team.slack.com/archives/C3UDXSFA6/p1551860653075600 ---- 2019-03-06 08:24:44 UTC - Michele Sciabarra: this is the code: ``` extern crate serde_json;
use std::collections::HashMap; use serde_json::Value; pub fn main(args: HashMap<String, Value>) -> HashMap<String, Value> { let name_opt = args.get("name"); let name = if name_opt.is_some() { name_opt.unwrap().as_str().unwrap() } else { "stranger" }; let mut out = HashMap::new(); out.insert("greeting".to_string(), Value::String(format!("Hello, {}", name))); out } ``` https://openwhisk-team.slack.com/archives/C3UDXSFA6/p1551860684076100 ---- 2019-03-06 08:25:18 UTC - Michele Sciabarra: Forgive my "rusty" rust it is certainly naive as I am a total beginner https://openwhisk-team.slack.com/archives/C3UDXSFA6/p1551860718076600 ---- 2019-03-06 08:26:31 UTC - Michele Sciabarra: Code is here: <https://github.com/apache/incubator-openwhisk-runtime-rust> https://openwhisk-team.slack.com/archives/C3UDXSFA6/p1551860791076900 ---- 2019-03-06 08:41:39 UTC - Carlos Santana: <https://twitter.com/nimbellacorp/status/1103019875193114624?s=21> whisking : Carlos Santana, chetanm, Dave Grove, Rob Allen +1 : Dominic Kim, Rob Allen sunglasses : Michele Sciabarra, Thomas Peikert https://openwhisk-team.slack.com/archives/C3UDXSFA6/p1551861699077200 ---- 2019-03-06 08:42:16 UTC - Dominic Kim: powered by! https://openwhisk-team.slack.com/archives/C3UDXSFA6/p1551861736077800 ---- 2019-03-06 19:30:19 UTC - Rob Allen: Grats Nimbella peeps! nimbella : Rodric Rabbah +1 : Rodric Rabbah https://openwhisk-team.slack.com/archives/C3UDXSFA6/p1551900619079700 ----