idns

Crates.ioidns
lib.rsidns
version0.1.20
sourcesrc
created_at2024-01-05 16:22:02.693485
updated_at2024-08-17 12:51:34.585706
descriptionidns
homepagehttps://github.com/i18n-site/rust/tree/main/idns
repositoryhttps://github.com/i18n-site/rust.git
max_upload_size
id1089902
size11,072
i18n.site (i18nsite)

documentation

README

idns

use aok::{Result, OK};

#[tokio::test]
async fn test() -> Result<()> {
  // let use_ipv6 = use_ipv6().await;
  for host in [
    "mail.i18n.site",
    "baidu.com",
    "youdao.com",
    "z.com",
    "google.com",
  ] {
    let r = idns::A(host).await?;
    dbg!(r);
  }
  OK
}

out


running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s


running 1 test
test test ... ok

test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 15.02s


running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

About

This project is an open-source component of i18n.site ⋅ Internationalization Solution.

关于

本项目为 i18n.site ⋅ 国际化解决方案 的开源组件。

Commit count: 22

cargo fmt