18 个版本

0.1.20 2024 年 8 月 17 日
0.1.19 2024 年 6 月 13 日
0.1.18 2024 年 1 月 11 日

10#mark-down

Download history 14/week @ 2024-04-26 11/week @ 2024-05-17 3/week @ 2024-05-24 4/week @ 2024-05-31 101/week @ 2024-06-07 110/week @ 2024-06-14 31/week @ 2024-06-21 25/week @ 2024-06-28 12/week @ 2024-07-05 47/week @ 2024-07-12 5/week @ 2024-07-19 63/week @ 2024-07-26 34/week @ 2024-08-02 96/week @ 2024-08-09

每月下载量 209
用于 3 个软件包 (通过 xsmtp)

MulanPSL-2.0

11KB
244 行代码(不包括注释)

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
}

输出


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

关于

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

关于

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

依赖项

~17–29MB
~561K SLoC