Skip to content

Commit

Permalink
Note and protobuf update
Browse files Browse the repository at this point in the history
  • Loading branch information
trasch committed Aug 7, 2024
1 parent aa05ec5 commit bd65965
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 21 deletions.
3 changes: 3 additions & 0 deletions Sources/MVTCLI/Version.swift
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
// This file will be overwritten by the
// homebrew Github action.
// DO NOT change this file.
public let cliVersion = "v1.7.0"
26 changes: 5 additions & 21 deletions Sources/MVTTools/VectorTile_Tile.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ fileprivate struct _GeneratedWithProtocGenSwiftVersion: SwiftProtobuf.ProtobufAP
typealias Version = _2
}

struct VectorTile_Tile: SwiftProtobuf.ExtensibleMessage {
struct VectorTile_Tile: SwiftProtobuf.ExtensibleMessage, Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
Expand All @@ -30,7 +30,7 @@ struct VectorTile_Tile: SwiftProtobuf.ExtensibleMessage {
var unknownFields = SwiftProtobuf.UnknownStorage()

/// GeomType is described in section 4.3.4 of the specification
enum GeomType: SwiftProtobuf.Enum {
enum GeomType: SwiftProtobuf.Enum, Swift.CaseIterable {
typealias RawValue = Int
case unknown // = 0
case point // = 1
Expand Down Expand Up @@ -64,7 +64,7 @@ struct VectorTile_Tile: SwiftProtobuf.ExtensibleMessage {

/// Variant type encoding
/// The use of values is described in section 4.1 of the specification
struct Value: SwiftProtobuf.ExtensibleMessage {
struct Value: SwiftProtobuf.ExtensibleMessage, Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
Expand Down Expand Up @@ -148,7 +148,7 @@ struct VectorTile_Tile: SwiftProtobuf.ExtensibleMessage {
}

/// Features are described in section 4.2 of the specification
struct Feature {
struct Feature: Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
Expand Down Expand Up @@ -192,7 +192,7 @@ struct VectorTile_Tile: SwiftProtobuf.ExtensibleMessage {
}

/// Layers are described in section 4.1 of the specification
struct Layer: SwiftProtobuf.ExtensibleMessage {
struct Layer: SwiftProtobuf.ExtensibleMessage, Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
Expand Down Expand Up @@ -254,22 +254,6 @@ struct VectorTile_Tile: SwiftProtobuf.ExtensibleMessage {
var _protobuf_extensionFieldValues = SwiftProtobuf.ExtensionFieldValueSet()
}

#if swift(>=4.2)

extension VectorTile_Tile.GeomType: CaseIterable {
// Support synthesized by the compiler.
}

#endif // swift(>=4.2)

#if swift(>=5.5) && canImport(_Concurrency)
extension VectorTile_Tile: @unchecked Sendable {}
extension VectorTile_Tile.GeomType: @unchecked Sendable {}
extension VectorTile_Tile.Value: @unchecked Sendable {}
extension VectorTile_Tile.Feature: @unchecked Sendable {}
extension VectorTile_Tile.Layer: @unchecked Sendable {}
#endif // swift(>=5.5) && canImport(_Concurrency)

// MARK: - Code below here is support for the SwiftProtobuf runtime.

fileprivate let _protobuf_package = "vector_tile"
Expand Down

0 comments on commit bd65965

Please sign in to comment.