|
|
10 miesięcy temu | |
|---|---|---|
| .github | 11 miesięcy temu | |
| Examples | 11 miesięcy temu | |
| IntegrationTests | 1 rok temu | |
| Sources | 10 miesięcy temu | |
| Tests | 10 miesięcy temu | |
| dev | 11 miesięcy temu | |
| .editorconfig | 1 rok temu | |
| .gitignore | 2 lat temu | |
| .gitmodules | 9 lat temu | |
| .license_header_template | 1 rok temu | |
| .licenseignore | 11 miesięcy temu | |
| .spi.yml | 1 rok temu | |
| .swift-format | 2 lat temu | |
| .swiftformatignore | 1 rok temu | |
| .unacceptablelanguageignore | 1 rok temu | |
| CODE-OF-CONDUCT.md | 1 rok temu | |
| CONTRIBUTING.md | 1 rok temu | |
| GOVERNANCE.md | 1 rok temu | |
| LICENSE | 6 lat temu | |
| MAINTAINERS.md | 1 rok temu | |
| NOTICES.txt | 1 rok temu | |
| Package.swift | 1 rok temu | |
| README.md | 11 miesięcy temu | |
| SECURITY.md | 4 lat temu |
This repository contains a gRPC implementation for Swift. You can read more about gRPC on the gRPC project's website.
gRPC Swift v2.x is under active development on the
mainbranch and takes full advantage of Swift's native concurrency features.v1.x is still supported and maintained on the
release/1.xbranch.
grpc-swift-nio-transport contains high-performance HTTP/2 client and server transport implementations for gRPC Swift built on top of SwiftNIO.grpc-swift-protobuf contains integrations with SwiftProtobuf for gRPC Swift.grpc-swift-extras contains optional extras for gRPC Swift.The following snippet contains a Swift Package manifest to use gRPC Swift v2.x with the SwiftNIO based transport and SwiftProtobuf serialization:
// swift-tools-version: 6.0
import PackageDescription
let package = Package(
name: "foo-package",
platforms: [.macOS("15.0")],
dependencies: [
.package(url: "https://github.com/grpc/grpc-swift.git", from: "2.0.0-beta.2"),
.package(url: "https://github.com/grpc/grpc-swift-nio-transport.git", from: "1.0.0-beta.2"),
.package(url: "https://github.com/grpc/grpc-swift-protobuf.git", from: "1.0.0-beta.2"),
],
targets: [
.executableTarget(
name: "bar-target",
dependencies: [
.product(name: "GRPCCore", package: "grpc-swift"),
.product(name: "GRPCNIOTransportHTTP2", package: "grpc-swift-nio-transport"),
.product(name: "GRPCProtobuf", package: "grpc-swift-protobuf"),
]
)
]
)