Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion crates/templates/src/manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -615,7 +615,7 @@ mod tests {
}
}

const TPLS_IN_THIS: usize = 12;
const TPLS_IN_THIS: usize = 13;

#[tokio::test]
async fn can_install_into_new_directory() {
Expand Down
23 changes: 23 additions & 0 deletions templates/http-c/content/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Prerequisites

You will need:

* The WASI SDK
* Installation: https://github.com/WebAssembly/wasi-sdk#install
* Releases: https://github.com/WebAssembly/wasi-sdk/releases

# Building

* Set the `WASI_SDK_PATH` environment variable to the root of your WASI SDK installation (per the installation instructions at https://github.com/WebAssembly/wasi-sdk#install)
* Run `spin build`

# WASI and Spin host bindings

The `bindings` directory contains generated bindings for Spin. If you need to regenerate bindings:

* Install `wit-bindgen` (https://github.com/bytecodealliance/wit-bindgen#cli-installation) - requires Rust (https://rust-lang.org/tools/install/)
* Copy the `wit` directory from https://github.com/spinframework/spin into this folder
* Delete the existing `bindings` directory
* Run `wit-bindgen c ./wit/ --out-dir bindings -w http-trigger`

However, C bindings for WASI P3 and other async APIs are not yet mature, so if you do need to regenerate bindings, it is currently recommended that you **NOT** do so from Spin `HEAD`.
13,534 changes: 13,534 additions & 0 deletions templates/http-c/content/bindings/http_trigger.c

Large diffs are not rendered by default.

Loading
Loading