{"id":16936456,"url":"https://github.com/jonhoo/guardian","last_synced_at":"2025-04-09T21:13:50.601Z","repository":{"id":9332495,"uuid":"61647077","full_name":"jonhoo/guardian","owner":"jonhoo","description":"Owned mutex guards for refcounted mutexes.","archived":false,"fork":false,"pushed_at":"2025-02-08T20:26:07.000Z","size":85,"stargazers_count":19,"open_issues_count":2,"forks_count":5,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-04-09T21:13:41.071Z","etag":null,"topics":["locking","mutex","rust","synchronization"],"latest_commit_sha":null,"homepage":null,"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/jonhoo.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":"2016-06-21T15:51:58.000Z","updated_at":"2025-04-05T21:05:22.000Z","dependencies_parsed_at":"2024-10-27T12:17:24.105Z","dependency_job_id":"59051825-9e25-4f6b-9310-b00cfd8075ae","html_url":"https://github.com/jonhoo/guardian","commit_stats":{"total_commits":14,"total_committers":2,"mean_commits":7.0,"dds":0.0714285714285714,"last_synced_commit":"099431106fb67a6d9d1547e07d07120f4b3c9459"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonhoo%2Fguardian","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonhoo%2Fguardian/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonhoo%2Fguardian/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonhoo%2Fguardian/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jonhoo","download_url":"https://codeload.github.com/jonhoo/guardian/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248111972,"owners_count":21049578,"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":["locking","mutex","rust","synchronization"],"created_at":"2024-10-13T20:57:01.687Z","updated_at":"2025-04-09T21:13:50.578Z","avatar_url":"https://github.com/jonhoo.png","language":"Rust","readme":"# guardian\n\n[![Crates.io](https://img.shields.io/crates/v/guardian.svg)](https://crates.io/crates/guardian)\n[![Documentation](https://docs.rs/guardian/badge.svg)](https://docs.rs/guardian/)\n[![codecov](https://codecov.io/gh/jonhoo/guardian/branch/main/graph/badge.svg?token=QvqtrRS7lf)](https://codecov.io/gh/jonhoo/guardian)\n[![Dependency status](https://deps.rs/repo/github/jonhoo/guardian/status.svg)](https://deps.rs/repo/github/jonhoo/guardian)\n\nGuardian is a Rust library that provides owned mutex guards for refcounted mutexes.\n\nNormally, lock guards (be it for `Mutex` or `RwLock`) are bound to the lifetime of the borrow\nof the underlying lock. Specifically, the function signatures all resemble:\n`fn lock\u003c'a\u003e(\u0026'a self) -\u003e Guard\u003c'a\u003e`.\n\nIf the mutex is refcounted using an `Rc` or an `Arc`, it is not necessary for the guard to be\nscoped in this way -- it could instead carry with it a ref to the mutex in question, which\nallows the guard to be held for as long as is necessary. This is particularly useful for\nwriting iterators where it is advantageous to hold a read lock for the duration of the\niteration.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonhoo%2Fguardian","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjonhoo%2Fguardian","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonhoo%2Fguardian/lists"}