Build Information
Successful build of MacroCodableKit, reference main (e1391e), with Swift 6.4 for macOS (SPM) on 7 Nov 2026 12:20:27 UTC.
Swift 6 data race errors: 0
Build Command
env DEVELOPER_DIR=/Applications/Xcode-27.0.0.app xcrun swift build --arch arm64Build Log
========================================
RunAll
========================================
Builder version: 5.1.4
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/haifengkao/MacroCodableKit.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/haifengkao/MacroCodableKit
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at e1391ea Throw on explicit null with @DefaultValue(malformed: .throwError)
Cloned https://github.com/haifengkao/MacroCodableKit.git
Revision (git rev-parse @):
e1391ead9dbf77db88e4b6eb2480165940349ded
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/haifengkao/MacroCodableKit.git at main
Fetching https://github.com/stackotter/swift-macro-toolkit
Fetching https://github.com/pointfreeco/swift-macro-testing
Fetching https://github.com/swiftlang/swift-syntax.git
[1/996] Fetching swift-macro-toolkit
[2/1998] Fetching swift-macro-toolkit, swift-macro-testing
Fetched https://github.com/pointfreeco/swift-macro-testing (1.00s)
Fetched https://github.com/stackotter/swift-macro-toolkit (1.00s)
[1/81762] Fetching swift-syntax
Fetched https://github.com/swiftlang/swift-syntax.git (5.43s)
Computing version for https://github.com/swiftlang/swift-syntax.git
Computed https://github.com/swiftlang/swift-syntax.git at 601.0.1 (15.28s)
Computing version for https://github.com/pointfreeco/swift-macro-testing
Computed https://github.com/pointfreeco/swift-macro-testing at 0.7.0 (0.60s)
Fetching https://github.com/pointfreeco/swift-snapshot-testing
[1/16611] Fetching swift-snapshot-testing
Fetched https://github.com/pointfreeco/swift-snapshot-testing (8.42s)
Computing version for https://github.com/stackotter/swift-macro-toolkit
Computed https://github.com/stackotter/swift-macro-toolkit at 0.9.0 (9.18s)
Computing version for https://github.com/pointfreeco/swift-snapshot-testing
Computed https://github.com/pointfreeco/swift-snapshot-testing at 1.19.7 (0.59s)
Fetching https://github.com/pointfreeco/swift-custom-dump
[1/5669] Fetching swift-custom-dump
Fetched https://github.com/pointfreeco/swift-custom-dump (1.17s)
Computing version for https://github.com/pointfreeco/swift-custom-dump
Computed https://github.com/pointfreeco/swift-custom-dump at 1.7.3 (1.79s)
Fetching https://github.com/pointfreeco/swift-issue-reporting
[1/6183] Fetching swift-issue-reporting
Fetched https://github.com/pointfreeco/swift-issue-reporting (1.94s)
Computing version for https://github.com/pointfreeco/swift-issue-reporting
Computed https://github.com/pointfreeco/swift-issue-reporting at 2.1.2 (4.10s)
Creating working copy for https://github.com/swiftlang/swift-syntax.git
Working copy of https://github.com/swiftlang/swift-syntax.git resolved at 601.0.1
Creating working copy for https://github.com/stackotter/swift-macro-toolkit
Working copy of https://github.com/stackotter/swift-macro-toolkit resolved at 0.9.0
Creating working copy for https://github.com/pointfreeco/swift-issue-reporting
Working copy of https://github.com/pointfreeco/swift-issue-reporting resolved at 2.1.2
Creating working copy for https://github.com/pointfreeco/swift-custom-dump
Working copy of https://github.com/pointfreeco/swift-custom-dump resolved at 1.7.3
Creating working copy for https://github.com/pointfreeco/swift-macro-testing
Working copy of https://github.com/pointfreeco/swift-macro-testing resolved at 0.7.0
Creating working copy for https://github.com/pointfreeco/swift-snapshot-testing
Working copy of https://github.com/pointfreeco/swift-snapshot-testing resolved at 1.19.7
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"traits": [
"default"
],
"dependencies": [
{
"identity": "macrocodablekit",
"name": "MacroCodableKit",
"url": "https://github.com/haifengkao/MacroCodableKit.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/MacroCodableKit",
"traits": [
"default"
],
"dependencies": [
{
"identity": "swift-syntax",
"name": "swift-syntax",
"url": "https://github.com/swiftlang/swift-syntax.git",
"version": "601.0.1",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-syntax",
"traits": [
"default"
],
"dependencies": [
]
},
{
"identity": "swift-macro-toolkit",
"name": "swift-macro-toolkit",
"url": "https://github.com/stackotter/swift-macro-toolkit",
"version": "0.9.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-macro-toolkit",
"traits": [
"default"
],
"dependencies": [
{
"identity": "swift-syntax",
"name": "swift-syntax",
"url": "https://github.com/swiftlang/swift-syntax.git",
"version": "601.0.1",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-syntax",
"traits": [
"default"
],
"dependencies": [
]
}
]
}
]
}
]
}
Fetching https://github.com/haifengkao/MacroCodableKit.git
[1/763] Fetching macrocodablekit
Fetched https://github.com/haifengkao/MacroCodableKit.git (0.98s)
Fetching https://github.com/swiftlang/swift-syntax.git from cache
Fetching https://github.com/stackotter/swift-macro-toolkit from cache
Fetched https://github.com/swiftlang/swift-syntax.git from cache (1.00s)
Fetched https://github.com/stackotter/swift-macro-toolkit from cache (1.07s)
Computing version for https://github.com/swiftlang/swift-syntax.git
Computed https://github.com/swiftlang/swift-syntax.git at 601.0.1 (1.15s)
Computing version for https://github.com/stackotter/swift-macro-toolkit
Computed https://github.com/stackotter/swift-macro-toolkit at 0.9.0 (0.03s)
Creating working copy for https://github.com/haifengkao/MacroCodableKit.git
Working copy of https://github.com/haifengkao/MacroCodableKit.git resolved at main (e1391ea)
Creating working copy for https://github.com/swiftlang/swift-syntax.git
Working copy of https://github.com/swiftlang/swift-syntax.git resolved at 601.0.1
Creating working copy for https://github.com/stackotter/swift-macro-toolkit
Working copy of https://github.com/stackotter/swift-macro-toolkit resolved at 0.9.0
warning: '.resolve-product-dependencies': dependency 'macrocodablekit' is not used by any target
Found 2 product dependencies
- swift-syntax
- swift-macro-toolkit
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.4
Building package at path: $PWD
https://github.com/haifengkao/MacroCodableKit.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-27.0.0.app xcrun swift build --arch arm64
Building for debugging...
[Computing dependencies]
[Provisioning 4 / 26]
[Pre-planning 1 / 622]
[Planning deferred tasks]
[123 / 283]
[130 / 288] _SwiftSyntaxCShims
[133 / 298]
[166 / 299] MacroCodableKitShared
[184 / 361]
[193 / 361]
[200 / 361]
[204 / 361]
[208 / 361]
[222 / 361]
[224 / 361]
[225 / 361]
[228 / 361] SwiftSyntax
[231 / 361]
[233 / 361] SwiftSyntax
[233 / 361]
[234 / 361]
[236 / 361] MacroCodableKitShared
[242 / 361] MacroCodableKitShared
[244 / 361] SwiftSyntax
[253 / 364] SwiftBasicFormat
[260 / 393] SwiftParser
[276 / 393] SwiftParser
[277 / 393] SwiftParser
[278 / 393] SwiftParser
[279 / 393] SwiftParser
[280 / 393] SwiftParser
[281 / 393] SwiftParser
[283 / 393] SwiftParser
[291 / 393] SwiftDiagnostics
[292 / 393] SwiftDiagnostics
[294 / 393] SwiftOperators
[298 / 393] SwiftDiagnostics
[302 / 395] SwiftDiagnostics
[304 / 395] SwiftParserDiagnostics
[312 / 417] SwiftOperators
[315 / 417] SwiftParserDiagnostics
[317 / 417] SwiftParser
[334 / 417] SwiftSyntaxBuilder
[339 / 417] SwiftOperators
[340 / 418]
[341 / 418] SwiftParserDiagnostics
[341 / 420] SwiftSyntaxBuilder
[345 / 438]
[347 / 438]
[350 / 438]
[360 / 438] SwiftSyntaxBuilder
[362 / 438] SwiftSyntaxBuilder
[369 / 439] SwiftSyntaxBuilder
[379 / 450] SwiftSyntaxMacros
[388 / 451] SwiftSyntaxMacros
[389 / 451] SwiftSyntaxMacroExpansion
[398 / 461] SwiftSyntaxMacroExpansion
[399 / 461] SwiftSyntaxMacroExpansion
[406 / 462] SwiftSyntaxMacroExpansion
[406 / 462] SwiftCompilerPluginMessageHandling
[414 / 473] SwiftCompilerPluginMessageHandling
[418 / 473] SwiftCompilerPluginMessageHandling
[425 / 474] SwiftCompilerPluginMessageHandling
[425 / 474] SwiftCompilerPlugin
[434 / 477] SwiftCompilerPluginMessageHandling
[436 / 477] MacroToolkit
[439 / 491]
[449 / 491] MacroToolkit
[456 / 491] MacroToolkit
[457 / 491] SwiftSyntax
[459 / 491] SwiftSyntax
[465 / 491] SwiftSyntaxBuilder
[469 / 491] SwiftCompilerPlugin
[478 / 492] Macro
[489 / 503] Macro
[490 / 503] Macro
[492 / 503] Macro
[495 / 504] MacroCodableKit
[506 / 515] MacroCodableKit
[514 / 515] MacroCodableKit
Build complete! (20.42 sec)
Build complete.
{
"dependencies" : [
{
"identity" : "swift-syntax",
"requirement" : {
"range" : [
{
"lower_bound" : "601.0.0",
"upper_bound" : "602.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/swiftlang/swift-syntax.git"
},
{
"identity" : "swift-macro-toolkit",
"requirement" : {
"range" : [
{
"lower_bound" : "0.7.2",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/stackotter/swift-macro-toolkit"
},
{
"identity" : "swift-macro-testing",
"requirement" : {
"range" : [
{
"lower_bound" : "0.6.4",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/pointfreeco/swift-macro-testing"
}
],
"manifest_display_name" : "MacroCodableKit",
"name" : "MacroCodableKit",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.15"
},
{
"name" : "ios",
"version" : "13.0"
}
],
"products" : [
{
"name" : "MacroCodableKit",
"targets" : [
"MacroCodableKit"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "Macro",
"targets" : [
"Macro"
],
"type" : {
"macro" : null
}
}
],
"targets" : [
{
"c99name" : "MacroCodableKitTests",
"module_type" : "SwiftTarget",
"name" : "MacroCodableKitTests",
"path" : "Tests/MacroCodableKitTests",
"product_dependencies" : [
"SwiftSyntaxMacrosTestSupport",
"SwiftSyntaxMacroExpansion",
"MacroTesting"
],
"sources" : [
"AllOfCodable/AllOfCodableMacroTests.swift",
"AllOfCodable/AllOfDecodableMacroTests.swift",
"AllOfCodable/AllOfEncodableMacroTests.swift",
"AllOfCodable/AllOfMacroDecodingTests.swift",
"Annotations/AnnotationTests.swift",
"Annotations/Base64StrategyTests.swift",
"Annotations/DateValueStrategyTests.swift",
"Annotations/DefaultKeyTests.swift",
"Annotations/DefaultValueTests.swift",
"Annotations/Macro/AnnotationsMixMacroTests.swift",
"Annotations/Macro/CustomCodingMacroTests.swift",
"Annotations/Macro/DefaultKeyMacroTests.swift",
"Annotations/Macro/DefaultValueMacroTests.swift",
"Annotations/Macro/DiagnosticTests.swift",
"Annotations/Macro/ValueStrategyMacroTests.swift",
"Annotations/SafeCodingArrayTests.swift",
"Annotations/SafeCodingDictionaryTests.swift",
"Codable/CodableMacroTests.swift",
"Codable/CodableTests.swift",
"Codable/DecodableMacroTests.swift",
"Codable/EncodableMacroTests.swift",
"Helpers/Misc.swift",
"OneOfCodable/OneOfCodableMacroTests.swift",
"OneOfCodable/OneOfDecodableMacroTests.swift",
"OneOfCodable/OneOfEncodableMacroTests.swift",
"OneOfCodable/OneOfMacroDecodingTests.swift",
"TaggedEnum/CaseStyleTests.swift",
"TaggedEnum/StrictDecodingTests.swift",
"TaggedEnum/TaggedEnumCodableMacroTests.swift",
"TaggedEnum/TaggedEnumFlatTests.swift",
"TaggedEnum/TaggedEnumFlattenTests.swift"
],
"target_dependencies" : [
"Macro",
"MacroCodableKit"
],
"type" : "test"
},
{
"c99name" : "MacroCodableKitShared",
"module_type" : "SwiftTarget",
"name" : "MacroCodableKitShared",
"path" : "Sources/MacroCodableKitShared",
"product_memberships" : [
"MacroCodableKit",
"Macro"
],
"sources" : [
"CaseStyle.swift"
],
"type" : "library"
},
{
"c99name" : "MacroCodableKit",
"module_type" : "SwiftTarget",
"name" : "MacroCodableKit",
"path" : "Sources/MacroCodableKit",
"product_memberships" : [
"MacroCodableKit"
],
"sources" : [
"Macros/AllOf.swift",
"Macros/Annotations.swift",
"Macros/CaseStyle.swift",
"Macros/Codable.swift",
"Macros/OneOf.swift",
"Macros/TaggedAnnotations.swift",
"Misc/CustomCoding/CustomCodingDecoding.swift",
"Misc/CustomCoding/CustomCodingEncoding.swift",
"Misc/CustomCoding/Predefined/SafeDecoding/SafeDecoding+Array.swift",
"Misc/CustomCoding/Predefined/SafeDecoding/SafeDecoding+Dictionary.swift",
"Misc/CustomCoding/Predefined/SafeDecoding/SafeDecoding.swift",
"Misc/CustomCoding/Types/CustomCodingDecoding+Types.swift",
"Misc/CustomCoding/Types/CustomCodingEncoding+Types.swift",
"Misc/CustomDecodingName.swift",
"Misc/DefaultProviders/BoolFalse.swift",
"Misc/DefaultProviders/BoolTrue.swift",
"Misc/DefaultProviders/DoubleZero.swift",
"Misc/DefaultProviders/EmptyString.swift",
"Misc/DefaultProviders/IntZero.swift",
"Misc/DefaultValueStrategy.swift",
"Misc/OptionalProtocol.swift",
"Misc/StrictDecoding.swift",
"Misc/ValueCodableStrategies/Base64Strategy.swift",
"Misc/ValueCodableStrategies/Date/DateFormatterStrategy.swift",
"Misc/ValueCodableStrategies/Date/ISO8601DateFormatterProvider.swift",
"Misc/ValueCodableStrategies/Date/RFC2822DateFormatterProvider.swift",
"Misc/ValueCodableStrategies/Date/RFC3339DateFormatterProvider.swift",
"Misc/ValueCodableStrategies/Date/TimestampedDate.swift",
"Misc/ValueCodableStrategies/Date/YearMonthDayDateFormatterProvider.swift",
"Misc/ValueCodableStrategy.swift"
],
"target_dependencies" : [
"MacroCodableKitShared",
"Macro"
],
"type" : "library"
},
{
"c99name" : "Macro",
"module_type" : "SwiftTarget",
"name" : "Macro",
"path" : "Sources/Macro",
"product_dependencies" : [
"SwiftSyntaxMacros",
"SwiftCompilerPlugin",
"MacroToolkit"
],
"product_memberships" : [
"MacroCodableKit",
"Macro"
],
"sources" : [
"Helpers/CodeBuilder+Helpers.swift",
"Helpers/Conformance+Helpers.swift",
"Helpers/DiagnosticMessage+Helpers.swift",
"Helpers/MacroToolkit+Helpers.swift",
"Helpers/MessageID+Helpers.swift",
"Helpers/String+Helpers.swift",
"Helpers/Type+Helpers.swift",
"Macro/AllOfCodable/AllOfCodable.swift",
"Macro/AllOfCodable/AllOfDecodableMacro.swift",
"Macro/AllOfCodable/AllOfEncodableMacro.swift",
"Macro/AllOfCodable/AllOfMacroBase.swift",
"Macro/Codable/CodableMacro.swift",
"Macro/Codable/CodableMacroBase.swift",
"Macro/Codable/CodableMacroConfig.swift",
"Macro/Codable/DecodableMacro.swift",
"Macro/Codable/EncodableMacro.swift",
"Macro/CodingKey/CodingKey.swift",
"Macro/CodingKey/CodingKeyMacro.swift",
"Macro/CustomCoding/CustomCoding.swift",
"Macro/CustomCoding/CustomCodingMacro.swift",
"Macro/DefaultKey/DefaultKeyMacro.swift",
"Macro/DefaultValue/DefaultValue.swift",
"Macro/DefaultValue/DefaultValueMacro.swift",
"Macro/OmitCoding/OmitCoding.swift",
"Macro/OmitCoding/OmitCodingMacro.swift",
"Macro/OneOfCodable/OneOfCodable.swift",
"Macro/OneOfCodable/OneOfDecodable.swift",
"Macro/OneOfCodable/OneOfEncodable.swift",
"Macro/OneOfCodable/OneOfMacroBase.Diagnostic.swift",
"Macro/OneOfCodable/OneOfMacroBase.Expander.swift",
"Macro/OneOfCodable/OneOfMacroBase.swift",
"Macro/TaggedEnum/CaseTagMacro.swift",
"Macro/TaggedEnum/CodedAtMacro.swift",
"Macro/TaggedEnum/ContentAtMacro.swift",
"Macro/TaggedEnum/TaggedCodableMacro.swift",
"Macro/TaggedEnum/TaggedEnumMacroBase.swift",
"Macro/ValueStrategy/ValueStrategy.swift",
"Macro/ValueStrategy/ValueStrategyMacro.swift",
"Misc/ClassDecl.swift",
"Misc/CodableBuilderFactory.swift",
"Misc/CodableBuilders/CodableBuildersMisc.swift",
"Misc/CodableBuilders/CodableBuildingData.swift",
"Misc/CodableBuilders/CodingKeysBuilder+Enum.swift",
"Misc/CodableBuilders/CodingKeysBuilder+Instance.swift",
"Misc/CodableBuilders/CodingKeysBuilder.swift",
"Misc/CodableBuilders/DecodableBuilder+Instance.swift",
"Misc/CodableBuilders/DecodableBuilder.swift",
"Misc/CodableBuilders/DefaultKeyPlan.swift",
"Misc/CodableBuilders/EncodableBuilder+Instance.swift",
"Misc/CodableBuilders/EncodableBuilder.swift",
"Misc/CodableBuilders/Variable+Diagnostic.swift",
"Misc/CodableBuilders/Variable+KnownAttributes.swift",
"Misc/CodeBuilder/CodeBuilder.swift",
"Misc/CodeBuilder/ExtensionBuilder.swift",
"Misc/CommonDiagnostic.swift",
"Misc/Conformance.swift",
"Misc/ConformanceDiagnosticChecker.swift",
"Misc/Diagnostic.swift",
"Misc/Enum+AccessLevel.swift",
"Misc/Instance.swift",
"Misc/InstanceExpander.swift",
"Misc/MacroCurrent.swift",
"Misc/SwiftFormatter.swift",
"Plugin.swift"
],
"target_dependencies" : [
"MacroCodableKitShared"
],
"type" : "macro"
}
],
"tools_version" : "5.9"
}
✅ Doc result (pending) reported
========================================
GenerateDocs
========================================
Generating docs at path: $PWD/.docs/haifengkao/macrocodablekit/main
Repository: haifengkao/MacroCodableKit
Swift version used: 6.4
Target: MacroCodableKit
Extracting symbol information for 'MacroCodableKit'...
Finished extracting symbol information for 'MacroCodableKit'. (16.88s)
Building documentation for 'MacroCodableKit'...
warning: No symbol matched 'MacroCodableKit/Codable()'. 'Codable()' doesn't exist at '/MacroCodableKit'.
--> Extensions/Codable.md:1:4-1:33
1 + # ``MacroCodableKit/Codable()``
| ├─suggestion: Replace 'Codable()' with 'AllOfCodable()'
| ├─suggestion: Replace 'Codable()' with 'OneOfCodable()'
| ├─suggestion: Replace 'Codable()' with 'TaggedCodable()'
| ├─suggestion: Replace 'Codable()' with 'Codable(caseStyle:strict:validated:)'
| ├─suggestion: Replace 'Codable()' with 'AllOfDecodable()'
| ├─suggestion: Replace 'Codable()' with 'AllOfEncodable()'
| ├─suggestion: Replace 'Codable()' with 'OneOfDecodable()'
| ╰─suggestion: Replace 'Codable()' with 'OneOfEncodable()'
2 |
3 | ## Topics
warning: No symbol matched 'MacroCodableKit/DefaultValue(_:)'. 'DefaultValue(_:)' doesn't exist at '/MacroCodableKit'.
--> Extensions/DefaultValue.md:1:4-1:40
1 + # ``MacroCodableKit/DefaultValue(_:)``
| ├─suggestion: Replace 'DefaultValue(_:)' with 'DefaultValue(_:malformed:)'
| ├─suggestion: Replace 'DefaultValue(_:)' with 'DefaultValue(malformed:)'
| ├─suggestion: Replace 'DefaultValue(_:)' with 'DefaultValueProvider'
| ╰─suggestion: Replace 'DefaultValue(_:)' with 'DefaultValueMalformed'
2 |
3 | ## Topics
warning: 'Codable()' doesn't exist at '/MacroCodableKit'
--> MacroCodableKit.md:9:26-9:35
7 | **MacroCodableKit** is a comprehensive solution to conform to [Codable](https://developer.apple.com/documentation/swift/codable), which leverages [Swift Macros](https://docs.swift.org/swift-book/documentation/the-swift-programming-language/macros/) under the hood, thus providing flexible coding customizations.
8 |
9 + To start, add a simple ``Codable()`` annotation next to a struct. Or use ``Decodable()`` or ``Encodable()``, if you need only `Decodable` or `Encodable` accordingly.
| ├─suggestion: Replace 'Codable()' with 'AllOfCodable()'
| ├─suggestion: Replace 'Codable()' with 'OneOfCodable()'
| ├─suggestion: Replace 'Codable()' with 'TaggedCodable()'
| ├─suggestion: Replace 'Codable()' with 'Codable(caseStyle:strict:validated:)'
| ├─suggestion: Replace 'Codable()' with 'AllOfDecodable()'
| ├─suggestion: Replace 'Codable()' with 'AllOfEncodable()'
| ├─suggestion: Replace 'Codable()' with 'OneOfDecodable()'
| ╰─suggestion: Replace 'Codable()' with 'OneOfEncodable()'
10 |
11 | Adjust default [CodingKeys](https://developer.apple.com/documentation/foundation/archives_and_serialization/encoding_and_decoding_custom_types#2904057) with ``CodingKey(_:)`` or skip a property entiraly from coding using ``OmitCoding()``.
warning: 'Decodable()' doesn't exist at '/MacroCodableKit'
--> MacroCodableKit.md:9:76-9:87
7 | **MacroCodableKit** is a comprehensive solution to conform to [Codable](https://developer.apple.com/documentation/swift/codable), which leverages [Swift Macros](https://docs.swift.org/swift-book/documentation/the-swift-programming-language/macros/) under the hood, thus providing flexible coding customizations.
8 |
9 + To start, add a simple ``Codable()`` annotation next to a struct. Or use ``Decodable()`` or ``Encodable()``, if you need only `Decodable` or `Encodable` accordingly.
| ├─suggestion: Replace 'Decodable()' with 'Decodable(caseStyle:strict:validated:)'
| ├─suggestion: Replace 'Decodable()' with 'AllOfDecodable()'
| ├─suggestion: Replace 'Decodable()' with 'OneOfDecodable()'
| ├─suggestion: Replace 'Decodable()' with 'OneOfEncodable()'
| ├─suggestion: Replace 'Decodable()' with 'AllOfEncodable()'
| ├─suggestion: Replace 'Decodable()' with 'OneOfCodable()'
| ╰─suggestion: Replace 'Decodable()' with 'TaggedCodable()'
10 |
11 | Adjust default [CodingKeys](https://developer.apple.com/documentation/foundation/archives_and_serialization/encoding_and_decoding_custom_types#2904057) with ``CodingKey(_:)`` or skip a property entiraly from coding using ``OmitCoding()``.
warning: 'Encodable()' doesn't exist at '/MacroCodableKit'
--> MacroCodableKit.md:9:95-9:106
7 | **MacroCodableKit** is a comprehensive solution to conform to [Codable](https://developer.apple.com/documentation/swift/codable), which leverages [Swift Macros](https://docs.swift.org/swift-book/documentation/the-swift-programming-language/macros/) under the hood, thus providing flexible coding customizations.
8 |
9 + To start, add a simple ``Codable()`` annotation next to a struct. Or use ``Decodable()`` or ``Encodable()``, if you need only `Decodable` or `Encodable` accordingly.
| ├─suggestion: Replace 'Encodable()' with 'Encodable(caseStyle:)'
| ├─suggestion: Replace 'Encodable()' with 'AllOfEncodable()'
| ├─suggestion: Replace 'Encodable()' with 'OneOfEncodable()'
| ├─suggestion: Replace 'Encodable()' with 'OneOfDecodable()'
| ├─suggestion: Replace 'Encodable()' with 'AllOfDecodable()'
| ╰─suggestion: Replace 'Encodable()' with 'OneOfCodable()'
10 |
11 | Adjust default [CodingKeys](https://developer.apple.com/documentation/foundation/archives_and_serialization/encoding_and_decoding_custom_types#2904057) with ``CodingKey(_:)`` or skip a property entiraly from coding using ``OmitCoding()``.
warning: 'DefaultValue(_:)' doesn't exist at '/MacroCodableKit'
--> MacroCodableKit.md:13:278-13:294
11 | Adjust default [CodingKeys](https://developer.apple.com/documentation/foundation/archives_and_serialization/encoding_and_decoding_custom_types#2904057) with ``CodingKey(_:)`` or skip a property entiraly from coding using ``OmitCoding()``.
12 |
13 + Perform custom coding with ``ValueStrategy(_:)`` to use your or a build-in coding strategy. For example, you might need to map a timestamps to a Date and you can do it with build-in ``TimestampedDate`` strategy. Or you might want to use a default value if decoding fails and ``DefaultValue(_:)`` is here to the rescue.
| ├─suggestion: Replace 'DefaultValue(_:)' with 'DefaultValue(_:malformed:)'
| ├─suggestion: Replace 'DefaultValue(_:)' with 'DefaultValue(malformed:)'
| ├─suggestion: Replace 'DefaultValue(_:)' with 'DefaultValueProvider'
| ╰─suggestion: Replace 'DefaultValue(_:)' with 'DefaultValueMalformed'
14 |
15 | ## Topics
warning: 'Codable()' doesn't exist at '/MacroCodableKit'
--> MacroCodableKit.md:19:5-19:14
17 | ### Coding
18 |
19 + - ``Codable()``
| ├─suggestion: Replace 'Codable()' with 'AllOfCodable()'
| ├─suggestion: Replace 'Codable()' with 'OneOfCodable()'
| ├─suggestion: Replace 'Codable()' with 'TaggedCodable()'
| ├─suggestion: Replace 'Codable()' with 'Codable(caseStyle:strict:validated:)'
| ├─suggestion: Replace 'Codable()' with 'AllOfDecodable()'
| ├─suggestion: Replace 'Codable()' with 'AllOfEncodable()'
| ├─suggestion: Replace 'Codable()' with 'OneOfDecodable()'
| ╰─suggestion: Replace 'Codable()' with 'OneOfEncodable()'
20 |
21 | ### Annotations
warning: 'DefaultValue(_:)' doesn't exist at '/MacroCodableKit'
--> MacroCodableKit.md:23:5-23:21
21 | ### Annotations
22 |
23 + - ``DefaultValue(_:)``
| ├─suggestion: Replace 'DefaultValue(_:)' with 'DefaultValue(_:malformed:)'
| ├─suggestion: Replace 'DefaultValue(_:)' with 'DefaultValue(malformed:)'
| ├─suggestion: Replace 'DefaultValue(_:)' with 'DefaultValueProvider'
| ╰─suggestion: Replace 'DefaultValue(_:)' with 'DefaultValueMalformed'
24 | - ``ValueStrategy(_:)``
25 | - ``CustomCoding(_:)``
warning: Can't resolve 'Codable()'
--> Tutorials/CustomCoding/Create your own CustomCoding.tutorial:76:48-76:57
74 | @Section(title: "Handle Decoding") {
75 | @ContentAndMedia {
76 + A type using `OmitEmpty` can use ``Codable()`` thus requiring us to provide decoding imlementation as well, so let's do it here
| ╰─suggestion: Replace 'Codable()' with 'MacroCodableKit'
77 | }
78 |
warning: 'Codable()' doesn't exist at '/MacroCodableKit/CustomCoding(_:)'
--> ../Macros/Annotations.swift:142:173-142:182
140 | /// This macro modifies the generated `Codable` conformance, redirecting the encoding and decoding of the annotated property to custom functions.
141 | ///
142 + /// The name of the custom functions is derived from the type name passed to the ``CustomCoding(_:)`` annotation. For instance, `@CustomCoding(SafeDecoding)` directs the ``Codable()`` macro to use the `SafeDecoding` function in ``CustomCodingDecoding/safeDecoding(_:forKey:container:)-1qnwn`` and ``CustomCodingEncoding/safeDecoding(_:forKey:container:)-7cwmw`` for decoding and encoding respectively.
143 | ///
144 | /// Annotate needed property and provided a strategy. In this example, we use build-in ``SafeDecoding``, which ignores elements decoded with an error
warning: 'Decodable()' doesn't exist at '/MacroCodableKit/Codable(caseStyle:strict:validated:)'
--> ../Macros/Codable.swift:32:55-32:66
30 | /// `try validate()` after decoding. Optional properties may still be absent.
31 | ///
32 + /// If you need only `Decodable` or `Encodable` use ``Decodable()`` or ``Encodable()`` respectively
33 | ///
34 | /// **Adjust coding behaviour**:
warning: 'Encodable()' doesn't exist at '/MacroCodableKit/Codable(caseStyle:strict:validated:)'
--> ../Macros/Codable.swift:32:74-32:85
30 | /// `try validate()` after decoding. Optional properties may still be absent.
31 | ///
32 + /// If you need only `Decodable` or `Encodable` use ``Decodable()`` or ``Encodable()`` respectively
33 | ///
34 | /// **Adjust coding behaviour**:
warning: 'DefaultValue(_:)' doesn't exist at '/MacroCodableKit/Codable(caseStyle:strict:validated:)'
--> ../Macros/Codable.swift:57:75-57:91
55 | /// ```
56 | ///
57 + /// - Provide default value if coding fails or there's no such key with ``DefaultValue(_:)``
58 | /// ```swift
59 | /// @Codable
warning: 'Codable()' doesn't exist at '/MacroCodableKit/Decodable(caseStyle:strict:validated:)'
--> ../Macros/Codable.swift:111:66-111:75
109 | /// Generates `Decodable` conformance respecting property annotations.
110 | ///
111 + /// The usage and behavior of annotations are analogous to the ``Codable()`` macro but exclusively geared towards decoding.
112 | ///
113 | /// Conform to default `Decodable` annotating needed type with `@Decodable`
warning: 'Codable()' doesn't exist at '/MacroCodableKit/Encodable(caseStyle:)'
--> ../Macros/Codable.swift:127:66-127:75
125 | /// Generates `Encodable` conformance respecting property annotations.
126 | ///
127 + /// The usage and behavior of annotations are analogous to the ``Codable()`` macro but exclusively geared towards encoding.
128 | ///
129 | /// Conform to default `Encodable` annotating needed type with `@Encodable`
warning: 'CodedAt(_:caseStyle:keyStyle:)' doesn't exist at '/MacroCodableKit/TaggedCodable()'
--> ../Macros/TaggedAnnotations.swift:5:25-5:55
3 | /// the associated-value parameters.
4 | ///
5 + /// Use together with ``CodedAt(_:caseStyle:keyStyle:)`` and optionally ``ContentAt(_:)``:
6 | /// ```swift
7 | /// @TaggedCodable
warning: 'Codable()' doesn't exist at '/MacroCodableKit/CustomCodingDecoding'
--> ../Misc/CustomCoding/CustomCodingDecoding.swift:40:108-40:117
38 | /// ```
39 | ///
40 + /// Custom strategies utilize this namespace to implement decoding implementations which then is used by ``Codable()`` and ``Decodable()``.
41 | ///
42 | /// You can provide decoding logic yourself by using ``CustomCoding(_:)`` and implementing needed extension in ``CustomCodingDecoding``. See build-in ``SafeDecoding`` along with ``safeDecoding(_:forKey:container:)-1qnwn`` and ``safeDecoding(_:forKey:container:)-3ytig``.
warning: 'Decodable()' doesn't exist at '/MacroCodableKit/CustomCodingDecoding'
--> ../Misc/CustomCoding/CustomCodingDecoding.swift:40:126-40:137
38 | /// ```
39 | ///
40 + /// Custom strategies utilize this namespace to implement decoding implementations which then is used by ``Codable()`` and ``Decodable()``.
41 | ///
42 | /// You can provide decoding logic yourself by using ``CustomCoding(_:)`` and implementing needed extension in ``CustomCodingDecoding``. See build-in ``SafeDecoding`` along with ``safeDecoding(_:forKey:container:)-1qnwn`` and ``safeDecoding(_:forKey:container:)-3ytig``.
warning: 'Codable()' doesn't exist at '/MacroCodableKit/CustomCodingEncoding'
--> ../Misc/CustomCoding/CustomCodingEncoding.swift:40:108-40:117
38 | /// ```
39 | ///
40 + /// Custom strategies utilize this namespace to implement encoding implementations which then is used by ``Codable()`` and ``Encodable()``.
41 | ///
42 | /// You can provide encoding logic yourself by using ``CustomCoding(_:)`` and implementing needed extension in ``CustomCodingEncoding``. See build-in ``SafeDecoding`` along with ``safeDecoding(_:forKey:container:)-7cwmw`` and ``safeDecoding(_:forKey:container:)-9b19z``.
warning: 'Encodable()' doesn't exist at '/MacroCodableKit/CustomCodingEncoding'
--> ../Misc/CustomCoding/CustomCodingEncoding.swift:40:127-40:138
38 | /// ```
39 | ///
40 + /// Custom strategies utilize this namespace to implement encoding implementations which then is used by ``Codable()`` and ``Encodable()``.
41 | ///
42 | /// You can provide encoding logic yourself by using ``CustomCoding(_:)`` and implementing needed extension in ``CustomCodingEncoding``. See build-in ``SafeDecoding`` along with ``safeDecoding(_:forKey:container:)-7cwmw`` and ``safeDecoding(_:forKey:container:)-9b19z``.
warning: External name 'forKey' used to document parameter
--> ../Misc/CustomCoding/Predefined/SafeDecoding/SafeDecoding+Array.swift:19:15-19:21
17 | /// - Parameters:
18 | /// - _: The type of the array elements.
19 + /// - forKey: The key to decode the array.
| ╰─suggestion: Replace 'forKey' with 'key'
20 | /// - container: The container to decode from.
21 | ///
warning: External name 'forKey' used to document parameter
--> ../Misc/CustomCoding/Predefined/SafeDecoding/SafeDecoding+Array.swift:53:15-53:21
51 | /// - Parameters:
52 | /// - _: The type of the array elements.
53 + /// - forKey: The key to decode the array.
| ╰─suggestion: Replace 'forKey' with 'key'
54 | /// - container: The container to decode from.
55 | ///
warning: 'Codable()' doesn't exist at '/MacroCodableKit/SafeDecoding'
--> ../Misc/CustomCoding/Predefined/SafeDecoding/SafeDecoding.swift:12:156-12:165
10 | /// ``SafeDecoding`` provides a robust way to decode collections, ensuring that decodable elements are captured and errors are logged for further inspection. Suppressed errors are transfered to ``CustomCodingDecoding/logError(_:)``
11 | ///
12 + /// To utilize this strategy, annotate the property with ``CustomCoding(_:)`` passing ``SafeDecoding``. Ensure the parent type is annotated with one of ``Codable()`` or ``Decodable()``.
13 | ///
14 | /// - ``SafeDecoding`` with Arrays:
warning: 'Decodable()' doesn't exist at '/MacroCodableKit/SafeDecoding'
--> ../Misc/CustomCoding/Predefined/SafeDecoding/SafeDecoding.swift:12:173-12:184
10 | /// ``SafeDecoding`` provides a robust way to decode collections, ensuring that decodable elements are captured and errors are logged for further inspection. Suppressed errors are transfered to ``CustomCodingDecoding/logError(_:)``
11 | ///
12 + /// To utilize this strategy, annotate the property with ``CustomCoding(_:)`` passing ``SafeDecoding``. Ensure the parent type is annotated with one of ``Codable()`` or ``Decodable()``.
13 | ///
14 | /// - ``SafeDecoding`` with Arrays:
warning: 'DefaultValue(_:)' doesn't exist at '/MacroCodableKit/BoolFalse'
--> ../Misc/DefaultProviders/BoolFalse.swift:8:56-8:72
6 | //
7 |
8 + /// Provides a default `false` value for booleans in ``DefaultValue(_:)``.
9 | public typealias BoolFalse = DefaultFalseValueProvider
10 |
warning: 'DefaultValue(_:)' doesn't exist at '/MacroCodableKit/BoolTrue'
--> ../Misc/DefaultProviders/BoolTrue.swift:8:55-8:71
6 | //
7 |
8 + /// Provides a default `true` value for booleans in ``DefaultValue(_:)``.
9 | public typealias BoolTrue = DefaultTrueValueProvider
10 |
warning: 'DefaultValue(_:)' doesn't exist at '/MacroCodableKit/DoubleZero'
--> ../Misc/DefaultProviders/DoubleZero.swift:8:51-8:67
6 | //
7 |
8 + /// Provides a default `0` value for doubles in ``DefaultValue(_:)``.
9 | public typealias DoubleZero = DefaultDoubleZeroValueProvider
10 |
warning: 'DefaultValue(_:)' doesn't exist at '/MacroCodableKit/EmptyString'
--> ../Misc/DefaultProviders/EmptyString.swift:8:52-8:68
6 | //
7 |
8 + /// Provides a default `""` value for strings in ``DefaultValue(_:)``.
9 | public typealias EmptyString = DefaultEmptyStringValueProvider
10 |
warning: 'DefaultValue(_:)' doesn't exist at '/MacroCodableKit/IntZero'
--> ../Misc/DefaultProviders/IntZero.swift:8:48-8:64
6 | //
7 |
8 + /// Provides a default `0` value for ints in ``DefaultValue(_:)``.
9 | public typealias IntZero = DefaultIntZeroValueProvider
10 |
warning: 'DefaultValue(_:)' doesn't exist at '/MacroCodableKit/DefaultValueProvider'
--> ../Misc/DefaultValueStrategy.swift:8:50-8:66
6 | //
7 |
8 + /// A protocol for providing default values in ``DefaultValue(_:)`` macro
| ├─suggestion: Replace 'DefaultValue(_:)' with 'DefaultValue'
| ╰─suggestion: Replace 'DefaultValue(_:)' with 'defaultValue'
9 | public protocol DefaultValueProvider {
10 | /// The type of the default value.
Finished building documentation for 'MacroCodableKit' (0.23s)
Generated documentation archive at:
/Users/admin/builder/spi-builder-workspace/.docs/haifengkao/macrocodablekit/main
Fetching https://github.com/swiftlang/swift-docc-plugin
Updating https://github.com/stackotter/swift-macro-toolkit
Updating https://github.com/swiftlang/swift-syntax.git
Updating https://github.com/pointfreeco/swift-issue-reporting
Updating https://github.com/pointfreeco/swift-macro-testing
Updating https://github.com/pointfreeco/swift-snapshot-testing
Updating https://github.com/pointfreeco/swift-custom-dump
Updated https://github.com/stackotter/swift-macro-toolkit (0.56s)
[1/2345] Fetching swift-docc-plugin
Updated https://github.com/swiftlang/swift-syntax.git (1.04s)
Updated https://github.com/pointfreeco/swift-macro-testing (1.12s)
Updated https://github.com/pointfreeco/swift-custom-dump (1.12s)
Updated https://github.com/pointfreeco/swift-issue-reporting (1.12s)
Updated https://github.com/pointfreeco/swift-snapshot-testing (1.12s)
Fetched https://github.com/swiftlang/swift-docc-plugin (1.40s)
Computing version for https://github.com/pointfreeco/swift-macro-testing
Computed https://github.com/pointfreeco/swift-macro-testing at 0.7.0 (1.99s)
Computing version for https://github.com/stackotter/swift-macro-toolkit
Computed https://github.com/stackotter/swift-macro-toolkit at 0.9.0 (0.63s)
Computing version for https://github.com/swiftlang/swift-syntax.git
Computed https://github.com/swiftlang/swift-syntax.git at 601.0.1 (0.71s)
Computing version for https://github.com/pointfreeco/swift-snapshot-testing
Computed https://github.com/pointfreeco/swift-snapshot-testing at 1.19.7 (0.58s)
Computing version for https://github.com/pointfreeco/swift-custom-dump
Computed https://github.com/pointfreeco/swift-custom-dump at 1.7.3 (0.55s)
Computing version for https://github.com/pointfreeco/swift-issue-reporting
Computed https://github.com/pointfreeco/swift-issue-reporting at 2.1.2 (0.64s)
Computing version for https://github.com/swiftlang/swift-docc-plugin
Computed https://github.com/swiftlang/swift-docc-plugin at 1.5.0 (0.62s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3864] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit (1.33s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (2.02s)
Creating working copy for https://github.com/swiftlang/swift-docc-symbolkit
Working copy of https://github.com/swiftlang/swift-docc-symbolkit resolved at 1.0.0
Creating working copy for https://github.com/swiftlang/swift-docc-plugin
Working copy of https://github.com/swiftlang/swift-docc-plugin resolved at 1.5.0
Building for debugging...
[Planning deferred tasks]
[20 / 43] Snippets
[31 / 58] SymbolKit
[40 / 58] SymbolKit
[52 / 59] SymbolKit
[56 / 63] snippet-extract-product
[59 / 63] snippet-extract-product
[61 / 63] snippet-extract-product
Build complete! (2.25 sec)
Building for debugging...
[Computing dependencies]
[Constructing description]
[Pre-planning 1 / 592]
[Planning deferred tasks]
[1 / 220] SwiftSyntax
[19 / 129] SwiftSyntax600
[35 / 127] MacroCodableKitShared
[38 / 127] SwiftSyntax
[49 / 138] SwiftSyntax
[57 / 147] SwiftBasicFormat
[66 / 166] SwiftParser
[71 / 176] SwiftDiagnostics
[79 / 168] SwiftParser
[80 / 168] SwiftParser
[83 / 168] SwiftDiagnostics
[87 / 173] SwiftDiagnostics
[91 / 173] SwiftDiagnostics
[98 / 181] SwiftParser
[108 / 192] SwiftOperators
[109 / 203] SwiftParserDiagnostics
[115 / 203] SwiftParserDiagnostics
[120 / 199] SwiftOperators
[126 / 200] SwiftSyntaxBuilder
[127 / 201] SwiftOperators
[137 / 212] SwiftSyntaxBuilder
[139 / 212] SwiftParserDiagnostics
[140 / 212] SwiftSyntaxBuilder
[145 / 209] SwiftSyntaxMacros
[155 / 220] SwiftSyntaxMacros
[160 / 222] SwiftSyntaxMacros
[171 / 232] SwiftSyntaxMacroExpansion
[172 / 224] SwiftSyntaxMacroExpansion
[176 / 226] SwiftSyntaxMacroExpansion
[188 / 236] SwiftCompilerPluginMessageHandling
[189 / 236] SwiftCompilerPluginMessageHandling
[192 / 233] SwiftCompilerPlugin
[199 / 231] SwiftCompilerPlugin
[200 / 230] MacroToolkit
[211 / 241] MacroToolkit
[213 / 237] MacroToolkit
[216 / 230] Macro
[227 / 241] Macro
[228 / 241] Macro
[231 / 239] MacroCodableKit
[242 / 250] MacroCodableKit
Build complete! (16.51 sec)
447
5 /Users/admin/builder/spi-builder-workspace/.docs/haifengkao/macrocodablekit/main
✅ Doc result (uploading) reported
========================================
SyncDocs
========================================
Doc archive source directory: $PWD/.docs/haifengkao/macrocodablekit/main
File count: 447
Doc size: 5.0MB
Preparing doc bundle ...
Using presigned URL upload - AWS credentials not required
Uploading -haifengkao-macrocodablekit-main-a921ec6a.zip to presigned URL
Starting upload of 1016982 bytes...
Upload completed successfully
Done.