From e4ecefe07bc0936898f4a7b4161ac4ff973a02aa Mon Sep 17 00:00:00 2001 From: Ferris Tseng Date: Sat, 18 Jul 2020 22:59:57 -0400 Subject: increment version --- ipfs-api/Cargo.toml | 2 +- ipfs-api/src/client/internal.rs | 34 +--------------------------------- ipfs-api/src/lib.rs | 4 ++-- 3 files changed, 4 insertions(+), 36 deletions(-) (limited to 'ipfs-api') 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}; @@ -87,37 +86,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 { - 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 { - 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. /// 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 -- cgit v1.2.3