Build Information
Successful build of SwiftCommonMark with Swift 6.0 for macOS (SPM).
Swift 6 data race errors: 5
Build Command
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/gonzalezreal/SwiftCommonMark.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/gonzalezreal/SwiftCommonMark
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 6539d59 Update README.md
Cloned https://github.com/gonzalezreal/SwiftCommonMark.git
Revision (git rev-parse @):
6539d5959fc085039ee34504ac171d68b640f808
SUCCESS checkout https://github.com/gonzalezreal/SwiftCommonMark.git at main
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $workDir
https://github.com/gonzalezreal/SwiftCommonMark.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/21] Compiling cmark inlines.c
[1/21] Compiling cmark houdini_html_u.c
[2/21] Compiling cmark latex.c
[3/21] Compiling cmark html.c
[4/21] Compiling cmark houdini_href_e.c
[5/21] Write swift-version-6F35C1178C84523A.txt
[6/21] Compiling cmark cmark_ctype.c
[7/21] Compiling cmark xml.c
[8/21] Compiling cmark commonmark.c
[9/21] Compiling cmark houdini_html_e.c
[10/21] Compiling cmark man.c
[11/21] Write sources
[12/21] Compiling cmark references.c
[13/21] Compiling cmark render.c
[14/21] Compiling cmark iterator.c
[15/21] Compiling cmark buffer.c
[16/21] Compiling cmark node.c
[17/21] Compiling cmark cmark.c
[18/21] Compiling cmark blocks.c
[19/21] Compiling cmark utf8.c
[20/21] Compiling cmark scanners.c
[22/48] Emitting module CommonMark
/Users/admin/builder/spi-builder-workspace/Sources/CommonMark/Document/ParsingOptions.swift:14:23: warning: static property 'smart' is not concurrency-safe because non-'Sendable' type 'Document.ParsingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
4 | extension Document {
5 | /// Options that affect the parsing of a CommonMark-formatted string into a ``Document``.
6 | public struct ParsingOptions: OptionSet {
| `- note: consider making struct 'ParsingOptions' conform to the 'Sendable' protocol
7 | public var rawValue: Int32
8 |
:
12 |
13 | /// Convert straight quotes to curly, --- to em dashes, -- to en dashes.
14 | public static let smart = ParsingOptions(rawValue: CMARK_OPT_SMART)
| |- warning: static property 'smart' is not concurrency-safe because non-'Sendable' type 'Document.ParsingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'smart' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 | }
16 | }
/Users/admin/builder/spi-builder-workspace/Sources/CommonMark/Document/RenderingOptions.swift:14:23: warning: static property 'sourcePosition' is not concurrency-safe because non-'Sendable' type 'Document.RenderingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
4 | extension Document {
5 | /// Options that affect the rendering a ``Document`` as HTML.
6 | public struct RenderingOptions: OptionSet {
| `- note: consider making struct 'RenderingOptions' conform to the 'Sendable' protocol
7 | public var rawValue: Int32
8 |
:
12 |
13 | /// Include a `data-sourcepos` attribute on all block elements.
14 | public static let sourcePosition = RenderingOptions(rawValue: CMARK_OPT_SOURCEPOS)
| |- warning: static property 'sourcePosition' is not concurrency-safe because non-'Sendable' type 'Document.RenderingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'sourcePosition' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 |
16 | /// Render `softbreak` elements as hard line breaks.
/Users/admin/builder/spi-builder-workspace/Sources/CommonMark/Document/RenderingOptions.swift:17:23: warning: static property 'hardBreaks' is not concurrency-safe because non-'Sendable' type 'Document.RenderingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
4 | extension Document {
5 | /// Options that affect the rendering a ``Document`` as HTML.
6 | public struct RenderingOptions: OptionSet {
| `- note: consider making struct 'RenderingOptions' conform to the 'Sendable' protocol
7 | public var rawValue: Int32
8 |
:
15 |
16 | /// Render `softbreak` elements as hard line breaks.
17 | public static let hardBreaks = RenderingOptions(rawValue: CMARK_OPT_HARDBREAKS)
| |- warning: static property 'hardBreaks' is not concurrency-safe because non-'Sendable' type 'Document.RenderingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'hardBreaks' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 |
19 | /// Render raw HTML and unsafe links (`javascript:`, `vbscript:`, `file:`, and `data:`, except for `image/png`, `image/gif`,
/Users/admin/builder/spi-builder-workspace/Sources/CommonMark/Document/RenderingOptions.swift:22:23: warning: static property 'unsafe' is not concurrency-safe because non-'Sendable' type 'Document.RenderingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
4 | extension Document {
5 | /// Options that affect the rendering a ``Document`` as HTML.
6 | public struct RenderingOptions: OptionSet {
| `- note: consider making struct 'RenderingOptions' conform to the 'Sendable' protocol
7 | public var rawValue: Int32
8 |
:
20 | /// `image/jpeg`, or `image/webp` mime types). By default, raw HTML is replaced by a placeholder HTML comment. Unsafe links are
21 | /// replaced by empty strings.
22 | public static let unsafe = RenderingOptions(rawValue: CMARK_OPT_UNSAFE)
| |- warning: static property 'unsafe' is not concurrency-safe because non-'Sendable' type 'Document.RenderingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'unsafe' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 |
24 | /// Render `softBreak` elements as spaces.
/Users/admin/builder/spi-builder-workspace/Sources/CommonMark/Document/RenderingOptions.swift:25:23: warning: static property 'noBreaks' is not concurrency-safe because non-'Sendable' type 'Document.RenderingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
4 | extension Document {
5 | /// Options that affect the rendering a ``Document`` as HTML.
6 | public struct RenderingOptions: OptionSet {
| `- note: consider making struct 'RenderingOptions' conform to the 'Sendable' protocol
7 | public var rawValue: Int32
8 |
:
23 |
24 | /// Render `softBreak` elements as spaces.
25 | public static let noBreaks = RenderingOptions(rawValue: CMARK_OPT_NOBREAKS)
| |- warning: static property 'noBreaks' is not concurrency-safe because non-'Sendable' type 'Document.RenderingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'noBreaks' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
26 | }
27 | }
[23/50] Compiling CommonMark BlockQuote.swift
[24/50] Compiling CommonMark BulletList.swift
[25/50] Compiling CommonMark CodeBlock.swift
[26/50] Compiling CommonMark Strong.swift
[27/50] Compiling CommonMark Deprecations.swift
[28/50] Compiling CommonMark HTMLBlock.swift
[29/50] Compiling CommonMark Heading.swift
[30/50] Compiling CommonMark ListItem.swift
[31/50] Compiling CommonMark ParsingError.swift
/Users/admin/builder/spi-builder-workspace/Sources/CommonMark/Document/ParsingOptions.swift:14:23: warning: static property 'smart' is not concurrency-safe because non-'Sendable' type 'Document.ParsingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
4 | extension Document {
5 | /// Options that affect the parsing of a CommonMark-formatted string into a ``Document``.
6 | public struct ParsingOptions: OptionSet {
| `- note: consider making struct 'ParsingOptions' conform to the 'Sendable' protocol
7 | public var rawValue: Int32
8 |
:
12 |
13 | /// Convert straight quotes to curly, --- to em dashes, -- to en dashes.
14 | public static let smart = ParsingOptions(rawValue: CMARK_OPT_SMART)
| |- warning: static property 'smart' is not concurrency-safe because non-'Sendable' type 'Document.ParsingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'smart' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 | }
16 | }
/Users/admin/builder/spi-builder-workspace/Sources/CommonMark/Document/RenderingOptions.swift:14:23: warning: static property 'sourcePosition' is not concurrency-safe because non-'Sendable' type 'Document.RenderingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
4 | extension Document {
5 | /// Options that affect the rendering a ``Document`` as HTML.
6 | public struct RenderingOptions: OptionSet {
| `- note: consider making struct 'RenderingOptions' conform to the 'Sendable' protocol
7 | public var rawValue: Int32
8 |
:
12 |
13 | /// Include a `data-sourcepos` attribute on all block elements.
14 | public static let sourcePosition = RenderingOptions(rawValue: CMARK_OPT_SOURCEPOS)
| |- warning: static property 'sourcePosition' is not concurrency-safe because non-'Sendable' type 'Document.RenderingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'sourcePosition' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 |
16 | /// Render `softbreak` elements as hard line breaks.
/Users/admin/builder/spi-builder-workspace/Sources/CommonMark/Document/RenderingOptions.swift:17:23: warning: static property 'hardBreaks' is not concurrency-safe because non-'Sendable' type 'Document.RenderingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
4 | extension Document {
5 | /// Options that affect the rendering a ``Document`` as HTML.
6 | public struct RenderingOptions: OptionSet {
| `- note: consider making struct 'RenderingOptions' conform to the 'Sendable' protocol
7 | public var rawValue: Int32
8 |
:
15 |
16 | /// Render `softbreak` elements as hard line breaks.
17 | public static let hardBreaks = RenderingOptions(rawValue: CMARK_OPT_HARDBREAKS)
| |- warning: static property 'hardBreaks' is not concurrency-safe because non-'Sendable' type 'Document.RenderingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'hardBreaks' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 |
19 | /// Render raw HTML and unsafe links (`javascript:`, `vbscript:`, `file:`, and `data:`, except for `image/png`, `image/gif`,
/Users/admin/builder/spi-builder-workspace/Sources/CommonMark/Document/RenderingOptions.swift:22:23: warning: static property 'unsafe' is not concurrency-safe because non-'Sendable' type 'Document.RenderingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
4 | extension Document {
5 | /// Options that affect the rendering a ``Document`` as HTML.
6 | public struct RenderingOptions: OptionSet {
| `- note: consider making struct 'RenderingOptions' conform to the 'Sendable' protocol
7 | public var rawValue: Int32
8 |
:
20 | /// `image/jpeg`, or `image/webp` mime types). By default, raw HTML is replaced by a placeholder HTML comment. Unsafe links are
21 | /// replaced by empty strings.
22 | public static let unsafe = RenderingOptions(rawValue: CMARK_OPT_UNSAFE)
| |- warning: static property 'unsafe' is not concurrency-safe because non-'Sendable' type 'Document.RenderingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'unsafe' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 |
24 | /// Render `softBreak` elements as spaces.
/Users/admin/builder/spi-builder-workspace/Sources/CommonMark/Document/RenderingOptions.swift:25:23: warning: static property 'noBreaks' is not concurrency-safe because non-'Sendable' type 'Document.RenderingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
4 | extension Document {
5 | /// Options that affect the rendering a ``Document`` as HTML.
6 | public struct RenderingOptions: OptionSet {
| `- note: consider making struct 'RenderingOptions' conform to the 'Sendable' protocol
7 | public var rawValue: Int32
8 |
:
23 |
24 | /// Render `softBreak` elements as spaces.
25 | public static let noBreaks = RenderingOptions(rawValue: CMARK_OPT_NOBREAKS)
| |- warning: static property 'noBreaks' is not concurrency-safe because non-'Sendable' type 'Document.RenderingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'noBreaks' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
26 | }
27 | }
[32/50] Compiling CommonMark ParsingOptions.swift
/Users/admin/builder/spi-builder-workspace/Sources/CommonMark/Document/ParsingOptions.swift:14:23: warning: static property 'smart' is not concurrency-safe because non-'Sendable' type 'Document.ParsingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
4 | extension Document {
5 | /// Options that affect the parsing of a CommonMark-formatted string into a ``Document``.
6 | public struct ParsingOptions: OptionSet {
| `- note: consider making struct 'ParsingOptions' conform to the 'Sendable' protocol
7 | public var rawValue: Int32
8 |
:
12 |
13 | /// Convert straight quotes to curly, --- to em dashes, -- to en dashes.
14 | public static let smart = ParsingOptions(rawValue: CMARK_OPT_SMART)
| |- warning: static property 'smart' is not concurrency-safe because non-'Sendable' type 'Document.ParsingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'smart' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 | }
16 | }
/Users/admin/builder/spi-builder-workspace/Sources/CommonMark/Document/RenderingOptions.swift:14:23: warning: static property 'sourcePosition' is not concurrency-safe because non-'Sendable' type 'Document.RenderingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
4 | extension Document {
5 | /// Options that affect the rendering a ``Document`` as HTML.
6 | public struct RenderingOptions: OptionSet {
| `- note: consider making struct 'RenderingOptions' conform to the 'Sendable' protocol
7 | public var rawValue: Int32
8 |
:
12 |
13 | /// Include a `data-sourcepos` attribute on all block elements.
14 | public static let sourcePosition = RenderingOptions(rawValue: CMARK_OPT_SOURCEPOS)
| |- warning: static property 'sourcePosition' is not concurrency-safe because non-'Sendable' type 'Document.RenderingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'sourcePosition' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 |
16 | /// Render `softbreak` elements as hard line breaks.
/Users/admin/builder/spi-builder-workspace/Sources/CommonMark/Document/RenderingOptions.swift:17:23: warning: static property 'hardBreaks' is not concurrency-safe because non-'Sendable' type 'Document.RenderingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
4 | extension Document {
5 | /// Options that affect the rendering a ``Document`` as HTML.
6 | public struct RenderingOptions: OptionSet {
| `- note: consider making struct 'RenderingOptions' conform to the 'Sendable' protocol
7 | public var rawValue: Int32
8 |
:
15 |
16 | /// Render `softbreak` elements as hard line breaks.
17 | public static let hardBreaks = RenderingOptions(rawValue: CMARK_OPT_HARDBREAKS)
| |- warning: static property 'hardBreaks' is not concurrency-safe because non-'Sendable' type 'Document.RenderingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'hardBreaks' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 |
19 | /// Render raw HTML and unsafe links (`javascript:`, `vbscript:`, `file:`, and `data:`, except for `image/png`, `image/gif`,
/Users/admin/builder/spi-builder-workspace/Sources/CommonMark/Document/RenderingOptions.swift:22:23: warning: static property 'unsafe' is not concurrency-safe because non-'Sendable' type 'Document.RenderingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
4 | extension Document {
5 | /// Options that affect the rendering a ``Document`` as HTML.
6 | public struct RenderingOptions: OptionSet {
| `- note: consider making struct 'RenderingOptions' conform to the 'Sendable' protocol
7 | public var rawValue: Int32
8 |
:
20 | /// `image/jpeg`, or `image/webp` mime types). By default, raw HTML is replaced by a placeholder HTML comment. Unsafe links are
21 | /// replaced by empty strings.
22 | public static let unsafe = RenderingOptions(rawValue: CMARK_OPT_UNSAFE)
| |- warning: static property 'unsafe' is not concurrency-safe because non-'Sendable' type 'Document.RenderingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'unsafe' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 |
24 | /// Render `softBreak` elements as spaces.
/Users/admin/builder/spi-builder-workspace/Sources/CommonMark/Document/RenderingOptions.swift:25:23: warning: static property 'noBreaks' is not concurrency-safe because non-'Sendable' type 'Document.RenderingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
4 | extension Document {
5 | /// Options that affect the rendering a ``Document`` as HTML.
6 | public struct RenderingOptions: OptionSet {
| `- note: consider making struct 'RenderingOptions' conform to the 'Sendable' protocol
7 | public var rawValue: Int32
8 |
:
23 |
24 | /// Render `softBreak` elements as spaces.
25 | public static let noBreaks = RenderingOptions(rawValue: CMARK_OPT_NOBREAKS)
| |- warning: static property 'noBreaks' is not concurrency-safe because non-'Sendable' type 'Document.RenderingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'noBreaks' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
26 | }
27 | }
[33/50] Compiling CommonMark RenderingOptions.swift
/Users/admin/builder/spi-builder-workspace/Sources/CommonMark/Document/ParsingOptions.swift:14:23: warning: static property 'smart' is not concurrency-safe because non-'Sendable' type 'Document.ParsingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
4 | extension Document {
5 | /// Options that affect the parsing of a CommonMark-formatted string into a ``Document``.
6 | public struct ParsingOptions: OptionSet {
| `- note: consider making struct 'ParsingOptions' conform to the 'Sendable' protocol
7 | public var rawValue: Int32
8 |
:
12 |
13 | /// Convert straight quotes to curly, --- to em dashes, -- to en dashes.
14 | public static let smart = ParsingOptions(rawValue: CMARK_OPT_SMART)
| |- warning: static property 'smart' is not concurrency-safe because non-'Sendable' type 'Document.ParsingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'smart' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 | }
16 | }
/Users/admin/builder/spi-builder-workspace/Sources/CommonMark/Document/RenderingOptions.swift:14:23: warning: static property 'sourcePosition' is not concurrency-safe because non-'Sendable' type 'Document.RenderingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
4 | extension Document {
5 | /// Options that affect the rendering a ``Document`` as HTML.
6 | public struct RenderingOptions: OptionSet {
| `- note: consider making struct 'RenderingOptions' conform to the 'Sendable' protocol
7 | public var rawValue: Int32
8 |
:
12 |
13 | /// Include a `data-sourcepos` attribute on all block elements.
14 | public static let sourcePosition = RenderingOptions(rawValue: CMARK_OPT_SOURCEPOS)
| |- warning: static property 'sourcePosition' is not concurrency-safe because non-'Sendable' type 'Document.RenderingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'sourcePosition' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 |
16 | /// Render `softbreak` elements as hard line breaks.
/Users/admin/builder/spi-builder-workspace/Sources/CommonMark/Document/RenderingOptions.swift:17:23: warning: static property 'hardBreaks' is not concurrency-safe because non-'Sendable' type 'Document.RenderingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
4 | extension Document {
5 | /// Options that affect the rendering a ``Document`` as HTML.
6 | public struct RenderingOptions: OptionSet {
| `- note: consider making struct 'RenderingOptions' conform to the 'Sendable' protocol
7 | public var rawValue: Int32
8 |
:
15 |
16 | /// Render `softbreak` elements as hard line breaks.
17 | public static let hardBreaks = RenderingOptions(rawValue: CMARK_OPT_HARDBREAKS)
| |- warning: static property 'hardBreaks' is not concurrency-safe because non-'Sendable' type 'Document.RenderingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'hardBreaks' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 |
19 | /// Render raw HTML and unsafe links (`javascript:`, `vbscript:`, `file:`, and `data:`, except for `image/png`, `image/gif`,
/Users/admin/builder/spi-builder-workspace/Sources/CommonMark/Document/RenderingOptions.swift:22:23: warning: static property 'unsafe' is not concurrency-safe because non-'Sendable' type 'Document.RenderingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
4 | extension Document {
5 | /// Options that affect the rendering a ``Document`` as HTML.
6 | public struct RenderingOptions: OptionSet {
| `- note: consider making struct 'RenderingOptions' conform to the 'Sendable' protocol
7 | public var rawValue: Int32
8 |
:
20 | /// `image/jpeg`, or `image/webp` mime types). By default, raw HTML is replaced by a placeholder HTML comment. Unsafe links are
21 | /// replaced by empty strings.
22 | public static let unsafe = RenderingOptions(rawValue: CMARK_OPT_UNSAFE)
| |- warning: static property 'unsafe' is not concurrency-safe because non-'Sendable' type 'Document.RenderingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'unsafe' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 |
24 | /// Render `softBreak` elements as spaces.
/Users/admin/builder/spi-builder-workspace/Sources/CommonMark/Document/RenderingOptions.swift:25:23: warning: static property 'noBreaks' is not concurrency-safe because non-'Sendable' type 'Document.RenderingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
4 | extension Document {
5 | /// Options that affect the rendering a ``Document`` as HTML.
6 | public struct RenderingOptions: OptionSet {
| `- note: consider making struct 'RenderingOptions' conform to the 'Sendable' protocol
7 | public var rawValue: Int32
8 |
:
23 |
24 | /// Render `softBreak` elements as spaces.
25 | public static let noBreaks = RenderingOptions(rawValue: CMARK_OPT_NOBREAKS)
| |- warning: static property 'noBreaks' is not concurrency-safe because non-'Sendable' type 'Document.RenderingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'noBreaks' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
26 | }
27 | }
[34/50] Compiling CommonMark ListItemArrayBuilder.swift
[35/50] Compiling CommonMark OrderedList.swift
[36/50] Compiling CommonMark Paragraph.swift
[37/50] Compiling CommonMark InlineHTML.swift
[38/50] Compiling CommonMark Link.swift
[39/50] Compiling CommonMark Block+cmark.swift
[40/50] Compiling CommonMark Block.swift
[41/50] Compiling CommonMark BlockArrayBuilder.swift
[42/50] Compiling CommonMark CommonMarkNode.swift
[43/50] Compiling CommonMark Document+cmark.swift
[44/50] Compiling CommonMark Document.swift
[45/50] Compiling CommonMark Emphasis.swift
[46/50] Compiling CommonMark Image.swift
[47/50] Compiling CommonMark Inline+cmark.swift
[48/50] Compiling CommonMark Inline.swift
[49/50] Compiling CommonMark InlineArrayBuilder.swift
[50/50] Compiling CommonMark InlineCode.swift
Build complete! (25.67s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "SwiftCommonMark",
"name" : "SwiftCommonMark",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "cmark",
"targets" : [
"cmark"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "CommonMark",
"targets" : [
"CommonMark"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "cmark",
"module_type" : "ClangTarget",
"name" : "cmark",
"path" : "Sources/cmark",
"product_memberships" : [
"cmark",
"CommonMark"
],
"sources" : [
"blocks.c",
"buffer.c",
"cmark.c",
"cmark_ctype.c",
"commonmark.c",
"houdini_href_e.c",
"houdini_html_e.c",
"houdini_html_u.c",
"html.c",
"inlines.c",
"iterator.c",
"latex.c",
"man.c",
"node.c",
"references.c",
"render.c",
"scanners.c",
"utf8.c",
"xml.c"
],
"type" : "library"
},
{
"c99name" : "CommonMarkTests",
"module_type" : "SwiftTarget",
"name" : "CommonMarkTests",
"path" : "Tests/CommonMarkTests",
"sources" : [
"BlockArrayBuilderTests.swift",
"DocumentTests.swift",
"InlineArrayBuilderTests.swift",
"ListItemArrayBuilderTests.swift"
],
"target_dependencies" : [
"CommonMark"
],
"type" : "test"
},
{
"c99name" : "CommonMark",
"module_type" : "SwiftTarget",
"name" : "CommonMark",
"path" : "Sources/CommonMark",
"product_memberships" : [
"CommonMark"
],
"sources" : [
"Blocks/Block+cmark.swift",
"Blocks/Block.swift",
"Blocks/BlockArrayBuilder.swift",
"Blocks/BlockQuote.swift",
"Blocks/BulletList.swift",
"Blocks/CodeBlock.swift",
"Blocks/HTMLBlock.swift",
"Blocks/Heading.swift",
"Blocks/ListItem.swift",
"Blocks/ListItemArrayBuilder.swift",
"Blocks/OrderedList.swift",
"Blocks/Paragraph.swift",
"Document/CommonMarkNode.swift",
"Document/Document+cmark.swift",
"Document/Document.swift",
"Document/ParsingError.swift",
"Document/ParsingOptions.swift",
"Document/RenderingOptions.swift",
"Inlines/Emphasis.swift",
"Inlines/Image.swift",
"Inlines/Inline+cmark.swift",
"Inlines/Inline.swift",
"Inlines/InlineArrayBuilder.swift",
"Inlines/InlineCode.swift",
"Inlines/InlineHTML.swift",
"Inlines/Link.swift",
"Inlines/Strong.swift",
"Internal/Deprecations.swift"
],
"target_dependencies" : [
"cmark"
],
"type" : "library"
}
],
"tools_version" : "5.3"
}
Done.