iprobe

Crates.ioiprobe
lib.rsiprobe
version0.1.1
sourcesrc
created_at2025-01-06 07:58:23.351975+00
updated_at2025-03-06 19:23:18.293783+00
descriptionProbe if the host system supports IPv4, IPv6 and IPv4-mapped-IPv6.
homepagehttps://github.com/al8n/iprobe
repositoryhttps://github.com/al8n/iprobe
max_upload_size
id1505386
size35,620
Al Liu (al8n)

documentation

https://docs.rs/iprobe

README

iprobe

Probe if the host system supports IPv4, IPv6 and IPv4-mapped-IPv6.

github LoC Build codecov

docs.rs crates.io crates.io license

Installation

[dependencies]
iprobe = "0.1"

Example

use iprobe::{ipv4, ipv6, ipv4_mapped_ipv6};

println!("IPv4 enabled: {}", ipv4());
println!("IPv6 enabled: {}", ipv6());
println!("IPv4-mapped IPv6 enabled: {}", ipv4_mapped_ipv6());

License

iprobe is under the terms of both the MIT license and the Apache License (Version 2.0).

See LICENSE-APACHE, LICENSE-MIT for details.

Copyright (c) 2025 Al Liu.

Commit count: 0

cargo fmt