10 releases (breaking)

Uses new Rust 2024

0.8.0 Feb 7, 2026
0.7.1 Dec 4, 2025
0.6.0 Nov 1, 2025
0.4.0 Jun 22, 2025
0.2.0 Nov 21, 2024

#5 in #async-net

Download history 1022/week @ 2025-11-23 1579/week @ 2025-11-30 1549/week @ 2025-12-07 1701/week @ 2025-12-14 852/week @ 2025-12-21 1159/week @ 2025-12-28 1047/week @ 2026-01-04 1656/week @ 2026-01-11 495/week @ 2026-01-18 1020/week @ 2026-01-25 1278/week @ 2026-02-01 816/week @ 2026-02-08 1090/week @ 2026-02-15 727/week @ 2026-02-22 954/week @ 2026-03-01 1623/week @ 2026-03-08

4,497 downloads per month
Used in 2 crates

MIT license

35KB
485 lines

Cyper

MIT licensed crates.io docs.rs Check Test

An HTTP library based on compio and hyper.

This project references code from reqwest.

Quick start

Add compio and cyper as dependency:

compio = { version = "0.17.0", features = ["macros"] }
cyper = "0.7.0"

Then we can start a simple HTTP request:

use cyper::Client;

#[compio::main]
async fn main() {
    let client = Client::new();
    let response = client
        .get("https://www.example.com/")
        .unwrap()
        .send()
        .await
        .unwrap();
    println!("{}", response.text().await.unwrap());
}

Features

  • HTTPS - powered by compio-tls
    • native-tls
    • rustls
  • HTTP 2
  • HTTP 3 - powered by compio-quic
  • cookies
  • charset
  • serde-json
  • multipart
  • compression
    • gzip
    • brotli

Nyquest support

cyper supports nyquest experimentally. Start with registering:

cyper::nyquest::register();

Contributing

There are opportunities to contribute to Cyper at any level. It doesn't matter if you are just getting started with Rust or are the most weathered expert, we can use your help. If you have any question about Cyper, feel free to join our telegram group. Before contributing, please checkout our contributing guide.

Dependencies

~20–38MB
~587K SLoC