summaryrefslogtreecommitdiffstats
path: root/ipfs-api/src
diff options
context:
space:
mode:
Diffstat (limited to 'ipfs-api/src')
-rw-r--r--ipfs-api/src/client/internal.rs34
-rw-r--r--ipfs-api/src/lib.rs4
2 files changed, 3 insertions, 35 deletions
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