{"id":16361410,"url":"https://github.com/pevers/nosleep","last_synced_at":"2025-03-21T00:31:45.447Z","repository":{"id":40447023,"uuid":"483368960","full_name":"pevers/nosleep","owner":"pevers","description":"Cross-platform library to block the power save function in the OS","archived":false,"fork":false,"pushed_at":"2024-03-17T17:42:54.000Z","size":45,"stargazers_count":10,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-17T19:21:22.087Z","etag":null,"topics":["caffeine","nosleep","powersave","powersaving","prevent-lock","prevent-screen-lock"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pevers.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}},"created_at":"2022-04-19T18:44:40.000Z","updated_at":"2025-01-19T13:57:02.000Z","dependencies_parsed_at":"2024-10-28T09:12:02.724Z","dependency_job_id":"fe0f349f-c732-4469-8e26-90e1a6a8bc5f","html_url":"https://github.com/pevers/nosleep","commit_stats":{"total_commits":24,"total_committers":1,"mean_commits":24.0,"dds":0.0,"last_synced_commit":"11512c1247d15b97b6014b7f839f77fc790eb493"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pevers%2Fnosleep","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pevers%2Fnosleep/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pevers%2Fnosleep/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pevers%2Fnosleep/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pevers","download_url":"https://codeload.github.com/pevers/nosleep/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244717391,"owners_count":20498283,"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":["caffeine","nosleep","powersave","powersaving","prevent-lock","prevent-screen-lock"],"created_at":"2024-10-11T02:13:57.834Z","updated_at":"2025-03-21T00:31:45.099Z","avatar_url":"https://github.com/pevers.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nosleep\n\n[![Continuous Integration (macOS)](https://github.com/pevers/nosleep/actions/workflows/mac.yml/badge.svg)](https://github.com/pevers/nosleep/actions/workflows/mac.yml) [![Continuous Integration (Linux)](https://github.com/pevers/nosleep/actions/workflows/linux.yaml/badge.svg)](https://github.com/pevers/nosleep/actions/workflows/linux.yaml) [![Continuous Integration (Windows)](https://github.com/pevers/nosleep/actions/workflows/windows.yaml/badge.svg)](https://github.com/pevers/nosleep/actions/workflows/windows.yaml) [![license](https://img.shields.io/crates/l/nosleep?style=flat-square)](https://crates.io/crates/nosleep/) [![version](https://img.shields.io/crates/v/nosleep?style=flat-square)](https://crates.io/crates/nosleep/) ![Crates.io](https://img.shields.io/crates/d/nosleep?style=flat-square)\n\nCross-platform library to block the power save function in the OS.\n\n```rust\nuse nosleep::{NoSleep, NoSleepTrait};\nlet mut nosleep = NoSleep::new().unwrap();\nnosleep\n    .prevent_display_sleep() // or prevent_system_sleep()\n    .unwrap();\nstd::thread::sleep(std::time::Duration::from_millis(180_000));\nnosleep.stop().unwrap(); // Not strictly needed\n```\n\n## Supported Platforms\n\n| Platform | Status | Tested |\n|----------|--------|--------|\n| Linux    | ✔️      | ✔️      |\n| macOS    | ✔️      | ✔️      |\n| Windows  | ✔️      | ✔️      |\n| iOS      | ❌      | ❌      |\n| Android  | ❌      | ❌     |","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpevers%2Fnosleep","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpevers%2Fnosleep","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpevers%2Fnosleep/lists"}