{"id":15639640,"url":"https://github.com/zonyitoo/context-rs","last_synced_at":"2025-04-04T18:09:55.536Z","repository":{"id":36135109,"uuid":"40438738","full_name":"zonyitoo/context-rs","owner":"zonyitoo","description":"Context utilities in Rust","archived":false,"fork":false,"pushed_at":"2023-09-05T03:27:22.000Z","size":240,"stargazers_count":87,"open_issues_count":4,"forks_count":22,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-28T17:11:12.676Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Assembly","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zonyitoo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","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":"2015-08-09T14:19:42.000Z","updated_at":"2025-01-08T07:48:11.000Z","dependencies_parsed_at":"2024-06-19T01:54:06.070Z","dependency_job_id":"5ab63351-a73d-48dd-a352-adeaac29ca5a","html_url":"https://github.com/zonyitoo/context-rs","commit_stats":{"total_commits":84,"total_committers":13,"mean_commits":6.461538461538462,"dds":"0.40476190476190477","last_synced_commit":"efbaf19689a1c73a549b7ba914f199e3dd242e20"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zonyitoo%2Fcontext-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zonyitoo%2Fcontext-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zonyitoo%2Fcontext-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zonyitoo%2Fcontext-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zonyitoo","download_url":"https://codeload.github.com/zonyitoo/context-rs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247226215,"owners_count":20904465,"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-03T11:26:45.649Z","updated_at":"2025-04-04T18:09:55.515Z","avatar_url":"https://github.com/zonyitoo.png","language":"Assembly","readme":"# context-rs\n\n[![Build \u0026 Test](https://github.com/zonyitoo/context-rs/actions/workflows/ci.yml/badge.svg)](https://github.com/zonyitoo/context-rs/actions/workflows/ci.yml)\n[![License](https://img.shields.io/crates/l/context.svg)](https://github.com/zonyitoo/context-rs)\n\nThis project offers an easy interface to the famous\n[Boost.Context](http://www.boost.org/doc/libs/1_60_0/libs/context/doc/html/context/overview.html)\nlibrary and thus provides _the building blocks for higher-level abstractions,\nlike coroutines, cooperative threads (userland threads) or\nan equivalent to C# keyword yield in C++._\n\n[**API documentation**](https://docs.rs/context)\n\n## Usage\n\nTo use `context`, first add this to your `Cargo.toml`:\n\n```toml\n[dependencies]\ncontext = \"3.0\"\n```\n\nAnd then add this to your source files:\n\n```rust\nextern crate context;\n```\n\n## Performance\n\nThe performance heavily depends on the architecture and even on the operating\nsystem. A context switch itself is usually as fast as a regular function call\nthough and can thus be viewed as one.\n\nTo see this for yourself run `cargo bench resume`. You can then compare the\nresults of the `resume` benchmarks (which uses `Context::resume()`) to the\nresults of `resume_reference_perf` (which uses regular function calls).\n\n## Platforms\n\nArchitecture  | Linux (UNIX)      | Windows    | MacOS X       | iOS\n--------------|-------------------|------------|---------------|---------------\ni386          | SYSV (ELF)        | MS (PE)    | SYSV (MACH-O) | -\nx86_64        | SYSV, X32 (ELF)   | MS (PE)    | SYSV (MACH-O) | -\narm (aarch32) | AAPCS (ELF)       | AAPCS (PE) | -             | AAPCS (MACH-O)\narm (aarch64) | AAPCS (ELF)       | AAPCS (PE) | -             | AAPCS (MACH-O)\nmips1         | O32 (ELF)         | -          | -             | -\nmips64        | N64 (ELF)         | -          | -             | -\nppc32         | SYSV (ELF), XCOFF | -          | SYSV (MACH-O) | -\nppc64         | SYSV (ELF), XCOFF | -          | SYSV (MACH-O) | -\nloongarch64   | SYSV (ELF)        | -          | -             | -\nriscv64       | SYSV (ELF)        | -          | -             | -\ns390x         | SYSV (ELF)        | -          | -             | -\n\nFormat: `ABI (binary format)`.\nSource: [Boost.Context](http://www.boost.org/doc/libs/1_60_0/libs/context/doc/html/context/architectures.html)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzonyitoo%2Fcontext-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzonyitoo%2Fcontext-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzonyitoo%2Fcontext-rs/lists"}