From 4b2825ede3831374f1a6691e787124e762f62454 Mon Sep 17 00:00:00 2001 From: Ferris Tseng Date: Mon, 18 Jan 2021 22:24:56 -0500 Subject: increment version and add docs for feature flags --- ipfs-api/Cargo.toml | 2 +- ipfs-api/src/lib.rs | 20 ++++++++++++++++++-- 2 files changed, 19 insertions(+), 3 deletions(-) diff --git a/ipfs-api/Cargo.toml b/ipfs-api/Cargo.toml index 1520c95..da8754b 100644 --- a/ipfs-api/Cargo.toml +++ b/ipfs-api/Cargo.toml @@ -7,7 +7,7 @@ documentation = "https://docs.rs/ipfs-api" repository = "https://github.com/ferristseng/rust-ipfs-api" keywords = ["ipfs"] categories = ["filesystem", "web-programming"] -version = "0.9.0" +version = "0.10.0" readme = "../README.md" license = "MIT OR Apache-2.0" diff --git a/ipfs-api/src/lib.rs b/ipfs-api/src/lib.rs index df5dea2..6e14849 100644 --- a/ipfs-api/src/lib.rs +++ b/ipfs-api/src/lib.rs @@ -14,14 +14,30 @@ //! //! ```toml //! [dependencies] -//! ipfs-api = "0.9.0" +//! ipfs-api = "0.10.0" //! ``` +//! ### Feature Flags //! //! You can use `actix-web` as a backend instead of `hyper`. //! //! ```toml //! [dependencies] -//! ipfs-api = { version = "0.9.0", features = ["with-actix"], default-features = false } +//! ipfs-api = { version = "0.10.0", features = ["with-actix"], default-features = false } +//! ``` +//! +//! You also have the option of using [`rustls`](https://crates.io/crates/rustls) +//! instead of native tls: +//! +//! ```toml +//! [dependencies] +//! ipfs-api = { version = "0.10.0", features = ["with-hyper-rustls"], default-features = false } +//! ``` +//! +//! To enable the builder pattern (default) use the `with-builder` feature: +//! +//! ```toml +//! [dependencies] +//! ipfs-api = { version = "0.10.0", features = ["with-hyper-rustls", "with-builder"], default-features = false } //! ``` //! //! ## Examples -- cgit v1.2.3