File tree Expand file tree Collapse file tree 6 files changed +0
-46
lines changed
wasm_plugin_sqlc_gen_greeter
wasm_plugin_sqlc_gen_test Expand file tree Collapse file tree 6 files changed +0
-46
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,6 @@ type Exec struct {
22
22
Contexts []string `json:"contexts"`
23
23
Process string `json:"process"`
24
24
OS []string `json:"os"`
25
- WASM bool `json:"wasm"`
26
25
Env map [string ]string `json:"env"`
27
26
}
28
27
Original file line number Diff line number Diff line change @@ -16,7 +16,6 @@ import (
16
16
17
17
"github.com/sqlc-dev/sqlc/internal/cmd"
18
18
"github.com/sqlc-dev/sqlc/internal/config"
19
- "github.com/sqlc-dev/sqlc/internal/ext/wasm"
20
19
"github.com/sqlc-dev/sqlc/internal/opts"
21
20
)
22
21
@@ -177,10 +176,6 @@ func TestReplay(t *testing.T) {
177
176
}
178
177
}
179
178
180
- if args .WASM && ! wasm .Enabled () {
181
- t .Skipf ("wasm support not enabled" )
182
- }
183
-
184
179
if len (args .OS ) > 0 {
185
180
if ! slices .Contains (args .OS , runtime .GOOS ) {
186
181
t .Skipf ("unsupported os: %s" , runtime .GOOS )
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
- //go:build !nowasm && cgo && ((linux && amd64) || (linux && arm64) || (darwin && amd64) || (darwin && arm64) || (windows && amd64))
2
-
3
- // The above build constraint is based of the cgo directives in this file:
4
- // https://github.com/bytecodealliance/wasmtime-go/blob/main/ffi.go
5
1
package wasm
6
2
7
3
import (
@@ -33,13 +29,6 @@ import (
33
29
"github.com/sqlc-dev/sqlc/internal/plugin"
34
30
)
35
31
36
- func Enabled () bool {
37
- return true
38
- }
39
-
40
- // This version must be updated whenever the wasmtime-go dependency is updated
41
- const wasmtimeVersion = `v14.0.0`
42
-
43
32
func cacheDir () (string , error ) {
44
33
cache := os .Getenv ("SQLCCACHE" )
45
34
if cache != "" {
You can’t perform that action at this time.
0 commit comments