mirror of
https://github.com/GayPizzaSpecifications/stable-diffusion-rpc.git
synced 2025-08-03 21:41:31 +00:00
Initial Commit
This commit is contained in:
35
Package.swift
Normal file
35
Package.swift
Normal file
@ -0,0 +1,35 @@
|
||||
// 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")
|
||||
])
|
||||
]
|
||||
)
|
Reference in New Issue
Block a user