cargo-publish-ordered 0.1.0

A Cargo plugin to ensure that dependencies are published in a specific order, useful for projects with interdependent crates.
use thiserror::Error;

#[derive(Error, Debug)]
pub enum Error {
    #[error("IO Error:{0}")]
    Io(#[from] std::io::Error),
    #[error("Cargo metadata parsing error:{0}")]
    Metadata(#[from] cargo_metadata::Error),
    #[error("Dependency graph contains loops")]
    CyclicDependency,
    #[error("Cargo publish failed:{0}")]
    Publish(String),
    #[error("User cancels publish")]
    UserCancelled,
    #[error("Invalid command line arguments: {0}")]
    Dialog(dialoguer::Error),
}

impl From<dialoguer::Error> for Error {
    fn from(err: dialoguer::Error) -> Self {
        Error::Dialog(err)
    }
}