{"id":18443202,"url":"https://github.com/mkroening/call-once","last_synced_at":"2025-04-14T20:16:03.985Z","repository":{"id":191174143,"uuid":"684142718","full_name":"mkroening/call-once","owner":"mkroening","description":"A type that can only be called sucessfully once.","archived":false,"fork":false,"pushed_at":"2023-09-04T16:56:16.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-14T20:16:01.106Z","etag":null,"topics":["no-std","once","rust","sync","synchronization"],"latest_commit_sha":null,"homepage":"https://crates.io/crates/call-once","language":"Rust","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/mkroening.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":"2023-08-28T14:42:37.000Z","updated_at":"2023-08-28T15:54:37.000Z","dependencies_parsed_at":"2024-11-06T06:46:42.268Z","dependency_job_id":null,"html_url":"https://github.com/mkroening/call-once","commit_stats":null,"previous_names":["mkroening/call-once"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkroening%2Fcall-once","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkroening%2Fcall-once/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkroening%2Fcall-once/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkroening%2Fcall-once/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mkroening","download_url":"https://codeload.github.com/mkroening/call-once/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248952356,"owners_count":21188427,"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":["no-std","once","rust","sync","synchronization"],"created_at":"2024-11-06T06:46:37.821Z","updated_at":"2025-04-14T20:16:03.954Z","avatar_url":"https://github.com/mkroening.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# call-once\n\n[![Crates.io](https://img.shields.io/crates/v/call-once)](https://crates.io/crates/call-once)\n[![docs.rs](https://img.shields.io/docsrs/call-once)](https://docs.rs/call-once)\n[![CI](https://github.com/mkroening/call-once/actions/workflows/ci.yml/badge.svg)](https://github.com/mkroening/call-once/actions/workflows/ci.yml)\n\nThis crate provides [`CallOnce`], a simple, thread-safe type that can only be called successfully _once_:\n\n```rust\nuse call_once::CallOnce;\n\nstatic CALL_ONCE: CallOnce = CallOnce::new();\n\nassert!(CALL_ONCE.call_once().is_ok());\nassert!(CALL_ONCE.call_once().is_err());\n```\n\n[`CallOnce`]: https://docs.rs/call-once/latest/call_once/struct.CallOnce.html\n\nFor API documentation, see the [docs].\n\n[docs]: https://docs.rs/call-once\n\n## License\n\nLicensed under either of\n\n * Apache License, Version 2.0\n   ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)\n * MIT license\n   ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)\n\nat your option.\n\n### Contribution\n\nUnless you explicitly state otherwise, any contribution intentionally submitted\nfor inclusion in the work by you, as defined in the Apache-2.0 license, shall be\ndual licensed as above, without any additional terms or conditions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmkroening%2Fcall-once","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmkroening%2Fcall-once","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmkroening%2Fcall-once/lists"}