azure-functions-sdk-0.4.0 is not a library.
Azure Functions for Rust SDK
The Azure Functions for Rust SDK is a cargo extension for creating Azure Functions applications
Start by installing the Azure Functions for Rust SDK
Next, create a new Azure Functions application:
Azure Functions are implemented by applying a #[func]
attribute to a Rust function.
For example, let's create src/functions/hello.rs
that implements a HTTP triggered function:
use func;
use ;
Export the function in src/functions/mod.rs
:
use export;
export!
Run the application:
Now invoke the function using cURL from a different terminal session: