module
Version:
v0.2.2-0...-e1f0025
Opens a new window with list of versions in this module.
Published: Aug 9, 2023
License: Apache-2.0
Opens a new window with license information.
README
¶
iscp-proto
iSCPv2のProtocolBuffer
Prerequisite
-
buf
-
npm ※ Typescriptの生成のみ
npm install @bufbuild/protobuf @bufbuild/protoc-gen-es @bufbuild/buf
-
go ※ gogoprotoの生成のみ
go install github.com/gogo/protobuf/protoc-gen-gogofast@v1.3.2
go run github.com/x-motemen/ghq@latest get github.com/gogo/protobuf/gogoproto
Usage
-
gitサブモジュールとして利用します
git submodule add https://github.com/aptpod/iscp-proto.git iscp-proto
# or
git submodule add git@github.com:aptpod/iscp-proto.git iscp-proto
-
プロジェクトのルートにbuf.gen.yaml
を作成します。iscp-proto/buf.gen.yaml
または iscp-proto/buf.gen.gogoproto.yaml
を参考に編集します。
-
コードを生成します。
# ソースコードの生成
buf generate iscp-proto/proto
gen
ディレクトリに生成したコードは配置済みです。
License
Directories
¶
gen
|
|
|
|
|
|
|
|
|
|
Click to show internal directories.
Click to hide internal directories.