diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 230a279..75396ff 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -135,7 +135,7 @@ jobs: run: ls -R - name: pluginify it run: | - spin pluginify --merge --release-url-base https://github.com/fermyon/spin-trigger-command/releases/download/${{ env.RELEASE_VERSION }}/ >${{ env.PROGRAM_NAME }}.json + spin pluginify --merge --release-url-base https://github.com/spinframework/spin-trigger-command/releases/download/${{ env.RELEASE_VERSION }}/ >${{ env.PROGRAM_NAME }}.json - name: Display merged manifest run: cat ${{ env.PROGRAM_NAME }}.json diff --git a/Cargo.lock b/Cargo.lock index dc19d65..c4c5279 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4594,8 +4594,8 @@ dependencies = [ [[package]] name = "spin-app" -version = "3.4.0" -source = "git+https://github.com/spinframework/spin?tag=v3.4.0#4f671bea25f17dea6d9e494bc918469043a75366" +version = "3.4.1" +source = "git+https://github.com/spinframework/spin?tag=v3.4.1#3ab5404bcb573ba1ea2e1c366e2ff63a90d307b2" dependencies = [ "anyhow", "serde", @@ -4605,8 +4605,8 @@ dependencies = [ [[package]] name = "spin-common" -version = "3.4.0" -source = "git+https://github.com/spinframework/spin?tag=v3.4.0#4f671bea25f17dea6d9e494bc918469043a75366" +version = "3.4.1" +source = "git+https://github.com/spinframework/spin?tag=v3.4.1#3ab5404bcb573ba1ea2e1c366e2ff63a90d307b2" dependencies = [ "anyhow", "dirs", @@ -4618,8 +4618,8 @@ dependencies = [ [[package]] name = "spin-componentize" -version = "3.4.0" -source = "git+https://github.com/spinframework/spin?tag=v3.4.0#4f671bea25f17dea6d9e494bc918469043a75366" +version = "3.4.1" +source = "git+https://github.com/spinframework/spin?tag=v3.4.1#3ab5404bcb573ba1ea2e1c366e2ff63a90d307b2" dependencies = [ "anyhow", "tracing", @@ -4632,8 +4632,8 @@ dependencies = [ [[package]] name = "spin-compose" -version = "3.4.0" -source = "git+https://github.com/spinframework/spin?tag=v3.4.0#4f671bea25f17dea6d9e494bc918469043a75366" +version = "3.4.1" +source = "git+https://github.com/spinframework/spin?tag=v3.4.1#3ab5404bcb573ba1ea2e1c366e2ff63a90d307b2" dependencies = [ "anyhow", "async-trait", @@ -4650,8 +4650,8 @@ dependencies = [ [[package]] name = "spin-core" -version = "3.4.0" -source = "git+https://github.com/spinframework/spin?tag=v3.4.0#4f671bea25f17dea6d9e494bc918469043a75366" +version = "3.4.1" +source = "git+https://github.com/spinframework/spin?tag=v3.4.1#3ab5404bcb573ba1ea2e1c366e2ff63a90d307b2" dependencies = [ "anyhow", "async-trait", @@ -4661,8 +4661,8 @@ dependencies = [ [[package]] name = "spin-expressions" -version = "3.4.0" -source = "git+https://github.com/spinframework/spin?tag=v3.4.0#4f671bea25f17dea6d9e494bc918469043a75366" +version = "3.4.1" +source = "git+https://github.com/spinframework/spin?tag=v3.4.1#3ab5404bcb573ba1ea2e1c366e2ff63a90d307b2" dependencies = [ "anyhow", "async-trait", @@ -4673,8 +4673,8 @@ dependencies = [ [[package]] name = "spin-factor-key-value" -version = "3.4.0" -source = "git+https://github.com/spinframework/spin?tag=v3.4.0#4f671bea25f17dea6d9e494bc918469043a75366" +version = "3.4.1" +source = "git+https://github.com/spinframework/spin?tag=v3.4.1#3ab5404bcb573ba1ea2e1c366e2ff63a90d307b2" dependencies = [ "anyhow", "serde", @@ -4692,8 +4692,8 @@ dependencies = [ [[package]] name = "spin-factor-llm" -version = "3.4.0" -source = "git+https://github.com/spinframework/spin?tag=v3.4.0#4f671bea25f17dea6d9e494bc918469043a75366" +version = "3.4.1" +source = "git+https://github.com/spinframework/spin?tag=v3.4.1#3ab5404bcb573ba1ea2e1c366e2ff63a90d307b2" dependencies = [ "anyhow", "async-trait", @@ -4711,8 +4711,8 @@ dependencies = [ [[package]] name = "spin-factor-outbound-http" -version = "3.4.0" -source = "git+https://github.com/spinframework/spin?tag=v3.4.0#4f671bea25f17dea6d9e494bc918469043a75366" +version = "3.4.1" +source = "git+https://github.com/spinframework/spin?tag=v3.4.1#3ab5404bcb573ba1ea2e1c366e2ff63a90d307b2" dependencies = [ "anyhow", "bytes", @@ -4738,8 +4738,8 @@ dependencies = [ [[package]] name = "spin-factor-outbound-mqtt" -version = "3.4.0" -source = "git+https://github.com/spinframework/spin?tag=v3.4.0#4f671bea25f17dea6d9e494bc918469043a75366" +version = "3.4.1" +source = "git+https://github.com/spinframework/spin?tag=v3.4.1#3ab5404bcb573ba1ea2e1c366e2ff63a90d307b2" dependencies = [ "anyhow", "rumqttc", @@ -4754,8 +4754,8 @@ dependencies = [ [[package]] name = "spin-factor-outbound-mysql" -version = "3.4.0" -source = "git+https://github.com/spinframework/spin?tag=v3.4.0#4f671bea25f17dea6d9e494bc918469043a75366" +version = "3.4.1" +source = "git+https://github.com/spinframework/spin?tag=v3.4.1#3ab5404bcb573ba1ea2e1c366e2ff63a90d307b2" dependencies = [ "anyhow", "mysql_async", @@ -4771,8 +4771,8 @@ dependencies = [ [[package]] name = "spin-factor-outbound-networking" -version = "3.4.0" -source = "git+https://github.com/spinframework/spin?tag=v3.4.0#4f671bea25f17dea6d9e494bc918469043a75366" +version = "3.4.1" +source = "git+https://github.com/spinframework/spin?tag=v3.4.1#3ab5404bcb573ba1ea2e1c366e2ff63a90d307b2" dependencies = [ "anyhow", "futures-util", @@ -4795,8 +4795,8 @@ dependencies = [ [[package]] name = "spin-factor-outbound-pg" -version = "3.4.0" -source = "git+https://github.com/spinframework/spin?tag=v3.4.0#4f671bea25f17dea6d9e494bc918469043a75366" +version = "3.4.1" +source = "git+https://github.com/spinframework/spin?tag=v3.4.1#3ab5404bcb573ba1ea2e1c366e2ff63a90d307b2" dependencies = [ "anyhow", "bytes", @@ -4821,8 +4821,8 @@ dependencies = [ [[package]] name = "spin-factor-outbound-redis" -version = "3.4.0" -source = "git+https://github.com/spinframework/spin?tag=v3.4.0#4f671bea25f17dea6d9e494bc918469043a75366" +version = "3.4.1" +source = "git+https://github.com/spinframework/spin?tag=v3.4.1#3ab5404bcb573ba1ea2e1c366e2ff63a90d307b2" dependencies = [ "anyhow", "redis 0.25.4", @@ -4836,8 +4836,8 @@ dependencies = [ [[package]] name = "spin-factor-sqlite" -version = "3.4.0" -source = "git+https://github.com/spinframework/spin?tag=v3.4.0#4f671bea25f17dea6d9e494bc918469043a75366" +version = "3.4.1" +source = "git+https://github.com/spinframework/spin?tag=v3.4.1#3ab5404bcb573ba1ea2e1c366e2ff63a90d307b2" dependencies = [ "async-trait", "spin-factors", @@ -4850,8 +4850,8 @@ dependencies = [ [[package]] name = "spin-factor-variables" -version = "3.4.0" -source = "git+https://github.com/spinframework/spin?tag=v3.4.0#4f671bea25f17dea6d9e494bc918469043a75366" +version = "3.4.1" +source = "git+https://github.com/spinframework/spin?tag=v3.4.1#3ab5404bcb573ba1ea2e1c366e2ff63a90d307b2" dependencies = [ "spin-expressions", "spin-factors", @@ -4862,8 +4862,8 @@ dependencies = [ [[package]] name = "spin-factor-wasi" -version = "3.4.0" -source = "git+https://github.com/spinframework/spin?tag=v3.4.0#4f671bea25f17dea6d9e494bc918469043a75366" +version = "3.4.1" +source = "git+https://github.com/spinframework/spin?tag=v3.4.1#3ab5404bcb573ba1ea2e1c366e2ff63a90d307b2" dependencies = [ "async-trait", "bytes", @@ -4876,8 +4876,8 @@ dependencies = [ [[package]] name = "spin-factors" -version = "3.4.0" -source = "git+https://github.com/spinframework/spin?tag=v3.4.0#4f671bea25f17dea6d9e494bc918469043a75366" +version = "3.4.1" +source = "git+https://github.com/spinframework/spin?tag=v3.4.1#3ab5404bcb573ba1ea2e1c366e2ff63a90d307b2" dependencies = [ "anyhow", "serde", @@ -4890,8 +4890,8 @@ dependencies = [ [[package]] name = "spin-factors-derive" -version = "3.4.0" -source = "git+https://github.com/spinframework/spin?tag=v3.4.0#4f671bea25f17dea6d9e494bc918469043a75366" +version = "3.4.1" +source = "git+https://github.com/spinframework/spin?tag=v3.4.1#3ab5404bcb573ba1ea2e1c366e2ff63a90d307b2" dependencies = [ "proc-macro2", "quote", @@ -4900,8 +4900,8 @@ dependencies = [ [[package]] name = "spin-factors-executor" -version = "3.4.0" -source = "git+https://github.com/spinframework/spin?tag=v3.4.0#4f671bea25f17dea6d9e494bc918469043a75366" +version = "3.4.1" +source = "git+https://github.com/spinframework/spin?tag=v3.4.1#3ab5404bcb573ba1ea2e1c366e2ff63a90d307b2" dependencies = [ "anyhow", "spin-app", @@ -4911,8 +4911,8 @@ dependencies = [ [[package]] name = "spin-key-value-aws" -version = "3.4.0" -source = "git+https://github.com/spinframework/spin?tag=v3.4.0#4f671bea25f17dea6d9e494bc918469043a75366" +version = "3.4.1" +source = "git+https://github.com/spinframework/spin?tag=v3.4.1#3ab5404bcb573ba1ea2e1c366e2ff63a90d307b2" dependencies = [ "anyhow", "async-once-cell", @@ -4926,8 +4926,8 @@ dependencies = [ [[package]] name = "spin-key-value-azure" -version = "3.4.0" -source = "git+https://github.com/spinframework/spin?tag=v3.4.0#4f671bea25f17dea6d9e494bc918469043a75366" +version = "3.4.1" +source = "git+https://github.com/spinframework/spin?tag=v3.4.1#3ab5404bcb573ba1ea2e1c366e2ff63a90d307b2" dependencies = [ "anyhow", "async-trait", @@ -4942,8 +4942,8 @@ dependencies = [ [[package]] name = "spin-key-value-redis" -version = "3.4.0" -source = "git+https://github.com/spinframework/spin?tag=v3.4.0#4f671bea25f17dea6d9e494bc918469043a75366" +version = "3.4.1" +source = "git+https://github.com/spinframework/spin?tag=v3.4.1#3ab5404bcb573ba1ea2e1c366e2ff63a90d307b2" dependencies = [ "anyhow", "redis 0.29.5", @@ -4956,8 +4956,8 @@ dependencies = [ [[package]] name = "spin-key-value-spin" -version = "3.4.0" -source = "git+https://github.com/spinframework/spin?tag=v3.4.0#4f671bea25f17dea6d9e494bc918469043a75366" +version = "3.4.1" +source = "git+https://github.com/spinframework/spin?tag=v3.4.1#3ab5404bcb573ba1ea2e1c366e2ff63a90d307b2" dependencies = [ "anyhow", "rusqlite", @@ -4970,8 +4970,8 @@ dependencies = [ [[package]] name = "spin-llm-remote-http" -version = "3.4.0" -source = "git+https://github.com/spinframework/spin?tag=v3.4.0#4f671bea25f17dea6d9e494bc918469043a75366" +version = "3.4.1" +source = "git+https://github.com/spinframework/spin?tag=v3.4.1#3ab5404bcb573ba1ea2e1c366e2ff63a90d307b2" dependencies = [ "anyhow", "reqwest 0.12.5", @@ -4984,8 +4984,8 @@ dependencies = [ [[package]] name = "spin-locked-app" -version = "3.4.0" -source = "git+https://github.com/spinframework/spin?tag=v3.4.0#4f671bea25f17dea6d9e494bc918469043a75366" +version = "3.4.1" +source = "git+https://github.com/spinframework/spin?tag=v3.4.1#3ab5404bcb573ba1ea2e1c366e2ff63a90d307b2" dependencies = [ "anyhow", "async-trait", @@ -4998,8 +4998,8 @@ dependencies = [ [[package]] name = "spin-manifest" -version = "3.4.0" -source = "git+https://github.com/spinframework/spin?tag=v3.4.0#4f671bea25f17dea6d9e494bc918469043a75366" +version = "3.4.1" +source = "git+https://github.com/spinframework/spin?tag=v3.4.1#3ab5404bcb573ba1ea2e1c366e2ff63a90d307b2" dependencies = [ "anyhow", "indexmap 2.9.0", @@ -5016,8 +5016,8 @@ dependencies = [ [[package]] name = "spin-outbound-networking-config" -version = "3.4.0" -source = "git+https://github.com/spinframework/spin?tag=v3.4.0#4f671bea25f17dea6d9e494bc918469043a75366" +version = "3.4.1" +source = "git+https://github.com/spinframework/spin?tag=v3.4.1#3ab5404bcb573ba1ea2e1c366e2ff63a90d307b2" dependencies = [ "anyhow", "futures-util", @@ -5032,13 +5032,13 @@ dependencies = [ [[package]] name = "spin-resource-table" -version = "3.4.0" -source = "git+https://github.com/spinframework/spin?tag=v3.4.0#4f671bea25f17dea6d9e494bc918469043a75366" +version = "3.4.1" +source = "git+https://github.com/spinframework/spin?tag=v3.4.1#3ab5404bcb573ba1ea2e1c366e2ff63a90d307b2" [[package]] name = "spin-runtime-config" -version = "3.4.0" -source = "git+https://github.com/spinframework/spin?tag=v3.4.0#4f671bea25f17dea6d9e494bc918469043a75366" +version = "3.4.1" +source = "git+https://github.com/spinframework/spin?tag=v3.4.1#3ab5404bcb573ba1ea2e1c366e2ff63a90d307b2" dependencies = [ "anyhow", "serde", @@ -5071,8 +5071,8 @@ dependencies = [ [[package]] name = "spin-runtime-factors" -version = "3.4.0" -source = "git+https://github.com/spinframework/spin?tag=v3.4.0#4f671bea25f17dea6d9e494bc918469043a75366" +version = "3.4.1" +source = "git+https://github.com/spinframework/spin?tag=v3.4.1#3ab5404bcb573ba1ea2e1c366e2ff63a90d307b2" dependencies = [ "anyhow", "clap", @@ -5099,8 +5099,8 @@ dependencies = [ [[package]] name = "spin-serde" -version = "3.4.0" -source = "git+https://github.com/spinframework/spin?tag=v3.4.0#4f671bea25f17dea6d9e494bc918469043a75366" +version = "3.4.1" +source = "git+https://github.com/spinframework/spin?tag=v3.4.1#3ab5404bcb573ba1ea2e1c366e2ff63a90d307b2" dependencies = [ "anyhow", "base64 0.22.1", @@ -5112,8 +5112,8 @@ dependencies = [ [[package]] name = "spin-sqlite" -version = "3.4.0" -source = "git+https://github.com/spinframework/spin?tag=v3.4.0#4f671bea25f17dea6d9e494bc918469043a75366" +version = "3.4.1" +source = "git+https://github.com/spinframework/spin?tag=v3.4.1#3ab5404bcb573ba1ea2e1c366e2ff63a90d307b2" dependencies = [ "serde", "spin-factor-sqlite", @@ -5125,8 +5125,8 @@ dependencies = [ [[package]] name = "spin-sqlite-inproc" -version = "3.4.0" -source = "git+https://github.com/spinframework/spin?tag=v3.4.0#4f671bea25f17dea6d9e494bc918469043a75366" +version = "3.4.1" +source = "git+https://github.com/spinframework/spin?tag=v3.4.1#3ab5404bcb573ba1ea2e1c366e2ff63a90d307b2" dependencies = [ "anyhow", "async-trait", @@ -5138,8 +5138,8 @@ dependencies = [ [[package]] name = "spin-sqlite-libsql" -version = "3.4.0" -source = "git+https://github.com/spinframework/spin?tag=v3.4.0#4f671bea25f17dea6d9e494bc918469043a75366" +version = "3.4.1" +source = "git+https://github.com/spinframework/spin?tag=v3.4.1#3ab5404bcb573ba1ea2e1c366e2ff63a90d307b2" dependencies = [ "anyhow", "async-trait", @@ -5151,8 +5151,8 @@ dependencies = [ [[package]] name = "spin-telemetry" -version = "3.4.0" -source = "git+https://github.com/spinframework/spin?tag=v3.4.0#4f671bea25f17dea6d9e494bc918469043a75366" +version = "3.4.1" +source = "git+https://github.com/spinframework/spin?tag=v3.4.1#3ab5404bcb573ba1ea2e1c366e2ff63a90d307b2" dependencies = [ "anyhow", "http 0.2.12", @@ -5169,8 +5169,8 @@ dependencies = [ [[package]] name = "spin-trigger" -version = "3.4.0" -source = "git+https://github.com/spinframework/spin?tag=v3.4.0#4f671bea25f17dea6d9e494bc918469043a75366" +version = "3.4.1" +source = "git+https://github.com/spinframework/spin?tag=v3.4.1#3ab5404bcb573ba1ea2e1c366e2ff63a90d307b2" dependencies = [ "anyhow", "clap", @@ -5195,8 +5195,8 @@ dependencies = [ [[package]] name = "spin-variables-azure" -version = "3.4.0" -source = "git+https://github.com/spinframework/spin?tag=v3.4.0#4f671bea25f17dea6d9e494bc918469043a75366" +version = "3.4.1" +source = "git+https://github.com/spinframework/spin?tag=v3.4.1#3ab5404bcb573ba1ea2e1c366e2ff63a90d307b2" dependencies = [ "azure_core 0.20.0", "azure_identity 0.20.0", @@ -5210,8 +5210,8 @@ dependencies = [ [[package]] name = "spin-variables-env" -version = "3.4.0" -source = "git+https://github.com/spinframework/spin?tag=v3.4.0#4f671bea25f17dea6d9e494bc918469043a75366" +version = "3.4.1" +source = "git+https://github.com/spinframework/spin?tag=v3.4.1#3ab5404bcb573ba1ea2e1c366e2ff63a90d307b2" dependencies = [ "dotenvy", "serde", @@ -5224,8 +5224,8 @@ dependencies = [ [[package]] name = "spin-variables-static" -version = "3.4.0" -source = "git+https://github.com/spinframework/spin?tag=v3.4.0#4f671bea25f17dea6d9e494bc918469043a75366" +version = "3.4.1" +source = "git+https://github.com/spinframework/spin?tag=v3.4.1#3ab5404bcb573ba1ea2e1c366e2ff63a90d307b2" dependencies = [ "serde", "serde_json", @@ -5237,8 +5237,8 @@ dependencies = [ [[package]] name = "spin-variables-vault" -version = "3.4.0" -source = "git+https://github.com/spinframework/spin?tag=v3.4.0#4f671bea25f17dea6d9e494bc918469043a75366" +version = "3.4.1" +source = "git+https://github.com/spinframework/spin?tag=v3.4.1#3ab5404bcb573ba1ea2e1c366e2ff63a90d307b2" dependencies = [ "serde", "spin-expressions", @@ -5249,8 +5249,8 @@ dependencies = [ [[package]] name = "spin-world" -version = "3.4.0" -source = "git+https://github.com/spinframework/spin?tag=v3.4.0#4f671bea25f17dea6d9e494bc918469043a75366" +version = "3.4.1" +source = "git+https://github.com/spinframework/spin?tag=v3.4.1#3ab5404bcb573ba1ea2e1c366e2ff63a90d307b2" dependencies = [ "async-trait", "wasmtime", @@ -5419,8 +5419,8 @@ dependencies = [ [[package]] name = "terminal" -version = "3.4.0" -source = "git+https://github.com/spinframework/spin?tag=v3.4.0#4f671bea25f17dea6d9e494bc918469043a75366" +version = "3.4.1" +source = "git+https://github.com/spinframework/spin?tag=v3.4.1#3ab5404bcb573ba1ea2e1c366e2ff63a90d307b2" dependencies = [ "termcolor", ] @@ -5851,7 +5851,7 @@ dependencies = [ [[package]] name = "trigger-command" -version = "0.4.0" +version = "0.4.1" dependencies = [ "anyhow", "clap", diff --git a/Cargo.toml b/Cargo.toml index d3a919c..dc1fe1f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -6,7 +6,7 @@ edition = { workspace = true } rust-version = "1.86" [workspace.package] -version = "0.4.0" +version = "0.4.1" authors = ["Radu Matei "] edition = "2021" @@ -16,15 +16,15 @@ edition = "2021" anyhow = "1.0" clap = { version = "3.1.15", features = ["derive", "env"] } serde = "1.0" -spin-trigger = { git = "https://github.com/spinframework/spin", tag = "v3.4.0" } -spin-core = { git = "https://github.com/spinframework/spin", tag = "v3.4.0" } -spin-telemetry = { git = "https://github.com/spinframework/spin", tag = "v3.4.0" } -spin-factors = { git = "https://github.com/spinframework/spin", tag = "v3.4.0" } -spin-factor-wasi = { git = "https://github.com/spinframework/spin", tag = "v3.4.0" } -spin-runtime-factors = { git = "https://github.com/spinframework/spin", tag = "v3.4.0" } +spin-trigger = { git = "https://github.com/spinframework/spin", tag = "v3.4.1" } +spin-core = { git = "https://github.com/spinframework/spin", tag = "v3.4.1" } +spin-telemetry = { git = "https://github.com/spinframework/spin", tag = "v3.4.1" } +spin-factors = { git = "https://github.com/spinframework/spin", tag = "v3.4.1" } +spin-factor-wasi = { git = "https://github.com/spinframework/spin", tag = "v3.4.1" } +spin-runtime-factors = { git = "https://github.com/spinframework/spin", tag = "v3.4.1" } tokio = { version = "1", features = ["rt", "macros"] } tracing = { version = "0.1", features = ["log"] } -wasmtime-wasi = "36.0.1" +wasmtime-wasi = "36.0.2" [target.'cfg(target_os = "linux")'.dependencies] # This needs to be an explicit dependency to enable diff --git a/README.md b/README.md index d57085b..d4caedc 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ spin plugin install trigger-command The canary release of the command trigger plugin represents the most recent commits on `main` and may not be stable, with some features still in progress. ```sh -spin plugins install --url https://github.com/fermyon/spin-trigger-command/releases/download/canary/trigger-command.json +spin plugins install --url https://github.com/spinframework/spin-trigger-command/releases/download/canary/trigger-command.json ``` ## Install from a local build diff --git a/examples/async/Cargo.lock b/examples/async/Cargo.lock index 9a3aa23..a420f4f 100644 --- a/examples/async/Cargo.lock +++ b/examples/async/Cargo.lock @@ -1,6 +1,21 @@ # This file is automatically @generated by Cargo. # It is not intended for manual editing. -version = 3 +version = 4 + +[[package]] +name = "android-tzdata" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e999941b234f3131b00bc13c22d06e8c5ff726d1b6318ac7eb276997bbb4fef0" + +[[package]] +name = "android_system_properties" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "819e7219dbd41043ac279b19830f2efc897156490d7fd6ea916720117ee66311" +dependencies = [ + "libc", +] [[package]] name = "anyhow" @@ -8,6 +23,12 @@ version = "1.0.86" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b3d1d046238990b9cf5bcde22a3fb3584ee5cf65fb2765f454ed428c7a0063da" +[[package]] +name = "arrayvec" +version = "0.7.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7c02d123df017efcdfbd739ef81735b36c5ba83ec3c59c80a9d7ecc718f92e50" + [[package]] name = "async-trait" version = "0.1.80" @@ -16,7 +37,7 @@ checksum = "c6fa2087f2753a7da8cc1c0dbfcf89579dd57458e36769de5ac750b4671737ca" dependencies = [ "proc-macro2", "quote", - "syn 2.0.66", + "syn 2.0.106", ] [[package]] @@ -25,30 +46,134 @@ version = "1.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0c4b4d0bd25bd0b74681c0ad21497610ce1b7c91b1022cd21c80c6fbdd9476b0" +[[package]] +name = "base64" +version = "0.22.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6" + [[package]] name = "bitflags" version = "2.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "cf4b9d6a944f767f8e5e0db018570623c85f3d925ac718db4e06d0187adb21c1" +[[package]] +name = "block-buffer" +version = "0.10.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3078c7629b62d3f0439517fa394996acacc5cbc91c5a20d8c658e77abd503a71" +dependencies = [ + "generic-array", +] + +[[package]] +name = "bumpalo" +version = "3.19.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "46c5e41b57b8bba42a04676d81cb89e9ee8e859a1a66f80a5a72e1cb76b34d43" + +[[package]] +name = "byteorder" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b" + [[package]] name = "bytes" version = "1.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "514de17de45fdb8dc022b1a7975556c53c86f9f0aa5f534b98977b171857c2c9" +[[package]] +name = "cc" +version = "1.2.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "42bc4aea80032b7bf409b0bc7ccad88853858911b7713a8062fdc0623867bedc" +dependencies = [ + "shlex", +] + +[[package]] +name = "cfg-if" +version = "1.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2fd1289c04a9ea8cb22300a459a72a385d7c73d3259e2ed7dcb2af674838cfa9" + +[[package]] +name = "chrono" +version = "0.4.41" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c469d952047f47f91b68d1cba3f10d63c11d73e4636f24f08daf0278abf01c4d" +dependencies = [ + "android-tzdata", + "iana-time-zone", + "js-sys", + "num-traits", + "wasm-bindgen", + "windows-link", +] + +[[package]] +name = "core-foundation-sys" +version = "0.8.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b" + +[[package]] +name = "cpufeatures" +version = "0.2.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "59ed5838eebb26a2bb2e58f6d5b5316989ae9d08bab10e0e6d103e656d1b0280" +dependencies = [ + "libc", +] + +[[package]] +name = "crypto-common" +version = "0.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1bfb12502f3fc46cca1bb51ac28df9d618d813cdc3d2f25b9fe775a34af26bb3" +dependencies = [ + "generic-array", + "typenum", +] + +[[package]] +name = "digest" +version = "0.10.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292" +dependencies = [ + "block-buffer", + "crypto-common", + "subtle", +] + [[package]] name = "equivalent" version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5443807d6dff69373d433ab9ef5378ad8df50ca6298caf15de6e52e24aaf54d5" +[[package]] +name = "fallible-iterator" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4443176a9f2c162692bd3d352d745ef9413eec5782a80d8fd6f8a1ac692a07f7" + [[package]] name = "fnv" version = "1.0.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" +[[package]] +name = "foldhash" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d9c4f5dac5e15c24eb999c26181a6ca40b39fe946cbe4c263c7209467bc83af2" + [[package]] name = "form_urlencoded" version = "1.2.1" @@ -114,7 +239,7 @@ checksum = "87750cf4b7a4c0625b1529e4c543c2182106e4dedc60a2a6455e00d212c489ac" dependencies = [ "proc-macro2", "quote", - "syn 2.0.66", + "syn 2.0.106", ] [[package]] @@ -147,19 +272,50 @@ dependencies = [ "slab", ] +[[package]] +name = "generic-array" +version = "0.14.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "85649ca51fd72272d7821adaf274ad91c288277713d9c18820d8499a7ff69e9a" +dependencies = [ + "typenum", + "version_check", +] + +[[package]] +name = "getrandom" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "26145e563e54f2cadc477553f1ec5ee650b00862f0a58bcd12cbdc5f0ea2d2f4" +dependencies = [ + "cfg-if", + "libc", + "r-efi", + "wasi 0.14.3+wasi-0.2.4", +] + [[package]] name = "hashbrown" -version = "0.14.5" +version = "0.15.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e5274423e17b7c9fc20b6e7e208532f9b19825d82dfd615708b70edd83df41f1" +checksum = "9229cfe53dfd69f0609a49f65461bd93001ea1ef889cd5529dd176593f5338a1" +dependencies = [ + "foldhash", +] [[package]] name = "heck" -version = "0.4.1" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea" + +[[package]] +name = "hmac" +version = "0.12.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "95505c38b4572b2d910cecb0281560f54b440a19336cbbcb27bf6ce6adc6f5a8" +checksum = "6c49c37c09c17a53d937dfbb742eb3a961d65a994e6bcdcf37e7399d0cc8ab5e" dependencies = [ - "unicode-segmentation", + "digest", ] [[package]] @@ -173,6 +329,30 @@ dependencies = [ "itoa", ] +[[package]] +name = "iana-time-zone" +version = "0.1.63" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b0c919e5debc312ad217002b8048a17b7d83f80703865bbfcfebb0458b0b27d8" +dependencies = [ + "android_system_properties", + "core-foundation-sys", + "iana-time-zone-haiku", + "js-sys", + "log", + "wasm-bindgen", + "windows-core", +] + +[[package]] +name = "iana-time-zone-haiku" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f31827a206f56af32e590ba56d5d2d085f558508192593743f16b2306495269f" +dependencies = [ + "cc", +] + [[package]] name = "id-arena" version = "2.2.1" @@ -181,9 +361,9 @@ checksum = "25a2bc672d1148e28034f176e01fffebb08b35768468cc954630da77a1449005" [[package]] name = "indexmap" -version = "2.2.6" +version = "2.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "168fb715dda47215e360912c096649d23d58bf392ac62f73919e831745e40f26" +checksum = "f2481980430f9f78649238835720ddccc57e52df14ffce1c6f37391d61b563e9" dependencies = [ "equivalent", "hashbrown", @@ -203,14 +383,30 @@ dependencies = [ "anyhow", "spin-executor", "spin-sdk", - "wit-bindgen-rt", + "wit-bindgen-rt 0.43.0", +] + +[[package]] +name = "js-sys" +version = "0.3.77" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1cfaf33c695fc6e08064efbc1f72ec937429614f25eef83af942d0e227c3a28f" +dependencies = [ + "once_cell", + "wasm-bindgen", ] [[package]] -name = "leb128" -version = "0.2.5" +name = "leb128fmt" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "09edd9e8b54e49e587e4f6295a7d29c3ea94d469cb40ab8ca70b288248a81db2" + +[[package]] +name = "libc" +version = "0.2.175" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "884e2677b40cc8c339eaefcb701c32ef1fd2493d71118dc0ca4b6a736c93bd67" +checksum = "6a82ae493e598baaea5209805c49bbf2ea7de956d50d7da0da1164f9c6d28543" [[package]] name = "log" @@ -218,12 +414,31 @@ version = "0.4.21" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "90ed8c1e510134f979dbc4f070f87d4313098b704861a105fe34231c70a3901c" +[[package]] +name = "md-5" +version = "0.10.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d89e7ee0cfbedfc4da3340218492196241d89eefb6dab27de5df917a6d2e78cf" +dependencies = [ + "cfg-if", + "digest", +] + [[package]] name = "memchr" version = "2.7.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "78ca9ab1a0babb1e7d5695e3530886289c18cf2f87ec19a575a0abdce112e3a3" +[[package]] +name = "num-traits" +version = "0.2.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841" +dependencies = [ + "autocfg", +] + [[package]] name = "once_cell" version = "1.19.0" @@ -248,11 +463,69 @@ version = "0.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184" +[[package]] +name = "postgres-protocol" +version = "0.6.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "76ff0abab4a9b844b93ef7b81f1efc0a366062aaef2cd702c76256b5dc075c54" +dependencies = [ + "base64", + "byteorder", + "bytes", + "fallible-iterator", + "hmac", + "md-5", + "memchr", + "rand", + "sha2", + "stringprep", +] + +[[package]] +name = "postgres-types" +version = "0.2.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "613283563cd90e1dfc3518d548caee47e0e725455ed619881f5cf21f36de4b48" +dependencies = [ + "bytes", + "fallible-iterator", + "postgres-protocol", +] + +[[package]] +name = "postgres_range" +version = "0.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f6dce28dc5ba143d8eb157b62aac01ae5a1c585c40792158b720e86a87642101" +dependencies = [ + "postgres-protocol", + "postgres-types", +] + +[[package]] +name = "ppv-lite86" +version = "0.2.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "85eae3c4ed2f50dcfe72643da4befc30deadb458a9b590d720cde2f2b1e97da9" +dependencies = [ + "zerocopy", +] + +[[package]] +name = "prettyplease" +version = "0.2.37" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "479ca8adacdd7ce8f1fb39ce9ecccbfe93a3f1344b3d0d97f20bc0196208f62b" +dependencies = [ + "proc-macro2", + "syn 2.0.106", +] + [[package]] name = "proc-macro2" -version = "1.0.85" +version = "1.0.101" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "22244ce15aa966053a896d1accb3a6e68469b97c7f33f284b99f0d576879fc23" +checksum = "89ae43fd86e4158d6db51ad8e2b80f313af9cc74f5c0e03ccb87de09998732de" dependencies = [ "unicode-ident", ] @@ -266,6 +539,41 @@ dependencies = [ "proc-macro2", ] +[[package]] +name = "r-efi" +version = "5.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "69cdb34c158ceb288df11e18b4bd39de994f6657d83847bdffdbd7f346754b0f" + +[[package]] +name = "rand" +version = "0.9.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6db2770f06117d490610c7488547d543617b21bfa07796d7a12f6f1bd53850d1" +dependencies = [ + "rand_chacha", + "rand_core", +] + +[[package]] +name = "rand_chacha" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d3022b5f1df60f26e1ffddd6c66e8aa15de382ae63b3a0c1bfc0e4d3e3f325cb" +dependencies = [ + "ppv-lite86", + "rand_core", +] + +[[package]] +name = "rand_core" +version = "0.9.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "99d9a13982dcf210057a8a78572b2217b667c3beacbf3a0d8b454f6f82837d38" +dependencies = [ + "getrandom", +] + [[package]] name = "routefinder" version = "0.5.4" @@ -276,6 +584,22 @@ dependencies = [ "smartstring", ] +[[package]] +name = "rust_decimal" +version = "1.37.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b203a6425500a03e0919c42d3c47caca51e79f1132046626d2c8871c5092035d" +dependencies = [ + "arrayvec", + "num-traits", +] + +[[package]] +name = "rustversion" +version = "1.0.22" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b39cdef0fa800fc44525c84ccb54a029961a8215f9619753635a9c0d2538d46d" + [[package]] name = "ryu" version = "1.0.18" @@ -305,7 +629,7 @@ checksum = "500cbc0ebeb6f46627f50f3f5811ccf6bf00643be300b4c3eabc0ef55dc5b5ba" dependencies = [ "proc-macro2", "quote", - "syn 2.0.66", + "syn 2.0.106", ] [[package]] @@ -319,6 +643,23 @@ dependencies = [ "serde", ] +[[package]] +name = "sha2" +version = "0.10.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a7507d819769d01a365ab707794a4084392c824f54a7a6a7862f8c3d0892b283" +dependencies = [ + "cfg-if", + "cpufeatures", + "digest", +] + +[[package]] +name = "shlex" +version = "1.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64" + [[package]] name = "slab" version = "0.4.9" @@ -328,12 +669,6 @@ dependencies = [ "autocfg", ] -[[package]] -name = "smallvec" -version = "1.13.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3c5e1a9a646d36c3599cd173a41282daf47c44583ad367b8e6837255952e5c67" - [[package]] name = "smartcow" version = "0.2.1" @@ -354,31 +689,22 @@ dependencies = [ "version_check", ] -[[package]] -name = "spdx" -version = "0.10.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "47317bbaf63785b53861e1ae2d11b80d6b624211d42cb20efcd210ee6f8a14bc" -dependencies = [ - "smallvec", -] - [[package]] name = "spin-executor" -version = "3.0.1" +version = "5.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2df1a5e2cc70a628c9ea6914770c234cc4a292218091e6707ae8be68b4a5de76" +checksum = "cde323c004c7d9d68fbccd1dd6caee6330aaefbcb40562587fc0356bd0ea8e5f" dependencies = [ "futures", "once_cell", - "wit-bindgen", + "wasi 0.13.1+wasi-0.2.0", ] [[package]] name = "spin-macro" -version = "3.0.1" +version = "5.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ef3d03e5a205a641d85ace3af1604b39dba63d3ffe3865a71bda02fb482ae60a" +checksum = "c1592d94530c032aa8676c8adee71022fba49504ae6d4d8961a454029d3bac6f" dependencies = [ "anyhow", "bytes", @@ -389,24 +715,29 @@ dependencies = [ [[package]] name = "spin-sdk" -version = "3.0.1" +version = "5.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ed97f54a15f2d8b1fa15e436d88bacb95a5b379a3e0f8fbd8042eb8696ca048a" +checksum = "72e9705e63f1e7f955b3c9bef754a6f957624d734c6091990a2dc6f1e135625d" dependencies = [ "anyhow", "async-trait", "bytes", + "chrono", "form_urlencoded", "futures", "http", "once_cell", + "postgres_range", "routefinder", + "rust_decimal", "serde", "serde_json", "spin-executor", "spin-macro", "thiserror", - "wit-bindgen", + "uuid", + "wasi 0.13.1+wasi-0.2.0", + "wit-bindgen 0.43.0", ] [[package]] @@ -415,6 +746,23 @@ version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f" +[[package]] +name = "stringprep" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7b4df3d392d81bd458a8a621b8bffbd2302a12ffe288a9d931670948749463b1" +dependencies = [ + "unicode-bidi", + "unicode-normalization", + "unicode-properties", +] + +[[package]] +name = "subtle" +version = "2.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292" + [[package]] name = "syn" version = "1.0.109" @@ -428,9 +776,9 @@ dependencies = [ [[package]] name = "syn" -version = "2.0.66" +version = "2.0.106" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c42f3f41a2de00b01c0aaad383c5a45241efc8b2d1eda5661812fda5f3cdcff5" +checksum = "ede7c438028d4436d71104916910f5bb611972c5cfd7f89b8300a8186e6fada6" dependencies = [ "proc-macro2", "quote", @@ -454,9 +802,36 @@ checksum = "46c3384250002a6d5af4d114f2845d37b57521033f30d5c3f46c4d70e1197533" dependencies = [ "proc-macro2", "quote", - "syn 2.0.66", + "syn 2.0.106", +] + +[[package]] +name = "tinyvec" +version = "1.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bfa5fdc3bce6191a1dbc8c02d5c8bffcf557bafa17c124c5264a458f1b0613fa" +dependencies = [ + "tinyvec_macros", ] +[[package]] +name = "tinyvec_macros" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" + +[[package]] +name = "typenum" +version = "1.18.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1dccffe3ce07af9386bfd29e80c0ab1a8205a2fc34e4bcd40364df902cfa8f3f" + +[[package]] +name = "unicode-bidi" +version = "0.3.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5c1cb5db39152898a79168971543b1cb5020dff7fe43c8dc468b0885f5e29df5" + [[package]] name = "unicode-ident" version = "1.0.12" @@ -464,10 +839,19 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3354b9ac3fae1ff6755cb6db53683adb661634f67557942dea4facebec0fee4b" [[package]] -name = "unicode-segmentation" -version = "1.11.0" +name = "unicode-normalization" +version = "0.1.24" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5033c97c4262335cded6d6fc3e5c18ab755e1a3dc96376350f3d8e9f009ad956" +dependencies = [ + "tinyvec", +] + +[[package]] +name = "unicode-properties" +version = "0.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d4c87d22b6e3f4a18d4d40ef354e97c90fcb14dd91d7dc0aa9d8a1172ebf7202" +checksum = "e70f2a8b45122e719eb623c01822704c4e0907e7e426a05927e1a1cfff5b75d0" [[package]] name = "unicode-xid" @@ -475,6 +859,16 @@ version = "0.2.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f962df74c8c05a667b5ee8bcf162993134c104e96440b663c8daa176dc772d8c" +[[package]] +name = "uuid" +version = "1.18.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f33196643e165781c20a5ead5582283a7dacbb87855d867fbc2df3f81eddc1be" +dependencies = [ + "js-sys", + "wasm-bindgen", +] + [[package]] name = "version_check" version = "0.9.4" @@ -482,98 +876,232 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f" [[package]] -name = "wasm-encoder" -version = "0.38.1" +name = "wasi" +version = "0.13.1+wasi-0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2f43d1c36145feb89a3e61aa0ba3e582d976a8ab77f1474aa0adb80800fe0cf8" +dependencies = [ + "wit-bindgen-rt 0.24.0", +] + +[[package]] +name = "wasi" +version = "0.14.3+wasi-0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6a51ae83037bdd272a9e28ce236db8c07016dd0d50c27038b3f407533c030c95" +dependencies = [ + "wit-bindgen 0.45.0", +] + +[[package]] +name = "wasm-bindgen" +version = "0.2.100" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1edc8929d7499fc4e8f0be2262a241556cfc54a0bea223790e71446f2aab1ef5" +dependencies = [ + "cfg-if", + "once_cell", + "rustversion", + "wasm-bindgen-macro", +] + +[[package]] +name = "wasm-bindgen-backend" +version = "0.2.100" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2f0a0651a5c2bc21487bde11ee802ccaf4c51935d0d3d42a6101f98161700bc6" +dependencies = [ + "bumpalo", + "log", + "proc-macro2", + "quote", + "syn 2.0.106", + "wasm-bindgen-shared", +] + +[[package]] +name = "wasm-bindgen-macro" +version = "0.2.100" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0ad2b51884de9c7f4fe2fd1043fccb8dcad4b1e29558146ee57a144d15779f3f" +checksum = "7fe63fc6d09ed3792bd0897b314f53de8e16568c2b3f7982f468c0bf9bd0b407" dependencies = [ - "leb128", + "quote", + "wasm-bindgen-macro-support", +] + +[[package]] +name = "wasm-bindgen-macro-support" +version = "0.2.100" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8ae87ea40c9f689fc23f209965b6fb8a99ad69aeeb0231408be24920604395de" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.106", + "wasm-bindgen-backend", + "wasm-bindgen-shared", +] + +[[package]] +name = "wasm-bindgen-shared" +version = "0.2.100" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1a05d73b933a847d6cccdda8f838a22ff101ad9bf93e33684f39c1f5f0eece3d" +dependencies = [ + "unicode-ident", ] [[package]] name = "wasm-encoder" -version = "0.41.2" +version = "0.235.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "972f97a5d8318f908dded23594188a90bcd09365986b1163e66d70170e5287ae" +checksum = "b3bc393c395cb621367ff02d854179882b9a351b4e0c93d1397e6090b53a5c2a" dependencies = [ - "leb128", + "leb128fmt", + "wasmparser", ] [[package]] name = "wasm-metadata" -version = "0.10.20" +version = "0.235.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "18ebaa7bd0f9e7a5e5dd29b9a998acf21c4abed74265524dd7e85934597bfb10" +checksum = "b055604ba04189d54b8c0ab2c2fc98848f208e103882d5c0b984f045d5ea4d20" dependencies = [ "anyhow", "indexmap", - "serde", - "serde_derive", - "serde_json", - "spdx", - "wasm-encoder 0.41.2", - "wasmparser 0.121.2", + "wasm-encoder", + "wasmparser", ] [[package]] name = "wasmparser" -version = "0.118.2" +version = "0.235.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "77f1154f1ab868e2a01d9834a805faca7bf8b50d041b4ca714d005d0dab1c50c" +checksum = "161296c618fa2d63f6ed5fffd1112937e803cb9ec71b32b01a76321555660917" dependencies = [ + "bitflags", + "hashbrown", "indexmap", "semver", ] [[package]] -name = "wasmparser" -version = "0.121.2" +name = "windows-core" +version = "0.61.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9dbe55c8f9d0dbd25d9447a5a889ff90c0cc3feaa7395310d3d826b2c703eaab" +checksum = "c0fdd3ddb90610c7638aa2b3a3ab2904fb9e5cdbecc643ddb3647212781c4ae3" dependencies = [ - "bitflags", - "indexmap", - "semver", + "windows-implement", + "windows-interface", + "windows-link", + "windows-result", + "windows-strings", +] + +[[package]] +name = "windows-implement" +version = "0.60.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a47fddd13af08290e67f4acabf4b459f647552718f683a7b415d290ac744a836" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.106", +] + +[[package]] +name = "windows-interface" +version = "0.59.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bd9211b69f8dcdfa817bfd14bf1c97c9188afa36f4750130fcdf3f400eca9fa8" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.106", +] + +[[package]] +name = "windows-link" +version = "0.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5e6ad25900d524eaabdbbb96d20b4311e1e7ae1699af4fb28c17ae66c80d798a" + +[[package]] +name = "windows-result" +version = "0.3.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "56f42bd332cc6c8eac5af113fc0c1fd6a8fd2aa08a0119358686e5160d0586c6" +dependencies = [ + "windows-link", +] + +[[package]] +name = "windows-strings" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "56e6c93f3a0c3b36176cb1327a4958a0353d5d166c2a35cb268ace15e91d3b57" +dependencies = [ + "windows-link", ] [[package]] name = "wit-bindgen" -version = "0.16.0" +version = "0.43.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b76f1d099678b4f69402a421e888bbe71bf20320c2f3f3565d0e7484dbe5bc20" +checksum = "9a18712ff1ec5bd09da500fe1e91dec11256b310da0ff33f8b4ec92b927cf0c6" dependencies = [ - "bitflags", + "wit-bindgen-rt 0.43.0", "wit-bindgen-rust-macro", ] +[[package]] +name = "wit-bindgen" +version = "0.45.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "052283831dbae3d879dc7f51f3d92703a316ca49f91540417d38591826127814" + [[package]] name = "wit-bindgen-core" -version = "0.16.0" +version = "0.43.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "75d55e1a488af2981fb0edac80d8d20a51ac36897a1bdef4abde33c29c1b6d0d" +checksum = "2c53468e077362201de11999c85c07c36e12048a990a3e0d69da2bd61da355d0" dependencies = [ "anyhow", - "wit-component", + "heck", "wit-parser", ] [[package]] name = "wit-bindgen-rt" -version = "0.26.0" +version = "0.24.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3b0780cf7046630ed70f689a098cd8d56c5c3b22f2a7379bbdb088879963ff96" +dependencies = [ + "bitflags", +] + +[[package]] +name = "wit-bindgen-rt" +version = "0.43.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "29c7526379ace8709ee9ab9f2bb50f112d95581063a59ef3097d9c10153886c9" +checksum = "9fd734226eac1fd7c450956964e3a9094c9cee65e9dafdf126feef8c0096db65" dependencies = [ "bitflags", + "futures", + "once_cell", ] [[package]] name = "wit-bindgen-rust" -version = "0.16.0" +version = "0.43.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a01ff9cae7bf5736750d94d91eb8a49f5e3a04aff1d1a3218287d9b2964510f8" +checksum = "531ebfcec48e56473805285febdb450e270fa75b2dacb92816861d0473b4c15f" dependencies = [ "anyhow", "heck", + "indexmap", + "prettyplease", + "syn 2.0.106", "wasm-metadata", "wit-bindgen-core", "wit-component", @@ -581,24 +1109,24 @@ dependencies = [ [[package]] name = "wit-bindgen-rust-macro" -version = "0.16.0" +version = "0.43.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "804a98e2538393d47aa7da65a7348116d6ff403b426665152b70a168c0146d49" +checksum = "7852bf8a9d1ea80884d26b864ddebd7b0c7636697c6ca10f4c6c93945e023966" dependencies = [ "anyhow", + "prettyplease", "proc-macro2", "quote", - "syn 2.0.66", + "syn 2.0.106", "wit-bindgen-core", "wit-bindgen-rust", - "wit-component", ] [[package]] name = "wit-component" -version = "0.18.2" +version = "0.235.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5b8a35a2a9992898c9d27f1664001860595a4bc99d32dd3599d547412e17d7e2" +checksum = "64a57a11109cc553396f89f3a38a158a97d0b1adaec113bd73e0f64d30fb601f" dependencies = [ "anyhow", "bitflags", @@ -607,17 +1135,17 @@ dependencies = [ "serde", "serde_derive", "serde_json", - "wasm-encoder 0.38.1", + "wasm-encoder", "wasm-metadata", - "wasmparser 0.118.2", + "wasmparser", "wit-parser", ] [[package]] name = "wit-parser" -version = "0.13.2" +version = "0.235.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "316b36a9f0005f5aa4b03c39bc3728d045df136f8c13a73b7db4510dec725e08" +checksum = "0a1f95a87d03a33e259af286b857a95911eb46236a0f726cbaec1227b3dfc67a" dependencies = [ "anyhow", "id-arena", @@ -628,4 +1156,25 @@ dependencies = [ "serde_derive", "serde_json", "unicode-xid", + "wasmparser", +] + +[[package]] +name = "zerocopy" +version = "0.8.26" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1039dd0d3c310cf05de012d8a39ff557cb0d23087fd44cad61df08fc31907a2f" +dependencies = [ + "zerocopy-derive", +] + +[[package]] +name = "zerocopy-derive" +version = "0.8.26" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9ecf5b4cc5364572d7f4c329661bcc82724222973f2cab6f050a4e5c22f75181" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.106", ] diff --git a/examples/async/Cargo.toml b/examples/async/Cargo.toml index 3d003a5..af019a3 100644 --- a/examples/async/Cargo.toml +++ b/examples/async/Cargo.toml @@ -3,15 +3,10 @@ name = "job" version = "0.1.0" edition = "2021" -[package.metadata.component] -package = "component:job" - -[package.metadata.component.dependencies] - [dependencies] anyhow = "1.0.86" -spin-executor = "3.0.1" -spin-sdk = "3.0.1" -wit-bindgen-rt = { version = "0.26.0", features = ["bitflags"] } +spin-executor = "5.0.0" +spin-sdk = "5.0.0" +wit-bindgen-rt = { version = "0.43.0", features = ["bitflags"] } [workspace] diff --git a/examples/async/README.md b/examples/async/README.md index 705b23f..57e6eca 100644 --- a/examples/async/README.md +++ b/examples/async/README.md @@ -20,8 +20,7 @@ You need to have the following installed on your machine: - Latest `spin` CLI - The `command` trigger plugin -- Rust must be installed on your machine and the `wasm32-wasi` target - - `cargo-component` +- Rust must be installed on your machine and the `wasm32-wasip2` target ## Compiling and running the sample diff --git a/examples/async/spin.toml b/examples/async/spin.toml index 4a6165e..af5e2ea 100644 --- a/examples/async/spin.toml +++ b/examples/async/spin.toml @@ -10,6 +10,6 @@ description = "" component = "job" [component.job] -source = "target/wasm32-wasip1/release/job.wasm" +source = "target/wasm32-wasip2/release/job.wasm" allowed_outbound_hosts = ["https://myip.fermyon.app/"] -build = ["cargo component build --target wasm32-wasip1 --release"] +build = ["cargo build --target wasm32-wasip2 --release"] diff --git a/examples/hello-world/Cargo.lock b/examples/hello-world/Cargo.lock index 361add6..97d9d0d 100644 --- a/examples/hello-world/Cargo.lock +++ b/examples/hello-world/Cargo.lock @@ -1,6 +1,6 @@ # This file is automatically @generated by Cargo. # It is not intended for manual editing. -version = 3 +version = 4 [[package]] name = "bitflags" @@ -18,6 +18,6 @@ dependencies = [ [[package]] name = "wit-bindgen-rt" -version = "0.24.0" +version = "0.43.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3b0780cf7046630ed70f689a098cd8d56c5c3b22f2a7379bbdb088879963ff96" +checksum = "9fd734226eac1fd7c450956964e3a9094c9cee65e9dafdf126feef8c0096db65" diff --git a/examples/hello-world/Cargo.toml b/examples/hello-world/Cargo.toml index dd20c1f..90848b2 100644 --- a/examples/hello-world/Cargo.toml +++ b/examples/hello-world/Cargo.toml @@ -5,13 +5,6 @@ name = "hello_world" version = "0.1.0" edition = "2021" -[package.metadata.component] -package = "component:command" - -[package.metadata.component.dependencies] - -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html - [dependencies] bitflags = "2.5.0" -wit-bindgen-rt = "0.24.0" +wit-bindgen-rt = "0.43.0" diff --git a/examples/hello-world/spin.toml b/examples/hello-world/spin.toml index 2ba46ba..727feeb 100644 --- a/examples/hello-world/spin.toml +++ b/examples/hello-world/spin.toml @@ -10,5 +10,5 @@ version = "0.1.0" component = "hello-world" [component.hello-world] -source = "target/wasm32-wasip1/release/hello_world.wasm" -build = ["cargo component build --target wasm32-wasip1 --release"] +source = "target/wasm32-wasip2/release/hello_world.wasm" +build = ["cargo build --target wasm32-wasip2 --release"] diff --git a/spin-pluginify.toml b/spin-pluginify.toml index abb916c..92ecfc5 100644 --- a/spin-pluginify.toml +++ b/spin-pluginify.toml @@ -1,6 +1,6 @@ name = "trigger-command" description = "A Spin trigger that executes the WASI main function of a component." -version = "0.4.0" +version = "0.4.1" spin_compatibility = ">=2.0" license = "Apache-2.0" package = "./target/release/trigger-command" diff --git a/templates/command-rust/content/Cargo.toml.tmpl b/templates/command-rust/content/Cargo.toml.tmpl index 7749e6a..702d066 100644 --- a/templates/command-rust/content/Cargo.toml.tmpl +++ b/templates/command-rust/content/Cargo.toml.tmpl @@ -5,15 +5,10 @@ description = "{{project-description}}" version = "0.1.0" edition = "2021" -[package.metadata.component] -package = "component:{{project-name | kebab_case}}" - -[package.metadata.component.dependencies] - [dependencies] anyhow = "1" -spin-sdk = "3.0.1" -spin-executor = "3.0.1" -wit-bindgen-rt = { version = "0.34.0", features = ["bitflags"] } +spin-sdk = "5.0.0" +spin-executor = "5.0.0" +wit-bindgen-rt = { version = "0.43.0", features = ["bitflags"] } [workspace] diff --git a/templates/command-rust/content/spin.toml b/templates/command-rust/content/spin.toml index 7252c62..cebfada 100644 --- a/templates/command-rust/content/spin.toml +++ b/templates/command-rust/content/spin.toml @@ -10,9 +10,9 @@ description = "{{project-description}}" component = "{{project-name | kebab_case}}" [component.{{project-name | kebab_case}}] -source = "target/wasm32-wasi/release/{{project-name | kebab_case}}.wasm" +source = "target/wasm32-wasip2/release/{{project-name | kebab_case}}.wasm" allowed_outbound_hosts = [] [component.{{project-name | kebab_case}}.build] -command = "cargo component build --target wasm32-wasi --release" +command = "cargo build --target wasm32-wasip2 --release" watch = ["src/**/*.rs", "Cargo.toml"] diff --git a/templates/command-rust/content/src/main.rs b/templates/command-rust/content/src/main.rs index d89072f..0672e51 100644 --- a/templates/command-rust/content/src/main.rs +++ b/templates/command-rust/content/src/main.rs @@ -1,3 +1,3 @@ fn main() { - println!("Hello, Fermyon!"); + println!("Hello, World!"); } diff --git a/templates/command-rust/metadata/snippets/component.txt b/templates/command-rust/metadata/snippets/component.txt index d1e6fff..12a6ee8 100644 --- a/templates/command-rust/metadata/snippets/component.txt +++ b/templates/command-rust/metadata/snippets/component.txt @@ -6,6 +6,6 @@ source = "{{ output-path }}/target/wasm32-wasi/release/{{project-name | kebab_ca allowed_outbound_hosts = [] [component.{{project-name | kebab_case}}.build] -command = "cargo component build --target wasm32-wasi --release" +command = "cargo build --target wasm32-wasip2 --release" workdir = "{{ output-path }}" watch = ["src/**/*.rs", "Cargo.toml"]