Skip to content

Commit

Permalink
Add Swift Algorithms as an explicit dependency (#217)
Browse files Browse the repository at this point in the history
Explicitly depend on Swift-algorithms, rather indirectly through Vapor

Some users were running into issues compiling leaf against an older version of Vapor (pre 4.61.0)
  • Loading branch information
Joannis authored Sep 26, 2022
1 parent 04f262e commit bf1c279
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@ let package = Package(
],
dependencies: [
.package(url: "https://github.com/vapor/leaf-kit.git", from: "1.3.1"),

.package(url: "https://github.com/vapor/vapor.git", from: "4.0.0"),

// Swift collection algorithms
.package(url: "https://github.com/apple/swift-algorithms.git", from: "1.0.0"),
],
targets: [
.target(name: "Leaf", dependencies: [
Expand Down
1 change: 1 addition & 0 deletions Sources/Leaf/LeafEncoder.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import LeafKit
import Algorithms

internal struct LeafEncoder {
/// Use `Codable` to convert an (almost) arbitrary encodable type to a dictionary of key/``LeafData`` pairs
Expand Down

0 comments on commit bf1c279

Please sign in to comment.