Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add sendable conformance #149

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
jobs:
test-pushpull:
runs-on: ubuntu-latest
container: swift:5.8-focal
container: swift:5.9.2-jammy
steps:
- uses: actions/checkout@v3
- name: Run tests
Expand Down
10 changes: 8 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// swift-tools-version:5.8
// swift-tools-version:5.9

import PackageDescription

Expand Down Expand Up @@ -32,7 +32,10 @@ let package = Package(
dependencies: [
.product(name: "Collections", package: "swift-collections")
],
exclude: ["Abstraction/README.md", "Framework/README.md"]
exclude: ["Abstraction/README.md", "Framework/README.md"],
swiftSettings: [
.enableExperimentalFeature("StrictConcurrency=complete")
]
),
.target(
name: "HTMLKitConverter",
Expand All @@ -54,6 +57,9 @@ let package = Package(
dependencies: [
.target(name: "HTMLKit"),
.product(name: "Vapor", package: "vapor"),
],
swiftSettings: [
.enableExperimentalFeature("StrictConcurrency=complete")
]
),
.target(
Expand Down
2 changes: 1 addition & 1 deletion Sources/HTMLKit/Framework/Rendering/Features.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/// An option set of features.
public struct Features: OptionSet {
public struct Features: OptionSet, Sendable {

public var rawValue: Int

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Foundation

internal final class Markdown {
internal struct Markdown: Sendable {

/// The markdowns characters
internal static let characters = CharacterSet(charactersIn: "*_~[`")
Expand Down
Loading