Codable
is unavailable in Embedded Swift and no alternative is present
#78811
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
Codable
Area → standard library: `Codable` and co.
diagnostics QoI
Bug: Diagnostics Quality of Implementation
embedded
Embedded Swift
existentials
Feature: values of types like `any Collection`, `Any` and `AnyObject`; type-erased values
standard library
Area: Standard library umbrella
Description
Serializing and deserializing data is a frequent requirement for embedded applications.
Reproduction
Attempt to add
Codable
conformance to any type when Embedded Swift is enabled.Expected behavior
A
Codable
conformance is generated for compatible types, or actionable diagnostic message is emitted that suggests viable alternatives.Environment
Swift 6.1 development snapshots for any of the supported platforms.
The text was updated successfully, but these errors were encountered: