Skip to content

Commit 71f1982

Browse files
committedApr 25, 2024
Embbed dart client into webrpc-gen
https://github.com/webrpc/gen-dart/releases/tag/v0.1.1 Kudos to @austinmilt for implementing webrpc/gen-dart#3.
1 parent 0d54fed commit 71f1982

File tree

4 files changed

+7
-1
lines changed

4 files changed

+7
-1
lines changed
 

‎README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ plugin for RIDL synx highlighting.
4646
| [typescript](https://github.com/webrpc/gen-typescript) | TypeScript | v1 |||
4747
| [javascript](https://github.com/webrpc/gen-javascript) | JavaScript (ES6) | v1 |||
4848
| [kotlin](https://github.com/webrpc/gen-kotlin) | Kotlin (coroutines, moshi, ktor) | v1 || |
49-
| [openapi](https://github.com/webrpc/gen-openapi) | OpenAPI 3.x (Swagger) | v1 |[*](https://github.com/swagger-api/swagger-codegen#overview) |[*](https://github.com/swagger-api/swagger-codegen#overview) |
49+
| [dart](https://github.com/webrpc/gen-dart) | Dart 3.1+ | v1 || |
50+
| [openapi](https://github.com/webrpc/gen-openapi) | OpenAPI 3.x (Swagger) | v1 |[*](https://github.com/swagger-api/swagger-codegen#overview) |[*](https://github.com/swagger-api/swagger-codegen#overview) |
5051

5152
..contribute more! [webrpc generators](./gen/) are just Go templates (similar to [Hugo](https://gohugo.io/templates/) or [Helm](https://helm.sh/docs/chart_best_practices/templates/)).
5253

‎gen/embed.go

+2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import (
99

1010
"github.com/webrpc/webrpc"
1111

12+
dart "github.com/webrpc/gen-dart"
1213
golang "github.com/webrpc/gen-golang"
1314
javascript "github.com/webrpc/gen-javascript"
1415
kotlin "github.com/webrpc/gen-kotlin"
@@ -27,6 +28,7 @@ var embeddedTargetFS = map[string]embed.FS{
2728
"javascript": javascript.FS,
2829
"openapi": openapi.FS,
2930
"kotlin": kotlin.FS,
31+
"dart": dart.FS,
3032
}
3133

3234
// The values are computed in init() function based on go.mod file.

‎go.mod

+1
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ require (
4747
github.com/shopspring/decimal v1.4.0 // indirect
4848
github.com/spf13/cast v1.6.0 // indirect
4949
github.com/src-d/gcfg v1.4.0 // indirect
50+
github.com/webrpc/gen-dart v0.1.1 // indirect
5051
github.com/xanzy/ssh-agent v0.3.3 // indirect
5152
golang.org/x/crypto v0.22.0 // indirect
5253
golang.org/x/mod v0.17.0 // indirect

‎go.sum

+2
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,8 @@ github.com/stretchr/testify v1.8.1 h1:w7B6lhMri9wdJUVmEZPGGhZzrYTPvgJArz7wNPgYKs
119119
github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4=
120120
github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg=
121121
github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
122+
github.com/webrpc/gen-dart v0.1.1 h1:PZh5oNNdA84Qxu8ixKDf1cT8Iv6t0g7x6q9aeX1bti4=
123+
github.com/webrpc/gen-dart v0.1.1/go.mod h1:yq0ThW3ANNulJLyR50jx1aZMEVBDp19VUHucK65ayPs=
122124
github.com/webrpc/gen-golang v0.14.3 h1:u09JwsDxV+7tDf8GXQWI2xI+uqrI5tyrV9QAGHcdbnc=
123125
github.com/webrpc/gen-golang v0.14.3/go.mod h1:qy1qEWMlTvrRzjSuQLy+176RqNaX1ymUULDtlo7Dapo=
124126
github.com/webrpc/gen-golang v0.14.4 h1:2H91MBdudc0IVbde6yB6SulK8qawMGj0gy6k587i8EE=

0 commit comments

Comments
 (0)
Please sign in to comment.