|
|
hace 7 meses | |
|---|---|---|
| .github | hace 7 meses | |
| Examples | hace 9 meses | |
| IntegrationTests | hace 7 meses | |
| Sources | hace 7 meses | |
| Tests | hace 7 meses | |
| dev | hace 9 meses | |
| .editorconfig | hace 1 año | |
| .gitignore | hace 2 años | |
| .gitmodules | hace 9 años | |
| .license_header_template | hace 1 año | |
| .licenseignore | hace 11 meses | |
| .spi.yml | hace 1 año | |
| .swift-format | hace 2 años | |
| .swiftformatignore | hace 1 año | |
| .unacceptablelanguageignore | hace 1 año | |
| CODE-OF-CONDUCT.md | hace 1 año | |
| CONTRIBUTING.md | hace 1 año | |
| GOVERNANCE.md | hace 1 año | |
| LICENSE | hace 6 años | |
| MAINTAINERS.md | hace 1 año | |
| NOTICES.txt | hace 1 año | |
| Package.swift | hace 1 año | |
| README.md | hace 10 meses | |
| SECURITY.md | hace 4 años |
This repository contains a gRPC implementation for Swift. You can read more about gRPC on the gRPC project's website.
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: "Application",
platforms: [.macOS("15.0")],
dependencies: [
.package(url: "https://github.com/grpc/grpc-swift.git", from: "2.0.0"),
.package(url: "https://github.com/grpc/grpc-swift-nio-transport.git", from: "1.0.0"),
.package(url: "https://github.com/grpc/grpc-swift-protobuf.git", from: "1.0.0"),
],
targets: [
.executableTarget(
name: "Server",
dependencies: [
.product(name: "GRPCCore", package: "grpc-swift"),
.product(name: "GRPCNIOTransportHTTP2", package: "grpc-swift-nio-transport"),
.product(name: "GRPCProtobuf", package: "grpc-swift-protobuf"),
]
)
]
)