{"id":20394139,"url":"https://github.com/lesnyrumcajs/wakey","last_synced_at":"2025-04-06T04:09:53.190Z","repository":{"id":37617506,"uuid":"168946210","full_name":"LesnyRumcajs/wakey","owner":"LesnyRumcajs","description":"Rust Wake-on-LAN library","archived":false,"fork":false,"pushed_at":"2025-03-24T08:38:52.000Z","size":62,"stargazers_count":39,"open_issues_count":0,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-30T03:04:54.054Z","etag":null,"topics":["crate","rust","wake-on-lan"],"latest_commit_sha":null,"homepage":"","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/LesnyRumcajs.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-02-03T13:07:27.000Z","updated_at":"2025-03-24T08:38:55.000Z","dependencies_parsed_at":"2023-09-29T08:32:58.298Z","dependency_job_id":"cc60dbb5-4bc5-4135-8828-8989fb6fc47e","html_url":"https://github.com/LesnyRumcajs/wakey","commit_stats":{"total_commits":45,"total_committers":4,"mean_commits":11.25,"dds":0.3111111111111111,"last_synced_commit":"e0201beb25c53d7dc79614cbbdc2cf563aaebc46"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LesnyRumcajs%2Fwakey","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LesnyRumcajs%2Fwakey/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LesnyRumcajs%2Fwakey/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LesnyRumcajs%2Fwakey/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LesnyRumcajs","download_url":"https://codeload.github.com/LesnyRumcajs/wakey/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247430868,"owners_count":20937874,"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":["crate","rust","wake-on-lan"],"created_at":"2024-11-15T03:52:00.893Z","updated_at":"2025-04-06T04:09:53.170Z","avatar_url":"https://github.com/LesnyRumcajs.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Wakey\n[![Rust](https://github.com/LesnyRumcajs/wakey/actions/workflows/rust.yml/badge.svg)](https://github.com/LesnyRumcajs/wakey/actions/workflows/rust.yml)\n[![Crates.io](https://img.shields.io/crates/v/wakey.svg)](https://crates.io/crates/wakey)\n[![docs.rs](https://img.shields.io/badge/api-rustdoc-blue.svg)](https://docs.rs/wakey)\n[![codecov](https://codecov.io/github/LesnyRumcajs/wakey/graph/badge.svg?token=PXR2yHWzvJ)](https://codecov.io/github/LesnyRumcajs/wakey)\n\nLibrary for managing [Wake-on-LAN packets](https://en.wikipedia.org/wiki/Wake-on-LAN). It supports:\n* creating magic packets,\n* broadcasting them via UDP.\n\n# Usage\n\nFrom string representation of MAC address and using defaults when broadcasting:\n```rust\nlet wol = wakey::WolPacket::from_string(\u0026mac_adress, sep)?;\nif wol.send_magic().is_ok() {\n    println!(\"Sent the magic packet.\");\n} else {\n    println!(\"Failed to send the magic packet.\");\n}\n```\n\nPackets can also be constructed with raw bytes and sent from / to custom addresses:\n```rust\nuse std::net::SocketAddr;\n\nlet wol = wakey::WolPacket::from_bytes(\u0026[0x00, 0x01, 0x02, 0x03, 0x04, 0x05])?;\nlet src = SocketAddr::from(([0,0,0,0], 0));\nlet dst = SocketAddr::from(([255,255,255,255], 9));\n\nwol.send_magic_to(src, dst)?;\n```\n\n## Included binary\n\n```\ncargo run --bin wakey-wake 00:11:22:33:44:55\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flesnyrumcajs%2Fwakey","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flesnyrumcajs%2Fwakey","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flesnyrumcajs%2Fwakey/lists"}