29 lines
764 B
Markdown
29 lines
764 B
Markdown
# rules_wails core
|
|
|
|
Core Bazel rules for Wails applications.
|
|
|
|
Public API:
|
|
|
|
- `wails_toolchain`
|
|
- `wails_build_assets`
|
|
- `wails_generate_bindings`
|
|
- `wails_run`
|
|
- `wails_app`
|
|
|
|
The caller provides a registered toolchain with:
|
|
|
|
- `wails`: an executable target used to invoke Wails.
|
|
- `go`: an executable file used by that Wails wrapper for hermetic `go run` execution.
|
|
|
|
Notes:
|
|
|
|
- Core action helpers are Go binaries.
|
|
- `wails_run` launches the built application but does not build the Go binary for you.
|
|
- `wails_generate_bindings` stages the Bazel package tree so bindings generation runs from the correct module root.
|
|
|
|
Load with:
|
|
|
|
```starlark
|
|
load("@rules_wails//wails:defs.bzl", "wails_build_assets", "wails_generate_bindings", "wails_run", "wails_toolchain")
|
|
```
|