diff --git a/Sources/Yams/Emitter.swift b/Sources/Yams/Emitter.swift index 295a9d40..7e6358d1 100644 --- a/Sources/Yams/Emitter.swift +++ b/Sources/Yams/Emitter.swift @@ -6,9 +6,15 @@ // Copyright (c) 2016 Yams. All rights reserved. // +// swiftlint:disable duplicate_imports + #if SWIFT_PACKAGE +#if compiler(>=6) +internal import CYaml +#else @_implementationOnly import CYaml #endif +#endif import Foundation /// Produce a YAML string from objects. diff --git a/Sources/Yams/Parser.swift b/Sources/Yams/Parser.swift index e17faa1a..93b8a30b 100644 --- a/Sources/Yams/Parser.swift +++ b/Sources/Yams/Parser.swift @@ -7,10 +7,15 @@ // // swiftlint:disable file_length +// swiftlint:disable duplicate_imports #if SWIFT_PACKAGE +#if compiler(>=6) +internal import CYaml +#else @_implementationOnly import CYaml #endif +#endif import Foundation /// Parse all YAML documents in a String diff --git a/Sources/Yams/YamlError.swift b/Sources/Yams/YamlError.swift index eeff804a..cebe9bed 100644 --- a/Sources/Yams/YamlError.swift +++ b/Sources/Yams/YamlError.swift @@ -6,9 +6,15 @@ // Copyright (c) 2016 Yams. All rights reserved. // +// swiftlint:disable duplicate_imports + #if SWIFT_PACKAGE +#if compiler(>=6) +internal import CYaml +#else @_implementationOnly import CYaml #endif +#endif import Foundation /// Errors thrown by Yams APIs.