From 6a7cf593bf4b35e4557290541b7982b8ab56d621 Mon Sep 17 00:00:00 2001 From: Eric Bariaux <375613+ebariaux@users.noreply.github.com> Date: Thu, 18 Sep 2025 07:20:19 +0200 Subject: [PATCH] Codable not available right-now in Embedded mode --- Sources/ComplexModule/Complex+Codable.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Sources/ComplexModule/Complex+Codable.swift b/Sources/ComplexModule/Complex+Codable.swift index f7f094f..8d86d36 100644 --- a/Sources/ComplexModule/Complex+Codable.swift +++ b/Sources/ComplexModule/Complex+Codable.swift @@ -12,6 +12,7 @@ import RealModule // FloatingPoint does not refine Codable, so this is a conditional conformance. +@_unavailableInEmbedded extension Complex: Decodable where RealType: Decodable { public init(from decoder: Decoder) throws { var unkeyedContainer = try decoder.unkeyedContainer() @@ -21,6 +22,7 @@ extension Complex: Decodable where RealType: Decodable { } } +@_unavailableInEmbedded extension Complex: Encodable where RealType: Encodable { public func encode(to encoder: Encoder) throws { var unkeyedContainer = encoder.unkeyedContainer()