Skip to content

This code demo's HTTP requests and responses in rust using Spin from Fermyon. It uses the experimental wasm http library.

Notifications You must be signed in to change notification settings

afro-coder/spin-rust-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WASM demo in Rust

This project uses Fermyon's spin

Steps to get started

  • Install the Spin binary(Instructions in the Link above), cargo and rustup
  • Install dependencies
apt-get install -y curl git libssl-dev pkg-config
  • Then add wasm as a target
rustup target add wasm32-wasi
  • Run spin build
  • Run spin up --follow-all this will show all stdout and stderr

Note: There is a Dockerfile but it's currently not optimized and creates a 5GB docker image.

The spin.toml is where the Routing is decided for the URL's

Spin has a nice example list

About

This code demo's HTTP requests and responses in rust using Spin from Fermyon. It uses the experimental wasm http library.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published