{"id":13994742,"url":"https://github.com/keith/StaticInternalSwiftSyntaxParser","last_synced_at":"2025-07-22T20:30:55.862Z","repository":{"id":56780600,"uuid":"452553257","full_name":"keith/StaticInternalSwiftSyntaxParser","owner":"keith","description":"A static library for using SwiftSyntax / lib_InternalSwiftSyntaxParser","archived":true,"fork":false,"pushed_at":"2023-04-17T23:12:40.000Z","size":8,"stargazers_count":48,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-11-29T16:39:26.777Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-01-27T05:36:55.000Z","updated_at":"2023-10-15T15:13:03.000Z","dependencies_parsed_at":"2024-11-29T16:32:35.980Z","dependency_job_id":"e01a32e2-5884-49c9-a08c-2f70585492a4","html_url":"https://github.com/keith/StaticInternalSwiftSyntaxParser","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/keith/StaticInternalSwiftSyntaxParser","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keith%2FStaticInternalSwiftSyntaxParser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keith%2FStaticInternalSwiftSyntaxParser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keith%2FStaticInternalSwiftSyntaxParser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keith%2FStaticInternalSwiftSyntaxParser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/keith","download_url":"https://codeload.github.com/keith/StaticInternalSwiftSyntaxParser/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keith%2FStaticInternalSwiftSyntaxParser/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266567152,"owners_count":23949297,"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-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"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":[],"created_at":"2024-08-09T14:03:04.713Z","updated_at":"2025-07-22T20:30:55.616Z","avatar_url":"https://github.com/keith.png","language":"Shell","funding_links":[],"categories":["Shell"],"sub_categories":[],"readme":"# StaticInternalSwiftSyntaxParser\n\nNOTE: As of Swift 5.8 this library is no more, instead it has been\nreimplemented in Swift as part of\n[`SwiftSyntax`](https://github.com/apple/swift-syntax)\n\nThis is a distribution of `lib_InternalSwiftSyntaxParser.dylib` built\nstatically. This allows you to create a self contained portable binary\nthat depends on [`swift-syntax`][swift-syntax] instead of having to\ndepend on your specific Xcode version and path, or distribute the\nlibrary alongside your tool.\n\n# Usage\n\nSee [the releases\npage](https://github.com/keith/StaticInternalSwiftSyntaxParser/releases)\nto get the right version of the library for your version of Xcode and\n[`swift-syntax`][swift-syntax].\n\nWith Swift Package Manager you can use the `.binaryTarget` type with\nthis:\n\n```swift\ntargets: [\n    // Some targets\n    .binaryTarget(\n        name: \"lib_InternalSwiftSyntaxParser\",\n        url: \"See releases page\",\n        checksum: \"See releases page\"\n    ),\n],\n```\n\nThen add `lib_InternalSwiftSyntaxParser` to the `dependencies` of\nanother target.\n\nIf you want to use this without Swift Package Manager you can download\nthe xcframework and use the internal\n`lib_InternalSwiftSyntaxParser.framework` however you'd normally include\ndependencies.\n\nNote: because of [this bug](https://bugs.swift.org/browse/SR-15802) if\nyou want to depend on this target in SwiftPM and target multiple\narchitectures in a single build, you must only depend on it from top\nlevel targets such as a test or executable target.\n\n## Building\n\nTo create a new release for this project follow these steps:\n\n- Clone [`apple/swift`](https://github.com/apple/swift) and checkout the\n  branch you want using the `update-checkout` script as described in\n  their documentation\n- Cherry pick the most recent commit from the releases page, or use the\n  `example.patch` checked into this repo as a starting point\n- Build the project with something like `./swift/utils/build-script\n  --release`\n- If you'd like a fat binary for supporting arm64 and x86_64 macs, build\n  with `./swift/utils/build-script --release --cross-compile-hosts\n  macosx-x86_64`\n- Run `create-xcframework.sh swift/src/dir binary1 binary2` to create\n  the combined framework\n\n## Notes\n\n- This method doesn't actually produce a static binary, but it produces\n  a relocatable object file which is similar enough for this use case.\n  This is because cmake cannot create distributable static library\n  targets that include all of their nested dependencies\n- Be sure to pass `-dead_strip` to your linker when linking this library\n  with a binary to save on binary size (you likely already are)\n- As of Swift 5.6 Apple bundles a dynamic version of this library as part\n  of the SwiftSyntax release. In order to ignore that version and prefer\n  this static version, you must pass `-Xlinker -dead_strip_dylibs` when\n  building your tool. This can be done by adding it to the `linkerSettings`\n  of the target that depends on this library in your Package.swift file.\n\n[swift-syntax]: https://github.com/apple/swift-syntax\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkeith%2FStaticInternalSwiftSyntaxParser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkeith%2FStaticInternalSwiftSyntaxParser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkeith%2FStaticInternalSwiftSyntaxParser/lists"}