14 releases

0.1.16 Aug 17, 2024
0.1.14 Aug 5, 2024
0.1.13 Jul 18, 2024
0.1.3 Jun 25, 2024

#9 in #mark-down

Download history 5/week @ 2024-07-22 144/week @ 2024-07-29 174/week @ 2024-08-05 171/week @ 2024-08-12 41/week @ 2024-08-19 25/week @ 2024-08-26 26/week @ 2024-09-02 1/week @ 2024-09-09 31/week @ 2024-09-16 44/week @ 2024-09-23 16/week @ 2024-09-30 3/week @ 2024-10-07 9/week @ 2024-10-14 34/week @ 2024-10-21 28/week @ 2024-10-28 23/week @ 2024-11-04

94 downloads per month
Used in 6 crates (3 directly)

MulanPSL-2.0

38KB
493 lines

mreq

use aok::{Result, OK};
use mreq::Mreq;
use static_init::constructor;
use tracing::info;

#[constructor(0)]
extern "C" fn init() {
  loginit::init()
}

#[tokio::test]
async fn test() -> Result<()> {
  let mut req = Mreq::new(
    [
      "httpstat.us",
      "jsd.onmicrosoft.cn",
      "cdn.jsdelivr.net",
      "cdn.jsdmirror.com",
    ],
    [],
  );
  let v = req.get("npm/i18md/.v").await?;
  let v = String::from_utf8_lossy(&v);
  info!("1 {}", v);
  let v = req.get("npm/i18md/.v").await?;
  let v = String::from_utf8_lossy(&v);
  info!("2 {}", v);
  // let v = req.get("npm/i18md/.v").await?;
  // let v = String::from_utf8_lossy(&v);
  // info!("{}", v);
  OK
}

About

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

关于

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

Dependencies

~6–17MB
~231K SLoC