3 releases

0.1.0-beta.3 Mar 30, 2024
0.1.0-beta.2 Mar 4, 2024
0.1.0-beta.1 Nov 18, 2023

#9 in #compio

Download history 9/week @ 2024-02-17 7/week @ 2024-02-24 143/week @ 2024-03-02 27/week @ 2024-03-09 2/week @ 2024-03-16 228/week @ 2024-03-30 18/week @ 2024-04-06

246 downloads per month
Used in cyper

MIT license

20KB
399 lines

Cyper

MIT licensed crates.io docs.rs Check Test

An HTTP library based on compio and hyper.

Quick start

Add compio and cyper as dependency:

compio = { version = "0.9.0", features = ["macros"] }
cyper = "0.1.0-beta.2"

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/").send().await.unwrap();
    println!("{}", response.text().await.unwrap());
}

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

~5–17MB
~249K SLoC