summaryrefslogtreecommitdiffstats
path: root/src/ipfs_client.rs
blob: 13d8bde72c1c3adc505f756af91d0483c0a0ed2e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
pub use ipfs_api_backend_hyper as backend;
pub type IpfsClient = backend::IpfsClient;


#[cfg(test)]
mod tests {
    use ipfs_api_backend_hyper::TryFromUri;
    use super::IpfsClient;

    #[test]
    fn test_connect_str() {
        let _ = IpfsClient::from_str("http://localhost:5001").unwrap();
    }

    #[test]
    fn test_connect_host_and_port() {
        let _ = IpfsClient::from_host_and_port(http::uri::Scheme::HTTP, "localhost", 5001).unwrap();
    }
}