Commit 28325a1
authored
ContainerRegistry: Unconditionally depend on swift-crypto (#33)
### Motivation
`swift-crypto` provides a common cryptography interface on macOS and Linux. On macOS it defers to CryptoKit, and although the files in the library must all be processed the compilation time is minimal.
In the past, on slower machines, avoiding processing `swift-crypto` on macOS seemed to improve build times by a few seconds. Currently the cost of processing these files is negligible, and using `swift-crypto` on Linux and macOS allows conditional includes to be removed.
### Modifications
Always depend on `swift-crypto` in `Package.swift`
Replace conditional imports of `CryptoKit` with unconditional imports of `Crypto`.
### Result
No functional change.
### Test Plan
Automated tests continue to pass.1 parent 6a94854 commit 28325a1
File tree
3 files changed
+2
-16
lines changed- Sources/ContainerRegistry
3 files changed
+2
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | 38 | | |
42 | 39 | | |
43 | 40 | | |
44 | 41 | | |
45 | 42 | | |
46 | | - | |
47 | | - | |
48 | 43 | | |
| 44 | + | |
49 | 45 | | |
50 | 46 | | |
51 | 47 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | 17 | | |
22 | | - | |
23 | 18 | | |
24 | 19 | | |
25 | 20 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | 16 | | |
21 | | - | |
22 | 17 | | |
23 | 18 | | |
24 | 19 | | |
| |||
0 commit comments