Skip to content

Commit dcc8606

Browse files
authored
Merge pull request #393 from tayloraswift/evacuate-swift-ucf
evacuate the UCF code to the swift-ucf package
2 parents 7259db3 + cb50e8c commit dcc8606

File tree

98 files changed

+18
-5071
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

98 files changed

+18
-5071
lines changed

Package.swift

Lines changed: 16 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ let package:Package = .init(
1515

1616
.library(name: "Availability", targets: ["Availability"]),
1717
.library(name: "AvailabilityDomain", targets: ["AvailabilityDomain"]),
18-
.library(name: "FNV1", targets: ["FNV1"]),
1918

2019
.library(name: "GitHubAPI", targets: ["GitHubAPI"]),
2120
.library(name: "GitHubClient", targets: ["GitHubClient"]),
@@ -53,7 +52,6 @@ let package:Package = .init(
5352
.library(name: "SourceDiagnostics", targets: ["SourceDiagnostics"]),
5453
.library(name: "Sources", targets: ["Sources"]),
5554

56-
5755
.library(name: "SymbolGraphBuilder", targets: ["SymbolGraphBuilder"]),
5856
.library(name: "SymbolGraphCompiler", targets: ["SymbolGraphCompiler"]),
5957
.library(name: "SymbolGraphLinker", targets: ["SymbolGraphLinker"]),
@@ -66,8 +64,6 @@ let package:Package = .init(
6664

6765
.library(name: "UA", targets: ["UA"]),
6866

69-
.library(name: "UCF", targets: ["UCF"]),
70-
7167
.library(name: "UnidocAPI", targets: ["UnidocAPI"]),
7268
.library(name: "UnidocAssets", targets: ["UnidocAssets"]),
7369
.library(name: "UnidocAssets_System", targets: ["UnidocAssets_System"]),
@@ -80,8 +76,6 @@ let package:Package = .init(
8076
.library(name: "UnidocRecords", targets: ["UnidocRecords"]),
8177
.library(name: "UnidocServer", targets: ["UnidocServer"]),
8278
.library(name: "UnidocUI", targets: ["UnidocUI"]),
83-
84-
.library(name: "URI", targets: ["URI"]),
8579
],
8680
dependencies: [
8781
.package(url: "https://github.com/tayloraswift/swift-bson", .upToNextMinor(
@@ -94,17 +88,16 @@ let package:Package = .init(
9488
from: "0.7.1")),
9589
.package(url: "https://github.com/tayloraswift/swift-ip", .upToNextMinor(
9690
from: "0.3.1")),
97-
98-
.package(url: "https://github.com/tayloraswift/swift-mongodb", .upToNextMinor(
99-
from: "0.28.3")),
100-
.package(url: "https://github.com/tayloraswift/swift-unixtime", .upToNextMinor(
101-
from: "0.2.0")),
102-
10391
.package(url: "https://github.com/tayloraswift/swift-json", .upToNextMinor(
10492
from: "1.1.0")),
105-
93+
.package(url: "https://github.com/tayloraswift/swift-mongodb", .upToNextMinor(
94+
from: "0.28.3")),
10695
.package(url: "https://github.com/tayloraswift/swift-png", .upToNextMinor(
10796
from: "4.4.8")),
97+
.package(url: "https://github.com/tayloraswift/swift-ucf", .upToNextMinor(
98+
from: "0.1.0")),
99+
.package(url: "https://github.com/tayloraswift/swift-unixtime", .upToNextMinor(
100+
from: "0.2.0")),
108101

109102
// .package(url: "https://github.com/apple/swift-argument-parser", .upToNextMinor(
110103
// from: "1.5.0")),
@@ -171,8 +164,6 @@ let package:Package = .init(
171164
.product(name: "ISO", package: "swift-unixtime"),
172165
]),
173166

174-
.target(name: "FNV1"),
175-
176167
.target(name: "GitHubClient",
177168
dependencies: [
178169
.target(name: "GitHubAPI"),
@@ -212,7 +203,6 @@ let package:Package = .init(
212203
.target(name: "_AsyncChannel"),
213204
.target(name: "HTTP"),
214205
.target(name: "UA"),
215-
.target(name: "URI"),
216206

217207
.product(name: "Firewalls", package: "swift-ip"),
218208
.product(name: "IP", package: "swift-ip"),
@@ -223,6 +213,7 @@ let package:Package = .init(
223213
.product(name: "NIOHTTP2", package: "swift-nio-http2"),
224214
.product(name: "NIOSSL", package: "swift-nio-ssl"),
225215
.product(name: "TraceableErrors", package: "swift-grammar"),
216+
.product(name: "URI", package: "swift-ucf"),
226217
]),
227218

228219
.target(name: "InlineArray"),
@@ -234,11 +225,12 @@ let package:Package = .init(
234225
.target(name: "LinkResolution",
235226
dependencies: [
236227
.target(name: "InlineArray"),
228+
.target(name: "LexicalPaths"),
237229
.target(name: "SourceDiagnostics"),
238230
.target(name: "Symbols"),
239-
.target(name: "UCF"),
240231
// This dependency is present for (questionable?) performance reasons.
241232
.target(name: "Unidoc"),
233+
.product(name: "UCF", package: "swift-ucf"),
242234
]),
243235

244236
.target(name: "MarkdownABI"),
@@ -258,8 +250,8 @@ let package:Package = .init(
258250
.target(name: "MarkdownRendering",
259251
dependencies: [
260252
.target(name: "MarkdownABI"),
261-
.target(name: "URI"),
262253
.product(name: "HTML", package: "swift-dom"),
254+
.product(name: "URI", package: "swift-ucf"),
263255
]),
264256

265257
.target(name: "MarkdownParsing",
@@ -288,9 +280,8 @@ let package:Package = .init(
288280
.target(name: "MarkdownDisplay"),
289281
.target(name: "Snippets"),
290282
.target(name: "SourceDiagnostics"),
291-
.target(name: "UCF"),
292-
293283
.product(name: "OrderedCollections", package: "swift-collections"),
284+
.product(name: "UCF", package: "swift-ucf"),
294285
]),
295286

296287
.target(name: "Media"),
@@ -373,8 +364,8 @@ let package:Package = .init(
373364

374365
.target(name: "Symbols",
375366
dependencies: [
376-
.target(name: "FNV1"),
377367
.target(name: "Sources"),
368+
.product(name: "FNV1", package: "swift-ucf"),
378369
]),
379370

380371
.target(name: "SymbolGraphBuilder",
@@ -408,8 +399,8 @@ let package:Package = .init(
408399
.target(name: "SymbolGraphs"),
409400
.target(name: "Symbols"),
410401
.target(name: "SourceDiagnostics"),
411-
.target(name: "URI"),
412402
.product(name: "SHA1", package: "swift-hash"),
403+
.product(name: "URI", package: "swift-ucf"),
413404
]),
414405

415406
.target(name: "SymbolGraphParts",
@@ -456,13 +447,6 @@ let package:Package = .init(
456447
.product(name: "Grammar", package: "swift-grammar"),
457448
]),
458449

459-
.target(name: "UCF",
460-
dependencies: [
461-
.target(name: "FNV1"),
462-
.target(name: "LexicalPaths"),
463-
.target(name: "URI"),
464-
]),
465-
466450
.target(name: "Unidoc"),
467451

468452
.target(name: "UnidocAPI",
@@ -471,7 +455,7 @@ let package:Package = .init(
471455
.target(name: "SHA1_JSON"),
472456
.target(name: "Symbols"),
473457
.target(name: "Unidoc"),
474-
.target(name: "URI"),
458+
.product(name: "URI", package: "swift-ucf"),
475459
]),
476460

477461
.target(name: "UnidocAssets",
@@ -544,10 +528,10 @@ let package:Package = .init(
544528

545529
.target(name: "UnidocRecords",
546530
dependencies: [
547-
.target(name: "FNV1"),
548531
.target(name: "GitHubAPI"),
549532
.target(name: "SymbolGraphs"),
550533
.target(name: "UnidocAPI"),
534+
.product(name: "FNV1", package: "swift-ucf"),
551535
.product(name: "MD5", package: "swift-hash"),
552536
]),
553537

@@ -601,15 +585,10 @@ let package:Package = .init(
601585
.target(name: "UnidocRender"),
602586
.target(name: "UnidocAPI"),
603587
.target(name: "UnidocQueries"),
604-
.target(name: "URI"),
588+
.product(name: "URI", package: "swift-ucf"),
605589
.product(name: "UnixTime", package: "swift-unixtime"),
606590
]),
607591

608-
.target(name: "URI",
609-
dependencies: [
610-
.product(name: "Grammar", package: "swift-grammar"),
611-
]),
612-
613592
.target(name: "System_",
614593
dependencies: [
615594
.product(name: "SystemPackage", package: "swift-system"),
@@ -622,21 +601,12 @@ let package:Package = .init(
622601
.product(name: "ArgumentParser", package: "swift-argument-parser"),
623602
]),
624603

625-
.testTarget(name: "UCFTests",
626-
dependencies: [
627-
.target(name: "UCF"),
628-
]),
629604

630605
.testTarget(name: "FingerprintingTests",
631606
dependencies: [
632607
.target(name: "Fingerprinting"),
633608
]),
634609

635-
.testTarget(name: "FNV1Tests",
636-
dependencies: [
637-
.target(name: "FNV1"),
638-
]),
639-
640610
.testTarget(name: "MarkdownParsingTests",
641611
dependencies: [
642612
.target(name: "MarkdownParsing"),
@@ -758,11 +728,6 @@ let package:Package = .init(
758728
.target(name: "UnidocRecords"),
759729
]),
760730

761-
.testTarget(name: "URITests",
762-
dependencies: [
763-
.target(name: "URI"),
764-
]),
765-
766731
.target(name: "guides", path: "Guides"),
767732
])
768733

Sources/FNV1/FNV24.Extended.swift

Lines changed: 0 additions & 44 deletions
This file was deleted.

Sources/FNV1/FNV24.swift

Lines changed: 0 additions & 100 deletions
This file was deleted.

0 commit comments

Comments
 (0)