Skip to content

Commit

Permalink
build: reduce dependencies
Browse files Browse the repository at this point in the history
GameOfLife depends on DequeModule, so it doesn't need the other modules.
  • Loading branch information
kkebo committed Apr 6, 2024
1 parent bba9930 commit 5badc3b
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Benchmarks/Benchmarks/MyBenchmark/MyBenchmark.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
private import Benchmark
private import Collections
private import DequeModule
private import Tokenizer

private struct TestSink {}
Expand Down
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ let package = Package(
dependencies: [
"TokenizerMacros",
"HTMLEntities",
.product(name: "Collections", package: "swift-collections"),
.product(name: "DequeModule", package: "swift-collections"),
],
swiftSettings: [
.unsafeFlags(["-Xfrontend", "-warn-long-function-bodies=100"], .when(configuration: .debug)),
Expand Down
2 changes: 1 addition & 1 deletion Sources/Tokenizer/CharRefTokenizer.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Collections
import DequeModule
private import HTMLEntities

private enum CharRefState {
Expand Down
2 changes: 1 addition & 1 deletion Sources/Tokenizer/Tokenizer.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
public import Collections
public import DequeModule

@freestanding(codeItem) private macro go(emit: Character) = #externalMacro(module: "TokenizerMacros", type: "GoMacro")
@freestanding(codeItem) private macro go(error: ParseError..., emit: Token...) = #externalMacro(module: "TokenizerMacros", type: "GoMacro")
Expand Down
2 changes: 1 addition & 1 deletion Tests/TokenizerTests/BasicHTMLTests.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
private import Collections
private import DequeModule
import Testing
private import Tokenizer

Expand Down
2 changes: 1 addition & 1 deletion Tests/TokenizerTests/HTML5LibTests.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
private import Collections
private import DequeModule
private import Foundation
import Testing
private import Tokenizer
Expand Down

0 comments on commit 5badc3b

Please sign in to comment.