A Swift-native library for decoding TOML files into Codable types with full spec 1.1.0 support.
TOMLDecoder is a Swift library that decodes TOML (Tom's Obvious, Minimal Language) configuration files into Swift Codable types. It solves the problem of parsing TOML data in a type-safe way, allowing developers to easily integrate TOML files into their Swift applications without manual parsing.
Swift developers who need to read or write TOML configuration files in their iOS, macOS, or server-side applications, particularly those using Codable for data serialization.
Developers choose TOMLDecoder for its full TOML spec compliance, native Swift implementation, and seamless integration with Codable, offering a reliable and efficient alternative to manual TOML parsing or less comprehensive libraries.
From TOML to Swift Codable types.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Implements TOML 1.1.0 completely, ensuring reliable parsing of standard TOML files without compatibility issues.
Leverages Swift's Codable protocol for type-safe decoding, reducing boilerplate code and errors in Swift projects.
Has no external dependencies, making it fast to integrate and minimizing project bloat.
Built entirely in Swift, optimized for performance and seamless compatibility with Swift toolchains.
Focuses solely on reading TOML files; encoding Swift objects back to TOML is not supported, limiting bidirectional use cases.
Requires Swift projects and static type definitions via Codable, not suitable for dynamic configurations or cross-language interoperability.
Lacks built-in support for configuration validation, schema enforcement, or environment-specific overrides, focusing purely on parsing.