{"id":33927160,"url":"https://github.com/tabnine/proc-lock","last_synced_at":"2025-12-12T10:46:53.387Z","repository":{"id":43111113,"uuid":"470570084","full_name":"tabnine/proc-lock","owner":"tabnine","description":"A simple cross-process locking API","archived":false,"fork":false,"pushed_at":"2022-03-23T11:18:29.000Z","size":50,"stargazers_count":38,"open_issues_count":6,"forks_count":4,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-11-09T02:19:12.280Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/tabnine.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-03-16T12:18:49.000Z","updated_at":"2025-02-07T10:42:06.000Z","dependencies_parsed_at":"2022-08-26T05:22:00.904Z","dependency_job_id":null,"html_url":"https://github.com/tabnine/proc-lock","commit_stats":null,"previous_names":["tabnine/proclock"],"tags_count":21,"template":false,"template_full_name":null,"purl":"pkg:github/tabnine/proc-lock","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tabnine%2Fproc-lock","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tabnine%2Fproc-lock/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tabnine%2Fproc-lock/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tabnine%2Fproc-lock/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tabnine","download_url":"https://codeload.github.com/tabnine/proc-lock/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tabnine%2Fproc-lock/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27681253,"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-12-12T02:00:06.775Z","response_time":129,"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":[],"created_at":"2025-12-12T10:46:52.673Z","updated_at":"2025-12-12T10:46:53.379Z","avatar_url":"https://github.com/tabnine.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"Developed with ❤️ by [Tabnine](https://www.tabnine.com/?utm_source=referral\u0026utm_medium=organic\u0026utm_campaign=proc-lock)\n\n# Proc-lock\nA simple cross-process locking API.\n\n## Quick Start\n### Installation\nIn your `Cargo.toml` file, add:\n```toml\n[dependencies]\nproc-lock = \"*\"\n```\n\n### Using the API directly\n```rust\nuse proc_lock::{lock, LockPath};\n\nfn main() {\n    let lock_path = LockPath::Tmp(\"my_lock.lock\");\n    let guard = lock(\u0026lock_path).unwrap();\n    // Until `guard` is dropped, this code section is atomic across multiple processes.\n    // ...\n    drop(guard);\n}\n```\n\n### Using macros\n```rust\nuse proc_lock::proclock;\n\nfn main() {\n // A lock will be acquired at the beginning of this function, and will be released at the end.\n a_sensitive_function();\n}\n\n#[proc_lock(name = \"my_lock.lock\")]\nfn a_sensitive_function() {}\n```\n\n### Current status\n⚠️This crate is in its early stages, breaking changes are expected in upcoming releases.\n\n### Changelog\n- 0.4.0 - Change interdependencies to local for better development process\n- 0.3.3 - Minor docs changes\n- 0.3.2 - Fix macro compilation\n- 0.3.1 - Change docs\n- 0.3.0 - [breaking changes] Rename crate to `proc-lock`, and the macro to `proc_lock`\n- 0.2.1 - Add a notice about renaming the crate \n- 0.2.0 - [breaking changes] Stop supporting non-blocking macro api\n\n### Contribution\nPlease refer to [our project](https://github.com/tabnine/proc-lock/projects/1), as well as open issues.\n\nAlso feel free to discuss and open PRs regardless :)\n\n### Developement\n1. Run tests:\n```bash\ncargo test\n```\n2. Run clippy\n```bash\ncargo clippy --all --all-targets --all-features -- --no-deps -D clippy::pedantic\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftabnine%2Fproc-lock","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftabnine%2Fproc-lock","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftabnine%2Fproc-lock/lists"}