This repository is currently under active development.
The steps below work but there are a number of issues that need to be resolved before this becomes a usable workflow. See knative/func#1489 (comment) for a description of the issues.
Currently work in progress as we are testing the end to end UX but this project should build and make the sample application. The deployment aspects are currently being investigated.
pack builder create quay.io/knawd/builder:rust --config ./builders/rust/builder.toml
podman push quay.io/knawd/builder:rust
pack buildpack package knawd-rust --config ./buildpacks/rust/package.toml
podman build . -t quay.io/knawd/stack:rust
podman push quay.io/knawd/stack:rust
pack build helloworld-rust-wasi --path ./apps/rust/helloworld-rust-wasi --buildpack ./buildpacks/rust --builder quay.io/knawd/builder:rust --docker-host=inherit -v --trust-builder
podman run --rm --annotation module.wasm.image/variant=compat-smart -p 8080:8080 --entrypoint /layers/knawd_rust/wasi/hellorust.wasm helloworld-rust-wasi
curl localhost:8080
pack config trusted-builders add knawd/rust