Skip to content

Commit

Permalink
use wasm-tools-go from bytecodealliance repo
Browse files Browse the repository at this point in the history
Signed-off-by: Rajat Jindal <[email protected]>
  • Loading branch information
rajatjindal committed Sep 21, 2024
1 parent b2502bf commit cb3739a
Show file tree
Hide file tree
Showing 69 changed files with 71 additions and 71 deletions.
2 changes: 1 addition & 1 deletion v2/examples/http/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ go 1.22.6
require github.com/fermyon/spin-go-sdk/v2 v2.0.0

require (
github.com/bytecodealliance/wasm-tools-go v0.2.0 // indirect
github.com/julienschmidt/httprouter v1.3.0 // indirect
github.com/ydnar/wasm-tools-go v0.1.5 // indirect
)

replace github.com/fermyon/spin-go-sdk/v2 => ../../
4 changes: 2 additions & 2 deletions v2/examples/http/go.sum
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
github.com/bytecodealliance/wasm-tools-go v0.2.0 h1:JdmiZew7ewHjf+ZGGRE4gZM85Ad/PGW/5I57hepEOjQ=
github.com/bytecodealliance/wasm-tools-go v0.2.0/go.mod h1:2GnJCUlcDrslZ/L6+yYqoUnewDlBvqRS2N/0NW9ro6w=
github.com/julienschmidt/httprouter v1.3.0 h1:U0609e9tgbseu3rBINet9P48AI/D3oJs4dN7jwJOQ1U=
github.com/julienschmidt/httprouter v1.3.0/go.mod h1:JR6WtHb+2LUe8TCKY3cZOxFyyO8IZAc4RVcycCCAKdM=
github.com/ydnar/wasm-tools-go v0.1.5 h1:ah2WT4gH0IrmN29ZSsjgNC9SPsdXZ+KN+o9uTZqNVSI=
github.com/ydnar/wasm-tools-go v0.1.5/go.mod h1:L3sDi5rbAMJNmMO5cpDRzYYhB0r9xIU0xgpKjwU0Adg=
2 changes: 1 addition & 1 deletion v2/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ module github.com/fermyon/spin-go-sdk/v2
go 1.22.6

require (
github.com/bytecodealliance/wasm-tools-go v0.2.0
github.com/julienschmidt/httprouter v1.3.0
github.com/ydnar/wasm-tools-go v0.1.5
)
4 changes: 2 additions & 2 deletions v2/go.sum
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
github.com/bytecodealliance/wasm-tools-go v0.2.0 h1:JdmiZew7ewHjf+ZGGRE4gZM85Ad/PGW/5I57hepEOjQ=
github.com/bytecodealliance/wasm-tools-go v0.2.0/go.mod h1:2GnJCUlcDrslZ/L6+yYqoUnewDlBvqRS2N/0NW9ro6w=
github.com/julienschmidt/httprouter v1.3.0 h1:U0609e9tgbseu3rBINet9P48AI/D3oJs4dN7jwJOQ1U=
github.com/julienschmidt/httprouter v1.3.0/go.mod h1:JR6WtHb+2LUe8TCKY3cZOxFyyO8IZAc4RVcycCCAKdM=
github.com/ydnar/wasm-tools-go v0.1.5 h1:ah2WT4gH0IrmN29ZSsjgNC9SPsdXZ+KN+o9uTZqNVSI=
github.com/ydnar/wasm-tools-go v0.1.5/go.mod h1:L3sDi5rbAMJNmMO5cpDRzYYhB0r9xIU0xgpKjwU0Adg=
2 changes: 1 addition & 1 deletion v2/http/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import (
"io"
"net/http"

"github.com/bytecodealliance/wasm-tools-go/cm"
outgoinghandler "github.com/fermyon/spin-go-sdk/v2/internal/wasi/http/v0.2.0/outgoing-handler"
"github.com/fermyon/spin-go-sdk/v2/internal/wasi/http/v0.2.0/types"
"github.com/ydnar/wasm-tools-go/cm"
)

// NewTransport returns http.RoundTripper backed by Spin SDK
Expand Down
2 changes: 1 addition & 1 deletion v2/http/convertor_incoming_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"io"
"net/http"

"github.com/bytecodealliance/wasm-tools-go/cm"
"github.com/fermyon/spin-go-sdk/v2/internal/wasi/http/v0.2.0/types"
"github.com/ydnar/wasm-tools-go/cm"
)

type IncomingRequest = types.IncomingRequest
Expand Down
2 changes: 1 addition & 1 deletion v2/http/convertor_outgoing_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package http
import (
"net/http"

"github.com/bytecodealliance/wasm-tools-go/cm"
"github.com/fermyon/spin-go-sdk/v2/internal/wasi/http/v0.2.0/types"
"github.com/ydnar/wasm-tools-go/cm"
)

// convert the IncomingRequest to http.Request
Expand Down
2 changes: 1 addition & 1 deletion v2/http/convertor_outgoing_response.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import (
"net/http"
"strings"

"github.com/bytecodealliance/wasm-tools-go/cm"
"github.com/fermyon/spin-go-sdk/v2/internal/wasi/http/v0.2.0/types"
"github.com/fermyon/spin-go-sdk/v2/internal/wasi/io/v0.2.0/streams"
"github.com/ydnar/wasm-tools-go/cm"
)

var _ http.ResponseWriter = &responseOutparamWriter{}
Expand Down
2 changes: 1 addition & 1 deletion v2/http/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ import (
"net/http"
"os"

"github.com/bytecodealliance/wasm-tools-go/cm"
incominghandler "github.com/fermyon/spin-go-sdk/v2/internal/wasi/http/v0.2.0/incoming-handler"
"github.com/fermyon/spin-go-sdk/v2/internal/wasi/http/v0.2.0/types"
"github.com/fermyon/spin-go-sdk/v2/wit"
"github.com/julienschmidt/httprouter"
"github.com/ydnar/wasm-tools-go/cm"
)

// force wit files to be shipped with sdk dependency
Expand Down
2 changes: 1 addition & 1 deletion v2/internal/fermyon/spin/config/config.wit.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion v2/internal/fermyon/spin/http-types/http-types.wit.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion v2/internal/fermyon/spin/http/abi.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion v2/internal/fermyon/spin/http/http.wit.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion v2/internal/fermyon/spin/inbound-http/abi.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion v2/internal/fermyon/spin/key-value/key-value.wit.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion v2/internal/fermyon/spin/llm/abi.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion v2/internal/fermyon/spin/llm/llm.wit.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion v2/internal/fermyon/spin/mysql/mysql.wit.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion v2/internal/fermyon/spin/postgres/postgres.wit.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion v2/internal/fermyon/spin/rdbms-types/rdbms-types.wit.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion v2/internal/fermyon/spin/redis-types/redis-types.wit.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion v2/internal/fermyon/spin/redis/redis.wit.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion v2/internal/fermyon/spin/sqlite/sqlite.wit.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion v2/internal/fermyon/spin/v2.0.0/key-value/abi.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion v2/internal/fermyon/spin/v2.0.0/key-value/key-value.wit.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion v2/internal/fermyon/spin/v2.0.0/llm/abi.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion v2/internal/fermyon/spin/v2.0.0/llm/llm.wit.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion v2/internal/fermyon/spin/v2.0.0/mqtt/mqtt.wit.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion v2/internal/fermyon/spin/v2.0.0/mysql/mysql.wit.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion v2/internal/fermyon/spin/v2.0.0/postgres/postgres.wit.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion v2/internal/fermyon/spin/v2.0.0/redis/abi.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion v2/internal/fermyon/spin/v2.0.0/redis/redis.wit.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion v2/internal/fermyon/spin/v2.0.0/sqlite/sqlite.wit.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion v2/internal/fermyon/spin/v2.0.0/variables/variables.wit.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion v2/internal/wasi/cli/v0.2.0/environment/environment.wit.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion v2/internal/wasi/cli/v0.2.0/exit/exit.wit.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion v2/internal/wasi/cli/v0.2.0/stderr/stderr.wit.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion v2/internal/wasi/cli/v0.2.0/stdin/stdin.wit.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion v2/internal/wasi/cli/v0.2.0/stdout/stdout.wit.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit cb3739a

Please sign in to comment.