| Crates.io | openwhisk_macro |
| lib.rs | openwhisk_macro |
| version | 0.1.6 |
| created_at | 2022-06-02 05:26:18.763564+00 |
| updated_at | 2022-07-21 10:23:16.044062+00 |
| description | Derive Macro for OpenWhisk Rust Client |
| homepage | |
| repository | https://github.com/HugoByte/aurras/workflow/openwhisk_macro |
| max_upload_size | |
| id | 598673 |
| size | 5,978 |
This project Openwhisk Rust Macro is a Rust derive macro which implements necessary methods to interact with Openwhisk-rust library to invoke actions deployed in Openwhisk. The Openwhisk Rust Client library requires Rust to be installed onto your local machine.
Add following libraries.
openwhisk-rust = "0.1.2"
openwhisk_macro = "0.1.6"
In your Cargo.toml file of your rust package.
Then access those libraries by importing.
use openwhisk_macro::OpenWhisk;
use openwhisk-rust::*;
#[derive(OpenWhisk)]
#[AuthKey = "Your auth key"]
#[ApiHost = "Host api endpoint url"]
#[Insecure = "true/false"]
#[Namespace = "Your namespace name"]
// Note: Action should be deployed prior,before accessing it.
pub struct AnyAction {
action_name: String,
// *some fileds //
}
Licensed under Apache-2.0