Skip to content
Merged
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 Sources/ContainerizationExtras/CIDRv4.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

/// Describes an IPv4 CIDR address block.
@frozen
public struct CIDRv4: CustomStringConvertible, Equatable, Sendable, Hashable {
public struct CIDRv4: CustomStringConvertible, Equatable, Sendable, Hashable, Codable {
/// The IP component of this CIDR address.
public let address: IPv4Address

Expand Down
2 changes: 1 addition & 1 deletion Sources/ContainerizationExtras/CIDRv6.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

/// Describes an IPv4 or IPv6 CIDR address block.
@frozen
public struct CIDRv6: CustomStringConvertible, Equatable, Sendable, Hashable {
public struct CIDRv6: CustomStringConvertible, Equatable, Sendable, Hashable, Codable {

/// The IP component of this CIDR address.
public let address: IPv6Address
Expand Down
2 changes: 1 addition & 1 deletion Sources/ContainerizationExtras/IPv4Address.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
//===----------------------------------------------------------------------===//

@frozen
public struct IPv4Address: Sendable, Hashable, CustomStringConvertible, Equatable, Comparable {
public struct IPv4Address: Sendable, Hashable, CustomStringConvertible, Equatable, Comparable, Codable {
public let value: UInt32

@inlinable
Expand Down
2 changes: 1 addition & 1 deletion Sources/ContainerizationExtras/IPv6Address.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
//===----------------------------------------------------------------------===//

/// Represents an IPv6 network address conforming to RFC 5952 and RFC 4291.
public struct IPv6Address: Sendable, Hashable, CustomStringConvertible, Equatable, Comparable {
public struct IPv6Address: Sendable, Hashable, CustomStringConvertible, Equatable, Comparable, Codable {
@usableFromInline
internal let value: UInt128

Expand Down
2 changes: 1 addition & 1 deletion Sources/ContainerizationExtras/Prefix.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

/// CIDR prefix length (e.g., `/24` for a 24-bit network mask).
@frozen
public struct Prefix: Sendable, CustomStringConvertible, Hashable {
public struct Prefix: Sendable, CustomStringConvertible, Hashable, Codable {
public let length: UInt8

/// Create a prefix (0-128). Use `ipv4(_:)` or `ipv6(_:)` for version-specific validation.
Expand Down