diff --git a/.devcontainer/bootstrap.sh b/.devcontainer/bootstrap.sh new file mode 100644 index 00000000..dc0834f3 --- /dev/null +++ b/.devcontainer/bootstrap.sh @@ -0,0 +1,5 @@ +# Installs latest stable toolchain for Rust and clippy/fmt for this toolchain +rustup update stable && rustup default stable && rustup component add clippy rustfmt + +# Installs wasm32 compiler targets +rustup target add wasm32-wasi wasm32-unknown-unknown \ No newline at end of file diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 20d9c092..6ebfde4a 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -38,7 +38,7 @@ // "forwardPorts": [], // Use 'postCreateCommand' to run commands after the container is created. - "postCreateCommand": "rustup target add wasm32-wasi", + "postCreateCommand": "sh ./.devcontainer/bootstrap.sh", // Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root. "remoteUser": "vscode" diff --git a/Cargo.lock b/Cargo.lock index d4a74a1e..200b51ae 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2129,9 +2129,9 @@ dependencies = [ [[package]] name = "h2" -version = "0.3.16" +version = "0.3.17" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5be7b54589b581f624f566bf5d8eb2bab1db736c51528720b6bd36b96b55924d" +checksum = "66b91535aa35fea1523ad1b86cb6b53c28e0ae566ba4a460f4457e936cad7c6f" dependencies = [ "bytes", "fnv", diff --git a/examples/spin-timer/Cargo.lock b/examples/spin-timer/Cargo.lock index 17ac3b7e..15218fad 100644 --- a/examples/spin-timer/Cargo.lock +++ b/examples/spin-timer/Cargo.lock @@ -3481,6 +3481,18 @@ dependencies = [ "wit-bindgen-wasmtime", ] +[[package]] +name = "spin-key-value-redis" +version = "0.1.0" +dependencies = [ + "anyhow", + "redis", + "spin-core", + "spin-key-value", + "tokio", + "url", +] + [[package]] name = "spin-key-value-sqlite" version = "0.1.0" @@ -3557,6 +3569,7 @@ dependencies = [ "spin-config", "spin-core", "spin-key-value", + "spin-key-value-redis", "spin-key-value-sqlite", "spin-loader", "spin-manifest",