{"id":21033336,"url":"https://github.com/aosync/ctx","last_synced_at":"2026-04-25T15:35:34.561Z","repository":{"id":174129696,"uuid":"389147920","full_name":"aosync/ctx","owner":"aosync","description":"Context switching C library","archived":false,"fork":false,"pushed_at":"2024-08-06T14:28:01.000Z","size":30,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-31T01:59:22.842Z","etag":null,"topics":["c","context-switching","coroutines"],"latest_commit_sha":null,"homepage":"","language":"Assembly","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/aosync.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-07-24T16:33:51.000Z","updated_at":"2024-08-06T16:37:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"e8431829-8238-4247-aeff-39ea4b2794ed","html_url":"https://github.com/aosync/ctx","commit_stats":null,"previous_names":["aosync/ctx"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/aosync/ctx","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aosync%2Fctx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aosync%2Fctx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aosync%2Fctx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aosync%2Fctx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aosync","download_url":"https://codeload.github.com/aosync/ctx/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aosync%2Fctx/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32267710,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-25T09:15:33.318Z","status":"ssl_error","status_checked_at":"2026-04-25T09:15:31.997Z","response_time":59,"last_error":"SSL_read: 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":["c","context-switching","coroutines"],"created_at":"2024-11-19T12:54:18.557Z","updated_at":"2026-04-25T15:35:34.540Z","avatar_url":"https://github.com/aosync.png","language":"Assembly","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ctx\n\nctx is C library providing a uniform interface to context switching facilities and stack allocation, similarly to ucontext. This library is geared towards the portable implementation of stackful coroutines.  \n\nThe supported triplets of `architecture-abi-assembler` are listed in the `arch` directory.\n\n## building and dependency\n\nctx is currently built using the Meson build system. The `main.c` test file can be built as follows\n```\nmeson setup bld\nmeson compile -C bld\n```\n\nTo add ctx as a dependency to your project using the Meson build system, create a *wrap* file for ctx named `ctx.wrap` in a `subprojects` directory, with the following contents\n```\n[wrap-git]\nurl = git@github.com:aosync/ctx\nrevision = head\n```\nThen, the dependency can be added to your meson.build file using, typically, the following scheme\n```\nctx_dep = dependency('ctx', required : false)\nif not ctx_dep.found()\n    ctx_proj = subproject('ctx')\n    ctx_dep = ctx_proj.get_variable('ctx_dep')\nendif\n```\nFinally, `ctx_dep` can be added as a dependency to your targets.\n\n## credits\n\n- [musl setjmp](http://git.musl-libc.org/cgit/musl/tree/src/setjmp/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faosync%2Fctx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faosync%2Fctx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faosync%2Fctx/lists"}