{"id":19904571,"url":"https://github.com/risoflora/system_shutdown","last_synced_at":"2025-05-16T06:04:58.328Z","repository":{"id":57669183,"uuid":"228636135","full_name":"risoflora/system_shutdown","owner":"risoflora","description":"Rust library to shut down, reboot or log out the system.","archived":false,"fork":false,"pushed_at":"2025-04-01T15:23:14.000Z","size":63,"stargazers_count":66,"open_issues_count":3,"forks_count":6,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-05-15T02:18:25.533Z","etag":null,"topics":["reboot","rust","shutdown","system"],"latest_commit_sha":null,"homepage":"https://crates.io/crates/system_shutdown","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/risoflora.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":"2019-12-17T14:37:37.000Z","updated_at":"2025-03-29T16:24:17.000Z","dependencies_parsed_at":"2024-11-12T20:42:03.565Z","dependency_job_id":null,"html_url":"https://github.com/risoflora/system_shutdown","commit_stats":{"total_commits":32,"total_committers":4,"mean_commits":8.0,"dds":0.375,"last_synced_commit":"29ff230941a736e4090ddaa1ed1c93a86ffc8c3c"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/risoflora%2Fsystem_shutdown","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/risoflora%2Fsystem_shutdown/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/risoflora%2Fsystem_shutdown/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/risoflora%2Fsystem_shutdown/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/risoflora","download_url":"https://codeload.github.com/risoflora/system_shutdown/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254478187,"owners_count":22077676,"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":["reboot","rust","shutdown","system"],"created_at":"2024-11-12T20:28:55.950Z","updated_at":"2025-05-16T06:04:58.303Z","avatar_url":"https://github.com/risoflora.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `system_shutdown`\n\n[![CI/CD][ci-cd-badge]][ci-cd-url]\n[![Crates.io][crates-badge]][crates-url]\n[![Documentation][docs-badge]][docs-url]\n[![License][license-badge]][license-url]\n\n`system_shutdown` provides a cross platform way to shut down, reboot or log out operations.\n\nSupported platforms: Linux, Windows and macOS.\n\n## Usage\n\nAdd this to your `Cargo.toml`:\n\n```ini\n[dependencies]\nsystem_shutdown = \"*\"\n```\n\nand then:\n\n```rust\nuse system_shutdown::shutdown;\n\nfn main() {\n    match shutdown() {\n        Ok(_) =\u003e println!(\"Shutting down, bye!\"),\n        Err(error) =\u003e eprintln!(\"Failed to shut down: {}\", error),\n    }\n}\n```\n\nIn most of the systems it does not requires the user to be root/admin.\n\n## Contributions\n\nPull Requests are welcome! =)\n\n## License\n\n`system_shutdown` is licensed under either of the following, at your option:\n\n- [Apache License 2.0](LICENSE-APACHE)\n- [MIT License](LICENSE-MIT)\n\n[ci-cd-badge]: https://github.com/risoflora/system_shutdown/actions/workflows/CI.yml/badge.svg\n[ci-cd-url]: https://github.com/risoflora/system_shutdown/actions/workflows/CI.yml\n[crates-badge]: https://img.shields.io/crates/v/system_shutdown.svg\n[crates-url]: https://crates.io/crates/system_shutdown\n[docs-badge]: https://docs.rs/system_shutdown/badge.svg\n[docs-url]: https://docs.rs/system_shutdown\n[license-badge]: https://img.shields.io/crates/l/system_shutdown.svg\n[license-url]: https://github.com/risoflora/system_shutdown#license\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frisoflora%2Fsystem_shutdown","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frisoflora%2Fsystem_shutdown","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frisoflora%2Fsystem_shutdown/lists"}