diff options
author | Ferris Tseng <ferristseng@fastmail.fm> | 2021-01-18 22:25:17 -0500 |
---|---|---|
committer | Ferris Tseng <ferristseng@fastmail.fm> | 2021-01-18 22:25:17 -0500 |
commit | b05c46aad05d23800743608f20cdc8c41f1793de (patch) | |
tree | 7106d1233f4c40b9daf4c1dd3b4ca7e7f9ce1d90 | |
parent | 4b2825ede3831374f1a6691e787124e762f62454 (diff) |
regenerate README.md
-rw-r--r-- | README.md | 20 |
1 files changed, 18 insertions, 2 deletions
@@ -10,14 +10,30 @@ Rust library for connecting to the IPFS HTTP API using tokio. ```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 |