{"id":22846208,"url":"https://github.com/kkrypt0nn/simple-semaphore","last_synced_at":"2026-02-28T11:42:54.077Z","repository":{"id":267133324,"uuid":"875341260","full_name":"kkrypt0nn/simple-semaphore","owner":"kkrypt0nn","description":"🔐 A lightweight implementation of a Semaphore in Rust","archived":false,"fork":false,"pushed_at":"2025-04-09T10:50:21.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-07T07:18:00.873Z","etag":null,"topics":["rust","rust-lang","semaphore"],"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/kkrypt0nn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":"kkrypt0nn","ko_fi":"kkrypt0nn","custom":["https://buymeacoffee.com/kkrypt0nn"]}},"created_at":"2024-10-19T18:05:05.000Z","updated_at":"2025-04-09T10:50:25.000Z","dependencies_parsed_at":"2024-12-08T15:49:12.688Z","dependency_job_id":"3a49af56-72e4-4e23-9506-7acbb798c456","html_url":"https://github.com/kkrypt0nn/simple-semaphore","commit_stats":null,"previous_names":["kkrypt0nn/simple-semaphore"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/kkrypt0nn/simple-semaphore","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kkrypt0nn%2Fsimple-semaphore","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kkrypt0nn%2Fsimple-semaphore/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kkrypt0nn%2Fsimple-semaphore/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kkrypt0nn%2Fsimple-semaphore/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kkrypt0nn","download_url":"https://codeload.github.com/kkrypt0nn/simple-semaphore/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kkrypt0nn%2Fsimple-semaphore/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29932643,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-28T09:58:13.507Z","status":"ssl_error","status_checked_at":"2026-02-28T09:57:57.047Z","response_time":90,"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":["rust","rust-lang","semaphore"],"created_at":"2024-12-13T03:26:26.035Z","updated_at":"2026-02-28T11:42:54.025Z","avatar_url":"https://github.com/kkrypt0nn.png","language":"Rust","funding_links":["https://github.com/sponsors/kkrypt0nn","https://ko-fi.com/kkrypt0nn","https://buymeacoffee.com/kkrypt0nn"],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n# simple-semaphore\n\n[![Discord Server Badge](https://img.shields.io/discord/1358456011316396295?logo=discord)](https://discord.gg/xj6y5ZaTMr)\n[![Docs.rs Badge](https://img.shields.io/badge/docs.rs-simple--semaphore-61c192.svg)](https://docs.rs/simple-semaphore)\n[![Crates.io Badge](https://img.shields.io/crates/v/simple-semaphore.svg?color=fe7d37)](https://crates.io/crates/simple-semaphore)\n[![CI Badge](https://github.com/kkrypt0nn/simple-semaphore/actions/workflows/ci.yml/badge.svg)](https://github.com/kkrypt0nn/simple-semaphore/actions)\n[![Dependency Status Badge](https://deps.rs/repo/github/kkrypt0nn/simple-semaphore/status.svg)](https://deps.rs/repo/github/kkrypt0nn/simple-semaphore)\n\n[![Last Commit Badge](https://img.shields.io/github/last-commit/kkrypt0nn/simple-semaphore)](https://github.com/kkrypt0nn/simple-semaphore/commits/main)\n[![Conventional Commits Badge](https://img.shields.io/badge/Conventional%20Commits-1.0.0-%23FE5196?logo=conventionalcommits\u0026logoColor=white)](https://conventionalcommits.org/en/v1.0.0/)\n\n\u003c/div\u003e\n\n---\n\nA lightweight implementation of a Semaphore in Rust.\n\n## Getting Started\n\n### Installation\n\nIf you want to use this library for one of your projects, you can install it like any other Rust library\n\n```shell\ncargo add simple-semaphore\n```\n\n### Example Usage\n\nHere a basic example on how to use the crate:\n```rs\nuse simple_semaphore;\nuse std::thread;\nuse std::{sync::Arc, time::Duration};\n\nfn main() {\n    let semaphore = simple_semaphore::Semaphore::new(2);\n    for _ in 0..5 {\n        let semaphore = Arc::clone(\u0026semaphore);\n        thread::spawn(move || {\n            let permit = semaphore.acquire();\n            thread::sleep(Duration::from_millis(500));\n            drop(permit);\n        });\n    }\n    thread::sleep(Duration::from_millis(3000));\n}\n```\n\n## License\n\nThis library was made with 💜 by Krypton and is under the [MIT License](./LICENSE.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkkrypt0nn%2Fsimple-semaphore","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkkrypt0nn%2Fsimple-semaphore","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkkrypt0nn%2Fsimple-semaphore/lists"}