{"id":15471623,"url":"https://github.com/aisk/rust-filelock","last_synced_at":"2026-04-25T22:31:29.044Z","repository":{"id":139776920,"uuid":"403675076","full_name":"aisk/rust-filelock","owner":"aisk","description":null,"archived":false,"fork":false,"pushed_at":"2026-02-13T16:34:13.000Z","size":25,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-02-14T00:42:18.339Z","etag":null,"topics":["rust"],"latest_commit_sha":null,"homepage":"https://crates.io/crates/filelock","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/aisk.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2021-09-06T15:36:27.000Z","updated_at":"2026-02-13T16:34:15.000Z","dependencies_parsed_at":null,"dependency_job_id":"aae0edd1-8abf-4d40-9b95-58282cfcdbe0","html_url":"https://github.com/aisk/rust-filelock","commit_stats":null,"previous_names":["aisk/rust-filelock"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/aisk/rust-filelock","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aisk%2Frust-filelock","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aisk%2Frust-filelock/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aisk%2Frust-filelock/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aisk%2Frust-filelock/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aisk","download_url":"https://codeload.github.com/aisk/rust-filelock/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aisk%2Frust-filelock/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32279652,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-25T18:29:39.964Z","status":"ssl_error","status_checked_at":"2026-04-25T18:29:32.149Z","response_time":59,"last_error":"SSL_read: 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"],"created_at":"2024-10-02T02:20:58.298Z","updated_at":"2026-04-25T22:31:29.026Z","avatar_url":"https://github.com/aisk.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# filelock\n\n[![Rust](https://github.com/aisk/filelock/actions/workflows/ci.yml/badge.svg)](https://github.com/aisk/filelock/actions/workflows/ci.yml)\n\nSimple filelock library for rust, using `flock` on Unix-like systems and `LockFileEx` on Windows under the hood.\n\n![](https://repository-images.githubusercontent.com/403675076/cd5f3635-33cf-4905-8315-1e7aee048c0d)\n\n*Image by Homutan, source: https://www.pixiv.net/artworks/128080460*\n\n## Installation\n\n```sh\n$ cargo add filelock\n```\n\n## Usage\n\n```rust\nuse filelock;\n\nfn main() -\u003e Result\u003c(), Box\u003cdyn std::error::Error\u003e\u003e {\n    let mut lock = filelock::new(\"myfile.lock\");\n    let _guard = lock.lock()?;\n\n    // Perform critical operations\n\n    // Lock is automatically released when _guard goes out of scope\n    Ok(())\n}\n```\n\nFor manual control:\n\n```rust\nuse filelock;\n\nfn main() -\u003e Result\u003c(), Box\u003cdyn std::error::Error\u003e\u003e {\n    let mut lock = filelock::new(\"myfile.lock\");\n    let guard = lock.lock()?;\n\n    // Perform critical operations\n\n    // Manually unlock with error handling\n    guard.unlock()?;\n\n    Ok(())\n}\n```\n\n## Documentation\n\nSee https://docs.rs/filelock/latest/filelock/.\n\n## License\n\nFilelock is distributed by a [MIT license](https://github.com/aisk/filelock/tree/master/LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faisk%2Frust-filelock","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faisk%2Frust-filelock","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faisk%2Frust-filelock/lists"}