https://github.com/aptpod/iscp-proto
https://github.com/aptpod/iscp-proto
Last synced: 10 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/aptpod/iscp-proto
- Owner: aptpod
- License: apache-2.0
- Created: 2022-09-21T08:09:22.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-08-09T02:20:06.000Z (almost 3 years ago)
- Last Synced: 2025-03-01T17:32:47.052Z (over 1 year ago)
- Language: C#
- Size: 438 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# iscp-proto
iSCPv2のProtocolBuffer
## Prerequisite
- [buf](https://github.com/bufbuild/buf)
- [npm](https://www.npmjs.com/) ※ Typescriptの生成のみ
```bash
npm install @bufbuild/protobuf @bufbuild/protoc-gen-es @bufbuild/buf
```
- [go](https://go.dev/) ※ gogoprotoの生成のみ
```bash
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
1. gitサブモジュールとして利用します
```bash
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
```
2. プロジェクトのルートに`buf.gen.yaml` を作成します。`iscp-proto/buf.gen.yaml` または `iscp-proto/buf.gen.gogoproto.yaml` を参考に編集します。
3. コードを生成します。
```bash
# ソースコードの生成
buf generate iscp-proto/proto
```
`gen` ディレクトリに生成したコードは配置済みです。
## License