Skip to content

Codable is unavailable in Embedded Swift and no alternative is present #78811

@MaxDesiatov

Description

@MaxDesiatov

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    CodableArea → standard library: `Codable` and co.embeddedEmbedded Swiftstandard libraryArea: Standard library umbrella

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions