swift-apple-intelligence-grpc/Package.swift
Mathias Beaulieu-Duncan 5279565797 Suppress grpc-swift deprecation warnings
The grpc-swift library is transitioning from v2 to v3 API, causing
deprecation warnings for types like RegistrableRPCService, Metadata,
ServerTransport, etc. Suppress these until the library stabilizes.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-30 03:00:53 -05:00

34 lines
1.4 KiB
Swift

// swift-tools-version: 6.2
import PackageDescription
let package = Package(
name: "AppleIntelligenceGRPC",
platforms: [
.macOS(.v26)
],
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"),
.package(url: "https://github.com/apple/swift-protobuf.git", from: "1.28.0"),
.package(url: "https://github.com/apple/swift-argument-parser.git", from: "1.3.0"),
],
targets: [
.executableTarget(
name: "AppleIntelligenceGRPC",
dependencies: [
.product(name: "GRPCCore", package: "grpc-swift"),
.product(name: "GRPCNIOTransportHTTP2", package: "grpc-swift-nio-transport"),
.product(name: "GRPCProtobuf", package: "grpc-swift-protobuf"),
.product(name: "SwiftProtobuf", package: "swift-protobuf"),
.product(name: "ArgumentParser", package: "swift-argument-parser"),
],
swiftSettings: [
.unsafeFlags(["-parse-as-library"]),
// Suppress grpc-swift deprecation warnings during v2v3 API transition
.unsafeFlags(["-Xfrontend", "-suppress-warnings"])
]
),
]
)