diff options
author | Ferris Tseng <ferristseng@fastmail.fm> | 2020-07-18 22:59:57 -0400 |
---|---|---|
committer | Ferris Tseng <ferristseng@fastmail.fm> | 2020-07-18 22:59:57 -0400 |
commit | e4ecefe07bc0936898f4a7b4161ac4ff973a02aa (patch) | |
tree | ebefd3d82ac121e3a7be8a9c931b0a8a05e94e26 | |
parent | faebdc22a181ccc711313dfd063439e3c71729a6 (diff) |
increment version
-rw-r--r-- | Cargo.lock | 2 | ||||
-rw-r--r-- | README.md | 4 | ||||
-rw-r--r-- | ipfs-api/Cargo.toml | 2 | ||||
-rw-r--r-- | ipfs-api/src/client/internal.rs | 34 | ||||
-rw-r--r-- | ipfs-api/src/lib.rs | 4 |
5 files changed, 7 insertions, 39 deletions
@@ -967,7 +967,7 @@ dependencies = [ [[package]] name = "ipfs-api" -version = "0.7.2" +version = "0.8.0-rc" dependencies = [ "actix-http 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)", "actix-multipart-rfc7578 0.3.0-rc (registry+https://github.com/rust-lang/crates.io-index)", @@ -10,14 +10,14 @@ Rust library for connecting to the IPFS HTTP API using tokio. ```toml [dependencies] -ipfs-api = "0.7.2" +ipfs-api = "0.8.0-rc" ``` You can use `actix-web` as a backend instead of `hyper`. ```toml [dependencies] -ipfs-api = { version = "0.7.2", features = ["actix"], default-features = false } +ipfs-api = { version = "0.8.0-rc", features = ["actix"], default-features = false } ``` ### Examples diff --git a/ipfs-api/Cargo.toml b/ipfs-api/Cargo.toml index e820690..86f8c3f 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.7.2" +version = "0.8.0-rc" readme = "../README.md" license = "MIT OR Apache-2.0" diff --git a/ipfs-api/src/client/internal.rs b/ipfs-api/src/client/internal.rs index 05cdc64..6921d9c 100644 --- a/ipfs-api/src/client/internal.rs +++ b/ipfs-api/src/client/internal.rs @@ -18,7 +18,7 @@ use actix_multipart::client::multipart; use bytes::Bytes; use futures::{future, FutureExt, Stream, StreamExt, TryFutureExt, TryStreamExt}; use http::{ - uri::{InvalidUri, Scheme, Uri}, + uri::{Scheme, Uri}, StatusCode, }; #[cfg(feature = "hyper")] @@ -34,7 +34,6 @@ use std::time::Duration; use std::{ fs::File, io::{Cursor, Read}, - net::SocketAddr, path::{Path, PathBuf}, }; use tokio_util::codec::{Decoder, FramedRead}; @@ -88,37 +87,6 @@ impl Default for IpfsClient { } impl IpfsClient { - /// Creates a new `IpfsClient`. - /// - #[deprecated( - since = "0.7.2", - note = "Please use [`TryFromUri::from_host_and_port`]. Removing in next major version." - )] - pub fn new(host: &str, port: u16) -> Result<IpfsClient, InvalidUri> { - let uri = format!("http://{}:{}", host, port); - - // Using from_str instead of from_host_and_port internally to preserve the error type. - Self::from_str(&uri[..]) - } - - #[deprecated( - since = "0.7.2", - note = "Please use [`TryFromUri::from_uri`]. Removing in next major version." - )] - pub fn new_from_uri(uri: &str) -> Result<IpfsClient, InvalidUri> { - Self::from_str(uri) - } - - #[deprecated( - since = "0.7.2", - note = "Please use [`TryFromUri::from_socket`]. Removing in next major version." - )] - pub fn from(socket_addr: SocketAddr) -> IpfsClient { - Self::from_socket(Scheme::HTTP, socket_addr).unwrap() - } -} - -impl IpfsClient { /// Builds the url for an api call. /// fn build_base_request<Req>( diff --git a/ipfs-api/src/lib.rs b/ipfs-api/src/lib.rs index 6692649..c1045e4 100644 --- a/ipfs-api/src/lib.rs +++ b/ipfs-api/src/lib.rs @@ -14,14 +14,14 @@ //! //! ```toml //! [dependencies] -//! ipfs-api = "0.7.2" +//! ipfs-api = "0.8.0-rc" //! ``` //! //! You can use `actix-web` as a backend instead of `hyper`. //! //! ```toml //! [dependencies] -//! ipfs-api = { version = "0.7.2", features = ["actix"], default-features = false } +//! ipfs-api = { version = "0.8.0-rc", features = ["actix"], default-features = false } //! ``` //! //! ## Examples |