{"id":23004359,"url":"https://github.com/amjad50/blinkcast","last_synced_at":"2025-08-14T01:32:34.227Z","repository":{"id":223657888,"uuid":"760948937","full_name":"Amjad50/blinkcast","owner":"Amjad50","description":"Fast, Lock-free, Bounded, Lossy Rust broadcast channel/ring buffer with `no_std` support","archived":false,"fork":false,"pushed_at":"2024-11-15T03:55:36.000Z","size":87,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-30T15:54:03.379Z","etag":null,"topics":["channel","concurrency","lock-free","ring-buffer","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/Amjad50.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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}},"created_at":"2024-02-21T00:31:46.000Z","updated_at":"2024-12-23T10:59:56.000Z","dependencies_parsed_at":"2024-03-21T18:49:19.086Z","dependency_job_id":null,"html_url":"https://github.com/Amjad50/blinkcast","commit_stats":null,"previous_names":["amjad50/blinkcast","amjad50/blink-channel"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/Amjad50/blinkcast","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Amjad50%2Fblinkcast","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Amjad50%2Fblinkcast/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Amjad50%2Fblinkcast/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Amjad50%2Fblinkcast/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Amjad50","download_url":"https://codeload.github.com/Amjad50/blinkcast/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Amjad50%2Fblinkcast/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270347442,"owners_count":24568573,"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-08-13T02:00:09.904Z","response_time":66,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","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":["channel","concurrency","lock-free","ring-buffer","rust"],"created_at":"2024-12-15T07:18:13.206Z","updated_at":"2025-08-14T01:32:33.927Z","avatar_url":"https://github.com/Amjad50.png","language":"Rust","readme":"# blinkcast\n\n[![check](https://github.com/Amjad50/blinkcast/actions/workflows/check.yml/badge.svg)](https://github.com/Amjad50/blinkcast/actions/workflows/check.yml) \n[![codecov](https://codecov.io/gh/Amjad50/blinkcast/graph/badge.svg?token=I4ORM3HHCK)](https://codecov.io/gh/Amjad50/blinkcast)\n[![Crates.io blinkcast](https://img.shields.io/crates/v/blinkcast)](https://crates.io/crates/blinkcast)\n[![docs.rs blinkcast](https://docs.rs/blinkcast/badge.svg)](https://docs.rs/blinkcast)\n\nFast, Bounded, Lossy Rust broadcast channel with support for `no_std` targets.\n\n\u003e Sometimes it may spin the CPU for a bit if there is a contention on a single element in the buffer for write and read operations. Could happen more often for small buffers.\n\nThis is implemented with ring buffer and atomic operations, it may be considered lock-free, as we\ndon't use `Lock` premitive, but the implementation may spin waiting for a contending\nwriter/reader to finish accessing a specific node. Its very rare, but\nmaybe I won't call it `lock-free` in the strict sense.\n\nThe API of the `blinkcast` is similar to that of the `std::sync::mpsc` channels.\nHowever, there are some differences:\n\n- It allows for multiple consumers (receivers) and multiple producers (senders).\n- The channel broadcasts every send to every consumer.\n- Lossy, the sender will overwrite old data, so receivers must be quick or they will lose the old data (don'\nt blink).\n- Implemented for `no_std` environments.\n\nDue to that nature, this is useful in applications where data comes in very quick and new data is always more important\nthan old data which can be discarded. \nThis could be useful for example in implementing:\n- **audio driver** (small glitch but staying up to date is better than delayed audio).\n- **mouse/keyboard driver** with big enough buffer (This was actually why this was created, see: https://github.com/Amjad50/Emerald/pull/71 and https://github.com/Amjad50/Emerald/pull/72)\n- etc...\n\nSee [the documentation](https://docs.rs/blinkcast) for examples.\n\n# Minimum Supported Rust Version (MSRV)\nThe minimum supported Rust version for this crate is `1.61.0`\n\n# License\nLicensed under `MIT` ([LICENSE](./LICENSE) or http://opensource.org/licenses/MIT)\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famjad50%2Fblinkcast","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famjad50%2Fblinkcast","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famjad50%2Fblinkcast/lists"}