crates-io-cli 4.0.3

Interact with crates.io from the command-line
1
2
3
4
5
6
7
8
9
10
11
12
use crate::http_utils::RemoteCallError;
use std::io;

#[derive(Debug, thiserror::Error)]
pub enum Error {
    #[error("Json from the server could not be decoded")]
    DecodeJson(#[from] serde_json::Error),
    #[error("A remote call could not be performed")]
    Easy(#[from] RemoteCallError),
    #[error("Could not initialize tokio event loop in worker thread")]
    ReactorInit(#[from] io::Error),
}