{"id":19287479,"url":"https://github.com/tachoknight/pure-swift-module-example","last_synced_at":"2026-04-20T19:31:42.669Z","repository":{"id":146215885,"uuid":"530791786","full_name":"tachoknight/Pure-Swift-Module-Example","owner":"tachoknight","description":"An example project of a module (library) written in Swift for both macOS and Linux","archived":false,"fork":false,"pushed_at":"2022-08-30T20:14:38.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-01T22:39:05.492Z","etag":null,"topics":["framework","libraries","library","module","modules","staticlibrary","swift","swift-library","swift-package","swift-packages"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/tachoknight.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":"2022-08-30T19:00:17.000Z","updated_at":"2022-08-31T19:14:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"1e2db8de-9d4b-45e8-ba3b-79cb4927bc0e","html_url":"https://github.com/tachoknight/Pure-Swift-Module-Example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tachoknight/Pure-Swift-Module-Example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tachoknight%2FPure-Swift-Module-Example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tachoknight%2FPure-Swift-Module-Example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tachoknight%2FPure-Swift-Module-Example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tachoknight%2FPure-Swift-Module-Example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tachoknight","download_url":"https://codeload.github.com/tachoknight/Pure-Swift-Module-Example/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tachoknight%2FPure-Swift-Module-Example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32062283,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T11:35:06.609Z","status":"ssl_error","status_checked_at":"2026-04-20T11:34:48.899Z","response_time":94,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["framework","libraries","library","module","modules","staticlibrary","swift","swift-library","swift-package","swift-packages"],"created_at":"2024-11-09T22:06:02.198Z","updated_at":"2026-04-20T19:31:42.642Z","avatar_url":"https://github.com/tachoknight.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pure Swift Module Example\nThis is a project based on [this blog post](https://railsware.com/blog/creation-of-pure-swift-module/) that demonstrates how to create a module using only Swift. \n\nI found the example a bit out of date (even though it's from 8/11/21) and was having some difficulty getting it to work. With some experimentation and web searching, I was able to come up with a example that works for both macOS and Linux (tested on Swift-5.7-DEV on Fedora 36).\n\n## Files\n### `build-n-test.sh`\nRun this to build the module/library as well as build and run its accompanying test program (`test.swift`).\n\nThis is the file to really look at. It has all the magic incantations that are needed to properly build and run circa Swift 5.6 and 5.7-DEV (on Linux).\n### `ZLogger.swift`\nA Swift file that contains both a class and a function that are available to other programs\n### `test.swift`\nTest program that imports the ZLogger framework.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftachoknight%2Fpure-swift-module-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftachoknight%2Fpure-swift-module-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftachoknight%2Fpure-swift-module-example/lists"}