{"id":15570804,"url":"https://github.com/keith/swift-syntax-bazel","last_synced_at":"2026-06-30T09:30:15.876Z","repository":{"id":43122999,"uuid":"377910767","full_name":"keith/swift-syntax-bazel","owner":"keith","description":"Bazel support for SwiftSyntax","archived":false,"fork":false,"pushed_at":"2023-02-17T20:42:45.000Z","size":24,"stargazers_count":20,"open_issues_count":0,"forks_count":5,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-01-22T02:58:31.292Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://github.com/keith/swift-syntax-bazel/releases","language":"Starlark","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/keith.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}},"created_at":"2021-06-17T17:27:00.000Z","updated_at":"2023-04-16T14:59:19.000Z","dependencies_parsed_at":"2023-01-21T12:28:43.685Z","dependency_job_id":null,"html_url":"https://github.com/keith/swift-syntax-bazel","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keith%2Fswift-syntax-bazel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keith%2Fswift-syntax-bazel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keith%2Fswift-syntax-bazel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keith%2Fswift-syntax-bazel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/keith","download_url":"https://codeload.github.com/keith/swift-syntax-bazel/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240367150,"owners_count":19790206,"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","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":[],"created_at":"2024-10-02T17:44:55.574Z","updated_at":"2026-06-30T09:30:15.803Z","avatar_url":"https://github.com/keith.png","language":"Starlark","funding_links":[],"categories":[],"sub_categories":[],"readme":"# swift-syntax-bazel\n\nThis repo provides a bazel target for\n[`SwiftSyntax`](https://github.com/apple/swift-syntax). Most importantly\nit handles vendoring `lib_InternalSwiftSyntaxParser` as a static library\nso your tool doesn't depend on a specific Xcode.app path or version.\n\n## Usage\n\n1. Make sure you've setup\n   [`rules_apple`](https://github.com/bazelbuild/rules_apple)\n2. Go to the [releases\n   page](https://github.com/keith/swift-syntax-bazel/releases) to grab\n   the WORKSPACE snippet for the Xcode version you're using\n3. Add this target to your `deps`:\n\n```bzl\n    deps = [\n        \"@com_github_keith_swift_syntax//:SwiftSyntax\",\n    ]\n```\n\n## Details\n\nPreviously if you built `SwiftSyntax` in your bazel build, the final\nbinary would end up with a `rpath` like this:\n\n```\n/Applications/Xcode-12.4.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx\n```\n\nThis meant if you used a remote bazel cache in your builds, everyone's\nXcode path would have to match for this to work correctly. This repo\nlinks [a static\nbinary](https://github.com/keith/StaticInternalSwiftSyntaxParser) for\n`lib_InternalSwiftSyntaxParser` instead.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkeith%2Fswift-syntax-bazel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkeith%2Fswift-syntax-bazel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkeith%2Fswift-syntax-bazel/lists"}