azure-functions-sdk 0.5.2

Azure Functions for Rust Developer Tools
azure-functions-sdk-0.5.2 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

$ cargo install azure-functions-sdk

Next, create a new Azure Functions application:

$ cargo func new-app hello && cd hello

Create a HTTP-triggered function:

$ cargo func new http -n hello

This generates src/functions/hello.rs with the following contents:

use azure_functions::{
bindings::{HttpRequest, HttpResponse},
func,
};

#[func]
pub fn hello(req: &HttpRequest) -> HttpResponse {
"Hello from Rust!".into()
}

Azure Functions are implemented by applying a #[func] attribute to a Rust function.

Run the application:

$ cargo func run

Now invoke the function using cURL from a different terminal session:

$ curl http://localhost:8080/api/hello\?name\=John
Hello from Rust, John!