|
|
10 mesiacov pred | |
|---|---|---|
| .github | 11 mesiacov pred | |
| Examples | 10 mesiacov pred | |
| IntegrationTests | 1 rok pred | |
| Sources | 10 mesiacov pred | |
| Tests | 10 mesiacov pred | |
| dev | 10 mesiacov pred | |
| .editorconfig | 1 rok pred | |
| .gitignore | 2 rokov pred | |
| .gitmodules | 9 rokov pred | |
| .license_header_template | 1 rok pred | |
| .licenseignore | 11 mesiacov pred | |
| .spi.yml | 1 rok pred | |
| .swift-format | 2 rokov pred | |
| .swiftformatignore | 1 rok pred | |
| .unacceptablelanguageignore | 1 rok pred | |
| CODE-OF-CONDUCT.md | 1 rok pred | |
| CONTRIBUTING.md | 1 rok pred | |
| GOVERNANCE.md | 1 rok pred | |
| LICENSE | 6 rokov pred | |
| MAINTAINERS.md | 1 rok pred | |
| NOTICES.txt | 1 rok pred | |
| Package.swift | 1 rok pred | |
| README.md | 11 mesiacov pred | |
| SECURITY.md | 4 rokov pred |
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"),
]
)
]
)