Skip to content

protoc plugin for ArkTS, Compile .proto files to plain ArkTS

License

Notifications You must be signed in to change notification settings

larksuite/protoc-gen-ets

Repository files navigation

Protoc Gen ArkTS

!NOTE Forked from protoc-gen-ts

Compile .proto files to plain ArkTS. Supports concurrent with @Sendable on codec classes.

Run with @ohos/protobufjs

Features

  • Passes all required conformance tests
  • Supports ArkTS(ets) with @Sendable for concurrent
  • Supports well-known types
  • Supports json encoding (toJson, fromJson)
  • Supports binary encoding (toBinary, fromBinary)
  • Optimized for [de]serialization speed.

Usage

npm install -g @larkoh/protoc-gen-ets

Protoc

protoc -I=sourcedir --ets_out=dist myproto.proto --ets_opt="namespace_as_file=true,export_indcies=true,bigint_as_long=true"

Development

./infra/test.sh

About

protoc plugin for ArkTS, Compile .proto files to plain ArkTS

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages