{"id":25884822,"url":"https://github.com/nhiroyasu/auto-sendable","last_synced_at":"2025-08-07T23:05:20.720Z","repository":{"id":230575662,"uuid":"779688892","full_name":"nhiroyasu/auto-sendable","owner":"nhiroyasu","description":"A refactoring tool that ensures protocols, structs, enums, and classes conform to the Sendable protocol","archived":false,"fork":false,"pushed_at":"2024-04-27T07:58:55.000Z","size":49,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-09T09:12:01.847Z","etag":null,"topics":["concurrency-checks","refactoring-tools","sendable","swift","swift6"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nhiroyasu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null}},"created_at":"2024-03-30T14:28:23.000Z","updated_at":"2024-05-20T07:18:13.000Z","dependencies_parsed_at":"2024-04-27T08:43:11.465Z","dependency_job_id":null,"html_url":"https://github.com/nhiroyasu/auto-sendable","commit_stats":null,"previous_names":["nhiroyasu/auto-sendable"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nhiroyasu/auto-sendable","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nhiroyasu%2Fauto-sendable","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nhiroyasu%2Fauto-sendable/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nhiroyasu%2Fauto-sendable/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nhiroyasu%2Fauto-sendable/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nhiroyasu","download_url":"https://codeload.github.com/nhiroyasu/auto-sendable/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nhiroyasu%2Fauto-sendable/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269338065,"owners_count":24400180,"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-07T02:00:09.698Z","response_time":73,"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":["concurrency-checks","refactoring-tools","sendable","swift","swift6"],"created_at":"2025-03-02T17:18:48.673Z","updated_at":"2025-08-07T23:05:20.648Z","avatar_url":"https://github.com/nhiroyasu.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# auto-sendable\nA refactoring tool that ensures protocols, structs, enums, and classes conform to the Sendable protocol.\n\n# Summary\nThis tool modifies Swift code to conform to the `Sendable` protocol under the following conditions:\n\n- All `protocol` types.\n- `struct`  and `enum` types marked with the `public` modifier.\n- `class` types that do not contain any `var` variables (the `final` modifier is also applied).\n\nAdditionally, the tool conforms types to `@unchecked Sendable` under the following condition:\n\n- `class` types that contain `var` variables.\n\n\n# Usage\n## Swift Command\n### Prepare\nClone this repository.\n```sh\ngit clone https://github.com/nhiroyasu/auto-sendable.git\ncd auto-sendable\n```\n\n### Execute\n```sh\nswift run auto-sendable \u003cdir_path_or_file_path_1\u003e \u003cdir_path_or_file_path_2\u003e  ...\n```\n\n# Example\n## `auto-sendable`\n### Before\n```swift\npublic struct Struct {}\npublic enum Enum {}\npublic protocol Protocol {}\npublic class Class {}\npublic class VariablesClass {\n    var variable: Int\n}\n```\n\n### After\n```swift\npublic struct Struct: Sendable {}\npublic enum Enum: Sendable {}\npublic protocol Protocol: Sendable {}\npublic final class Class: Sendable {}\npublic class VariablesClass: @unchecked Sendable {\n    var variable: Int\n}\n```\n\n# Warning\nThe `auto-sendable` command enforces conformance to the `Sendable` protocol for `protocol`, `structs`, `enums`, and `classes`, even when they might not naturally conform to `Sendable` (for example, if they contain stored properties that are not `Sendable` themselves).  \nAs a result, it is not possible to completely eliminate compiler warnings.\n\n```swift\npublic struct Obj: Sendable {  // warning: Obj struct isn't able to conform to the Sendable protocol.\n    var variable: Class\n}\n\npublic class Class {\n    var count: Int\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnhiroyasu%2Fauto-sendable","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnhiroyasu%2Fauto-sendable","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnhiroyasu%2Fauto-sendable/lists"}