{"id":17820467,"url":"https://github.com/kkebo/swift-box","last_synced_at":"2025-08-13T17:34:20.442Z","repository":{"id":63915553,"uuid":"392721975","full_name":"kkebo/swift-box","owner":"kkebo","description":"Rust's Box for Swift","archived":true,"fork":false,"pushed_at":"2025-03-29T22:52:37.000Z","size":61,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-04T12:53:16.988Z","etag":null,"topics":["swift"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kkebo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-08-04T14:36:28.000Z","updated_at":"2025-03-29T22:52:59.000Z","dependencies_parsed_at":"2024-04-14T12:23:50.902Z","dependency_job_id":"75fba130-2643-4c9b-a370-a0e58e83ffd7","html_url":"https://github.com/kkebo/swift-box","commit_stats":{"total_commits":7,"total_committers":2,"mean_commits":3.5,"dds":0.4285714285714286,"last_synced_commit":"b4af69409fd30e27e66c40364350c5aed6d8d2d0"},"previous_names":["kkebo/swift-box","kkk669/swift-box"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/kkebo/swift-box","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kkebo%2Fswift-box","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kkebo%2Fswift-box/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kkebo%2Fswift-box/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kkebo%2Fswift-box/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kkebo","download_url":"https://codeload.github.com/kkebo/swift-box/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kkebo%2Fswift-box/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270280934,"owners_count":24557720,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-13T02:00:09.904Z","response_time":66,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["swift"],"created_at":"2024-10-27T17:05:26.296Z","updated_at":"2025-08-13T17:34:20.431Z","avatar_url":"https://github.com/kkebo.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Box\n\n![coverage](coverage.svg)\n[![Swift](https://img.shields.io/badge/Swift-6.0-orange.svg)](https://www.swift.org)\n[![License](https://img.shields.io/github/license/kkebo/swift-box.svg)](LICENSE)\n\n\u003e [!WARNING]  \n\u003e This repository is now deprecated. Instead, please use [`Box`](https://github.com/apple/swift-collections/blob/future/Sources/Future/Box.swift) of [swift-collections](https://github.com/apple/swift-collections).\n\nThis Swift package provides a type, `Box`.\n\n[`Box`](./Sources/Box.swift) is a value type that wraps another value type for heap allocation like [Rust's `Box`](https://doc.rust-lang.org/std/boxed/struct.Box.html). Also, it is implemented with copy-on-write behavior.\n\n## Examples\n\n```swift\nimport Box\n\nstruct Foo: ~Copyable {\n    @Box var a: Int\n    var b: Box\u003cInt\u003e\n}\n\nvar foo = Foo(a: 3, b: .init(4))\n\nassert(foo.a == 3)\nassert(foo.b.value == 4)\n\nfoo.a = 10\nfoo.b.value = 5\n\nassert(foo.a == 10)\nassert(foo.b.value == 5)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkkebo%2Fswift-box","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkkebo%2Fswift-box","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkkebo%2Fswift-box/lists"}