scalapb/zio-grpc
关于
ScalaPB meets ZIO: write purely functional gRPC services and clients using ZIO
开发工具可以做什么
- Supports all types of RPCs (unary, client streaming, server streaming, bidirectional).
- Uses ZIO's Stream to let you easily implement streaming requests.
- Cancellable RPCs: client-side ZIO interruptions are propagated to the server to abort the request and save resources.
实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文
Welcome to ZIO-gRPC
This library enables you to write purely functional gRPC services using ZIO.
Documentation
Highlights
- Supports all types of RPCs (unary, client streaming, server streaming, bidirectional).
- Uses ZIO's
Streamto let you easily implement streaming requests. - Cancellable RPCs: client-side ZIO interruptions are propagated to the server to abort the request and save resources.
Development
The build uses sbt 2.0.10 and requires Java 17 or newer. Scala 3 stays on the 3.3 LTS line. CI tests Scala 2.12, 2.13 and 3.3 on JDK 17, with an additional JDK 21 job. Node 24 and Yarn 1.22.22 are used for JavaScript and documentation builds.
Run nix-shell for the pinned development toolchain (JDK 21), or
nix-shell playwright.nix for the same environment with matching Chromium
binaries. Both use the revision and checksum in nix/nixpkgs.json; update those
together when refreshing Nixpkgs. The Playwright version assertion catches
browser/Java dependency mismatches.
Run .github/workflows/test_examples.sh to publish the checkout under a private
local version and compile/test all examples against it. Ordinary example builds
continue to use the published version declared in their project/plugins.sbt.
For browser integration tests, start Envoy with
docker compose -f examples/fullapp/docker-compose.yaml up -d --wait, then run
npm ci, sbt e2eWebJS2_13/fastLinkJS,
npm run bundle -- --entry ./e2e-web/target/js-2.13/main/main.js --output-path "$PWD/e2e-web/target/js-2.13/bundle",
and sbt e2eWebJVM2_13/testFull inside the Playwright Nix
shell. Outside Nix, first run PLAYWRIGHT_INSTALL_DEPS=true sbt e2eWebJVM2_13/installPlaywright on a supported Linux distribution. Stop Envoy
with docker compose -f examples/fullapp/docker-compose.yaml down afterward.
Replace 2_13 with 2_12 or 3 for the other Scala versions.
Publishing
CI must pass for the exact commit before the reusable release workflow runs.
Pushes to master publish snapshots; v* tags publish releases. Documentation
is deployed from validated master commits in a separate job.
The repository (or organization with access granted to this repository) needs
SONATYPE_USERNAME and SONATYPE_PASSWORD containing a Central Portal user token,
plus PGP_SECRET and PGP_PASSPHRASE for signing. DEPLOY_KEY is the separate
SSH credential for documentation deployment. A successful snapshot publish is
the integration check for the Portal credentials; inspect the publish job and
resolve the resulting artifacts before tagging a release. Snapshots are hosted
at https://central.sonatype.com/repository/maven-snapshots/.
探索相关项目
加载中…