Skip to content
Open
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
6 changes: 6 additions & 0 deletions config.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,12 @@
runtime.KeepAlive(cfg)
}

// SetGCSupport enables or disables GC support in Wasmtime entirely.
func (cfg *Config) SetGCSupport(enabled bool) {
C.wasmtime_config_gc_support_set(cfg.ptr(), C.bool(enabled))

Check failure on line 148 in config.go

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest, 1.20.x)

could not determine kind of name for C.wasmtime_config_gc_support_set

Check failure on line 148 in config.go

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest, 1.24.x)

could not determine what C.wasmtime_config_gc_support_set refers to

Check failure on line 148 in config.go

View workflow job for this annotation

GitHub Actions / coverage

could not determine kind of name for C.wasmtime_config_gc_support_set

Check failure on line 148 in config.go

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest, 1.22.x)

could not determine kind of name for C.wasmtime_config_gc_support_set

Check failure on line 148 in config.go

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest, 1.23.x)

could not determine kind of name for C.wasmtime_config_gc_support_set

Check failure on line 148 in config.go

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest, 1.21.x)

could not determine kind of name for C.wasmtime_config_gc_support_set

Check failure on line 148 in config.go

View workflow job for this annotation

GitHub Actions / build (macos-latest, 1.22.x)

could not determine kind of name for C.wasmtime_config_gc_support_set

Check failure on line 148 in config.go

View workflow job for this annotation

GitHub Actions / build (macos-latest, 1.23.x)

could not determine kind of name for C.wasmtime_config_gc_support_set

Check failure on line 148 in config.go

View workflow job for this annotation

GitHub Actions / build (macos-latest, 1.20.x)

could not determine kind of name for C.wasmtime_config_gc_support_set

Check failure on line 148 in config.go

View workflow job for this annotation

GitHub Actions / build (macos-latest, 1.24.x)

could not determine what C.wasmtime_config_gc_support_set refers to

Check failure on line 148 in config.go

View workflow job for this annotation

GitHub Actions / build (macos-latest, 1.21.x)

could not determine kind of name for C.wasmtime_config_gc_support_set

Check failure on line 148 in config.go

View workflow job for this annotation

GitHub Actions / build (windows-2025, 1.24.x)

could not determine what C.wasmtime_config_gc_support_set refers to

Check failure on line 148 in config.go

View workflow job for this annotation

GitHub Actions / build (windows-2025, 1.22.x)

could not determine kind of name for C.wasmtime_config_gc_support_set

Check failure on line 148 in config.go

View workflow job for this annotation

GitHub Actions / build (windows-2025, 1.23.x)

could not determine kind of name for C.wasmtime_config_gc_support_set

Check failure on line 148 in config.go

View workflow job for this annotation

GitHub Actions / build (windows-2025, 1.20.x)

could not determine kind of name for C.wasmtime_config_gc_support_set

Check failure on line 148 in config.go

View workflow job for this annotation

GitHub Actions / build (windows-2025, 1.21.x)

could not determine kind of name for C.wasmtime_config_gc_support_set
runtime.KeepAlive(cfg)
}

// SetWasmComponentModel configures whether the wasm component model proposal is
// enabled.
func (cfg *Config) SetWasmComponentModel(enabled bool) {
Expand Down
1 change: 1 addition & 0 deletions config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ func TestConfig(t *testing.T) {
NewConfig().SetWasmTailCall(true)
NewConfig().SetWasmFunctionReferences(true)
NewConfig().SetWasmGC(true)
NewConfig().SetGCSupport(true)
NewConfig().SetWasmComponentModel(true)
NewConfig().SetWasmWideArithmetic(true)
NewConfig().SetConsumeFuel(true)
Expand Down
Loading