TOMLDecoder

0.3.1

From TOML to Swift Codable types.
dduan/TOMLDecoder

What's New

0.3.1

2024-12-15T08:23:54Z
  • Fixed a bug where extending table via dotted key was not allowed (#54)
  • Declare support for Swift 6
  • Add experimental support for building with Bazel

TOMLDecoder

TOML parser for your Swift Codables.

struct Team: Codable {
    struct Player: Codable {
        let id: String
        let health: Int
        let joinDate: Date
    }

    let players: [Player]
}

let team = try TOMLDecoder().decode(Team.self, from: tomlData)

TOMLDecoder has a relatively simple set of APIs. Learn more in the introduction.

Installation

With SwiftPM

.package(url: "https://github.com/dduan/TOMLDecoder", from: "0.3.1")

License

MIT. See LICENSE.md.

Description

  • Swift Tools 6.0.0
View More Packages from this Author

Dependencies

  • None
Last updated: Thu May 22 2025 01:39:17 GMT-0900 (Hawaii-Aleutian Daylight Time)