Skip to content

abdebek/wasmer-axum-starter-77c

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is an Axum Web Server starter template that compiles to WASIX.

Checkout the full tutorial here

Getting started

First, build the project using cargo-wasix:

$ cargo wasix build

Then, you can run the server easily using Wasmer:

$ wasmer run . --net --env PORT=8080
Listening on http://127.0.0.1:8080

Note

You will need to have Wasmer installed (check out the docs to install the Wasmer CLI!). The --net flag is required to enable networking support in Wasmer. The PORT environment variable is required to run the server locally.

Deploy on Wasmer Edge

The easiest way to deploy your WCGI Rust app is to use the Wasmer Edge.

Live example: https://wasix-axum-example.wasmer.app

wasmer deploy

Note

You will need to change the namespace in wasmer.toml to your own namespace and app name in app.yaml to your own app name.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages