protoc_gen_ets

Crates.ioprotoc_gen_ets
lib.rsprotoc_gen_ets
version0.1.1
sourcesrc
created_at2024-11-12 03:50:30.618753
updated_at2024-11-12 03:50:30.618753
descriptiona ts, ets generator for protobuf via protoc
homepage
repositoryhttps://github.com/lark/protoc-gen-ets
max_upload_size
id1444513
size21,946,984
Xana Hopper (xanahopper)

documentation

README

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
Commit count: 0

cargo fmt