// swift-tools-version: 5.7 import PackageDescription let package = Package( name: "RxPack", platforms: [.macOS(.v12)], products: [ .library(name: "RxPack", targets: ["RxPack"]), .library(name: "RxNeovim", targets: ["RxNeovim"]), ], dependencies: [ .package(url: "https://github.com/ReactiveX/RxSwift", from: "6.6.0"), .package(url: "https://github.com/a2/MessagePack.swift", .upToNextMinor(from: "4.0.0")), .package(url: "https://github.com/Quick/Nimble", from: "13.0.0"), ], targets: [ .target(name: "RxPack", dependencies: [ .product(name: "RxSwift", package: "RxSwift"), .product(name: "MessagePack", package: "MessagePack.swift"), ]), .testTarget(name: "RxPackTests", dependencies: [ "RxPack", .product(name: "RxBlocking", package: "RxSwift"), .product(name: "RxTest", package: "RxSwift"), .product(name: "Nimble", package: "Nimble"), ]), .target( name: "RxNeovim", dependencies: [ .product(name: "RxSwift", package: "RxSwift"), "RxPack", .product(name: "MessagePack", package: "MessagePack.swift"), ] ), .testTarget( name: "RxNeovimTests", dependencies: ["RxNeovim"] ), ] )