| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| Parent folder | |||
| checksums.txt | 2026-09-09 | 1.1 kB | |
| webrpc-gen.darwin-amd64 | 2026-09-09 | 17.4 MB | |
| webrpc-gen.linux-arm64 | 2026-09-09 | 15.7 MB | |
| webrpc-test.windows-amd64.exe | 2026-09-09 | 9.3 MB | |
| webrpc-gen.linux-amd64 | 2026-09-09 | 16.9 MB | |
| webrpc-test.linux-arm64 | 2026-09-09 | 8.5 MB | |
| webrpc-test.darwin-amd64 | 2026-09-09 | 9.2 MB | |
| webrpc-test.darwin-arm64 | 2026-09-09 | 8.7 MB | |
| webrpc-test.linux-amd64 | 2026-09-09 | 9.1 MB | |
| webrpc-gen.darwin-arm64 | 2026-09-09 | 16.4 MB | |
| webrpc-gen.windows-amd64.exe | 2026-09-09 | 17.5 MB | |
| webrpc-gen.windows-arm64.exe | 2026-09-09 | 16.1 MB | |
| webrpc-test.windows-arm64.exe | 2026-09-09 | 8.6 MB | |
| README.md | 2026-09-09 | 2.4 kB | |
| v0.47.0 source code.tar.gz | 2026-09-09 | 800.3 kB | |
| v0.47.0 source code.zip | 2026-09-09 | 911.1 kB | |
| Totals: 16 Items | 155.2 MB | 0 | |
Go package
go get github.com/webrpc/webrpc@v0.47.0
What's Changed
- Support + json meta on integer-backed enum values by @david-littlefarmer in https://github.com/webrpc/webrpc/pull/513
Custom string values on integer-backed
An integer-backed enum can override its JSON string representation over the wire with + json -- the same syntax struct fields support.
enum Kind: uint32
- User
+ json = USER
- Admin
+ json = ADMIN
Generates (Go):
:::go
type Kind uint32
const (
KindUser Kind = 0
KindAdmin Kind = 1
)
var Kind_name = map[Kind]string{
KindUser: "USER",
KindAdmin: "ADMIN",
}
:::go
json.Marshal(KindAdmin) // -> "ADMIN"
uint32(KindAdmin) // -> 1
Storage stays a plain uint32 (indexable as SMALLINT etc.); the wire/JSON form is whatever string + json says.
Without + json, nothing changes — falls back to the field's own name, same as before.
+ json on a string enum is now a schema error: its = "value" is already the wire string, so the annotation would be redundant.
Full Changelog: https://github.com/webrpc/webrpc/compare/v0.46.1...v0.47.0
Docker
docker pull ghcr.io/webrpc/webrpc-gen:v0.47.0
Example: docker run -v $PWD:$PWD ghcr.io/webrpc/webrpc-gen:v0.47.0 -schema=$PWD/api.ridl -target=golang
Homebrew
brew tap webrpc/tap
brew install webrpc-gen
Build from source
go install -ldflags="-s -w -X github.com/webrpc/webrpc.VERSION=v0.47.0" github.com/webrpc/webrpc/cmd/webrpc-gen@v0.47.0
Download binaries
macOS: amd64, arm64 (Apple Silicon) Linux: amd64, arm64 Windows: amd64, arm64