{"id":15471444,"url":"https://github.com/aisk/rust-ping","last_synced_at":"2025-04-13T00:43:48.293Z","repository":{"id":25363212,"uuid":"103816020","full_name":"aisk/rust-ping","owner":"aisk","description":null,"archived":false,"fork":false,"pushed_at":"2025-01-21T15:25:28.000Z","size":30,"stargazers_count":23,"open_issues_count":4,"forks_count":20,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-09T01:31:24.939Z","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/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}},"created_at":"2017-09-17T09:02:34.000Z","updated_at":"2025-04-05T01:42:36.000Z","dependencies_parsed_at":"2024-02-08T13:50:02.400Z","dependency_job_id":null,"html_url":"https://github.com/aisk/rust-ping","commit_stats":{"total_commits":26,"total_committers":7,"mean_commits":"3.7142857142857144","dds":"0.34615384615384615","last_synced_commit":"2759ee00a2ec1015cf5e2c4e1659266a74225112"},"previous_names":["aisk/rust-ping","aisk/ping"],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aisk%2Frust-ping","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aisk%2Frust-ping/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aisk%2Frust-ping/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aisk%2Frust-ping/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aisk","download_url":"https://codeload.github.com/aisk/rust-ping/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247964434,"owners_count":21025193,"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":[],"created_at":"2024-10-02T02:19:57.186Z","updated_at":"2025-04-13T00:43:48.265Z","avatar_url":"https://github.com/aisk.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rust ping\n\n[![Crates.io](https://img.shields.io/crates/v/ping.svg)](https://crates.io/crates/ping)\n[![MIT licensed](https://img.shields.io/badge/license-MIT-blue.svg)](./LICENSE)\n[![Docs](https://docs.rs/ping/badge.svg)](https://docs.rs/ping/)\n\nPing function implemented in rust.\n\n## dgram sock and raw sock\n\nSending an ICMP package should create a socket of type `raw` on most platforms. And most of these platforms require special privileges. Basically, it needs to run with sudo on Linux to create a `raw` socket.\n\nThese requirements introduce security risks, so on modern platforms, `unprivileged ping` has been introduced, with socket type `dgram`. So there are two mods in this crate, rawsock and dgramsock, which have the same function `ping`. And the global ping function is just an alias for the `rawsock::ping`. You can pick the one which is suitable for your use case.\n\nFor Linux users, although modern kernels support ping with `dgram`, in some distributions (like Arch), it's disabled by default. More details: https://wiki.archlinux.org/title/sysctl#Allow_unprivileged_users_to_create_IPPROTO_ICMP_sockets\n\n## License\n\nThis library contains codes from https://github.com/knsd/tokio-ping, which is licensed under either of\n\n- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)\n- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)\n\nAnd other codes is licensed under\n\n- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faisk%2Frust-ping","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faisk%2Frust-ping","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faisk%2Frust-ping/lists"}