1cf4374f95 | ||
---|---|---|
.. | ||
lib | ||
src | ||
test | ||
.c8rc.json | ||
.eslintrc.cjs | ||
.gitignore | ||
.mocharc.yaml | ||
CHANGELOG.json | ||
LICENSE | ||
README.md | ||
package.json | ||
tsconfig.json |
README.md
TypeSpec Protobuf library and emitter
Warning ⚠️: This pre-release emitter is in active development and may change. Your feedback is highly appreciated.
This package provides support for defining and emitting Protobuf specifications in TypeSpec and an emitter that generates Protobuf output files from TypeSpec sources.
Install
In your project root:
npm install @typespec/protobuf
Using the Protobuf emitter
- Using the TypeSpec CLI (
tsp
):
tsp compile . --emit @typespec/protobuf
- Using the TypeSpec project configuration file:
Add the following to your tspproject.yaml
file.
emit:
- "@typespec/protobuf"