ryanmcgrath / minreq

Simple, minimal-dependency HTTP client.

Home Page:https://crates.io/crates/minreq

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

minreq

Crates.io Documentation CI

Simple, minimal-dependency HTTP client. Optional features for json responses (json-using-serde), unicode domains (punycode), http proxies (proxy), and https with various TLS implementations (https-rustls, https-bundled, https-bundled-probe, https-native, and https which is an alias for https-rustls).

Without any optional features, my casual testing indicates about 100 KB additional executable size for stripped release builds using this crate. Compiled with rustc 1.45.2, println!("Hello, World!"); is 239 KB on my machine, where the hello example is 347 KB. Both are pure Rust, so aside from libc, everything is statically linked.

Note: some of the dependencies of this crate (especially serde and the various https libraries) are a lot more complicated than this library, and their impact on executable size reflects that.

License

This crate is distributed under the terms of the ISC license.

About

Simple, minimal-dependency HTTP client.

https://crates.io/crates/minreq

License:ISC License


Languages

Language:Rust 100.0%