{"id":19752440,"url":"https://github.com/milch/lz4-spm","last_synced_at":"2025-07-10T01:06:46.945Z","repository":{"id":66162217,"uuid":"335525319","full_name":"milch/lz4-spm","owner":"milch","description":"Use lz4 in SPM","archived":false,"fork":false,"pushed_at":"2021-02-04T01:12:40.000Z","size":99,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-28T08:44:28.729Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","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/milch.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-02-03T06:08:23.000Z","updated_at":"2021-02-04T01:11:15.000Z","dependencies_parsed_at":"2023-02-21T00:16:30.786Z","dependency_job_id":null,"html_url":"https://github.com/milch/lz4-spm","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/milch/lz4-spm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/milch%2Flz4-spm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/milch%2Flz4-spm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/milch%2Flz4-spm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/milch%2Flz4-spm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/milch","download_url":"https://codeload.github.com/milch/lz4-spm/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/milch%2Flz4-spm/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264506902,"owners_count":23619095,"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-11-12T02:49:09.890Z","updated_at":"2025-07-10T01:06:46.885Z","avatar_url":"https://github.com/milch.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LZ4 in SPM\n\nThis package should allow to use the [lz4](https://github.com/lz4/lz4) library in Swift Package Manager. \n\n## Example \n\n```swift\nimport PackageDescription\n\nlet package = Package(\n\tname: \"Sample\",\n\tproducts: [.library(name: \"LibSample\", targets: [\"LibSample\"])]\n\tdependencies: [\n\t\t.package(\n\t\t\tname: \"lz4\", \n\t\t\turl: \"https://github.com/milch/lz4\", \n\t\t\t.upToNextMinor(from: \"1.9.3\")),\n\t\t//...\n\t],\n\ttargets: [\n\t    .target(\n\t\t\tname: \"LibSample\",\n\t\t\tdependencies: [.product(name: \"lz4\", package: \"lz4\")],\n\t\t\t// ...\n\t\t)\n\t]\n)\n```\n\n## Updating\n\nThe way the lz4 source is organized is not directly compatible with SPM conventions. SPM expects a single `include` folder for public headers, whereas header and source files are next to each other in the lz4 repository. \nRun the `update_lz4.sh` script to copy things into the place SPM expects and check in the changes: \n\n```bash\n./update_lz4.sh\ngit add Sources\n```\n\nThe components which are copied are licensed under the BSD license, and the license statements are included at the top of the files.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmilch%2Flz4-spm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmilch%2Flz4-spm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmilch%2Flz4-spm/lists"}