Apache License 2.0

项目介绍

GottaGetSwifty/CodableWrappers 是一个托管在 GitHub 上的开源项目,主要使用 Swift 编写,采用 Apache License 2.0 许可证,目前获得 707 个 Star、41 次 Fork。

仓库全名
GottaGetSwifty/CodableWrappers
开源许可证
Apache License 2.0
Star 数
707
Fork 数
41
未关闭 Issue
2

README 摘要

CodableWrappers Simplified Serialization with Property Wrappers Make Complex Codable Serialization a breeze with declarative annotations! 3.0 released! Release Notes Documentation Full DocC documentation here thanks to the Swift Package Index! Installation Swift Package Manager \Preferred URL: https://github.com/GottaGetSwifty/CodableWrappers.git Manifest: CocoaPods \WARNING CocoaPods is not currently supported for…

完整内容见 GitHub 原始 README 或本页 。

常见问题

CodableWrappers 用什么语言开发?

主要使用 Swift 编写,采用 Apache License 2.0 许可证,目前有 707 个 Star。

CodableWrappers 可以免费商用吗?

仓库采用 Apache License 2.0 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 CodableWrappers 的源码?

可以直接克隆仓库:git clone https://github.com/GottaGetSwifty/CodableWrappers.git,默认分支为 main;安装与运行步骤见仓库 README。

CodableWrappers 最近还在维护吗?

仓库最近一次更新为 2025年7月15日,当前有 2 个未关闭 Issue;Star 数为 707,可作为社区活跃度的参考。

关于

GitHub 原始描述(英文)

Make Custom Serialization of Swift Codable Types easy with Annotations

描述取自 GitHub 官方 API,保持仓库作者书写的原文。

简要分析

热度分
801
价值分
437
活跃状态
活跃

语言占比

Ruby
Swift

Release

README

CodableWrappers

API Docs codecov

Simplified Serialization with Property Wrappers

Make Complex Codable Serialization a breeze with declarative annotations!

@CustomCodable @SnakeCase
struct User: Codable {
    let firstName: String
    let lastName: String
    @SecondsSince1970DateCoding
    var joinDate: Date
    @CustomCodingKey("data")
    var imageData: Data
}

3.0 released! Release Notes


Documentation

Full DocC documentation here thanks to the Swift Package Index!

Installation

Swift Package Manager *Preferred*

URL:

https://github.com/GottaGetSwifty/CodableWrappers.git

Manifest:

dependencies: [
    .package(url: "https://github.com/GottaGetSwifty/CodableWrappers.git", .upToNextMajor(from: "3.0.0" )),
]

CocoaPods

*WARNING* CocoaPods is not currently supported for version 3.0 to avoid complications with Swift Macros.

pod 'CodableWrappers', '~> 2.0.0'

Available CodingKey Macros

Available Property Wrappers

Additional Customization


Compatibility

  • 3.x supports Swift 5.9+
  • 2.x supports Swift 5.2+
  • 1.x supports Swift 5.1+

Contributions

If there is a standard Serialization or Coding Key strategy that could be added feel free to open an issue requesting it and/or submit a pull request with the new option.

评论

暂无评论