Skip to content

Commit 76f17f1

Browse files
authored
PackageDescription: mark imports as implementation-only (#3228)
`Glibc`/`Darwin`/`ucrt` imports are not used in the public interface of `PackageDescription`, so there is no need to expose them. This change hides the import statements from the generated `PackageDescription` module interface.
1 parent efbc4ed commit 76f17f1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Sources/PackageDescription/PackageDescription.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
99
*/
1010

1111
#if canImport(Glibc)
12-
import Glibc
12+
@_implementationOnly import Glibc
1313
#elseif os(iOS) || os(macOS) || os(tvOS) || os(watchOS)
14-
import Darwin.C
14+
@_implementationOnly import Darwin.C
1515
#elseif os(Windows)
16-
import ucrt
17-
import struct WinSDK.HANDLE
16+
@_implementationOnly import ucrt
17+
@_implementationOnly import struct WinSDK.HANDLE
1818
#endif
1919
import Foundation
2020

0 commit comments

Comments
 (0)