Files
stable-diffusion-rpc/Package.swift
2023-04-22 14:52:27 -07:00

36 lines
1.7 KiB
Swift

// swift-tools-version: 5.7
import PackageDescription
let package = Package(
name: "stable-diffusion-rpc",
platforms: [.macOS("13.1"), .iOS("16.2")],
products: [
.executable(name: "StableDiffusionServer", targets: ["StableDiffusionServer"]),
.library(name: "StableDiffusionProtos", targets: ["StableDiffusionProtos"]),
.executable(name: "TestStableDiffusionClient", targets: ["TestStableDiffusionClient"])
],
dependencies: [
.package(url: "https://github.com/apple/ml-stable-diffusion", revision: "5d2744e38297b01662b8bdfb41e899ac98036d8b"),
.package(url: "https://github.com/apple/swift-protobuf", from: "1.6.0"),
.package(url: "https://github.com/grpc/grpc-swift.git", from: "1.15.0"),
.package(url: "https://github.com/apple/swift-argument-parser", from: "1.2.0")
],
targets: [
.executableTarget(name: "StableDiffusionServer", dependencies: [
.product(name: "StableDiffusion", package: "ml-stable-diffusion"),
.product(name: "SwiftProtobuf", package: "swift-protobuf"),
.product(name: "GRPC", package: "grpc-swift"),
.target(name: "StableDiffusionProtos"),
.product(name: "ArgumentParser", package: "swift-argument-parser")
]),
.target(name: "StableDiffusionProtos", dependencies: [
.product(name: "SwiftProtobuf", package: "swift-protobuf"),
.product(name: "GRPC", package: "grpc-swift")
]),
.executableTarget(name: "TestStableDiffusionClient", dependencies: [
.target(name: "StableDiffusionProtos"),
.product(name: "GRPC", package: "grpc-swift")
])
]
)