dge-gen 0.2.0

Crate for building a computational graph to be executed distributely
Documentation
use askama;
use thiserror;

pub type Result<T> = std::result::Result<T, Error>;

#[derive(Debug, thiserror::Error)]
pub enum Error {
    // graph related errors
    #[error("Node is ill formed: {}", .node)]
    IllFormedNode { node: String },

    #[error(transparent)]
    AskamaError(#[from] askama::Error),

    #[error(transparent)]
    IoError(#[from] std::io::Error),

    #[error("The given file name is not valid: {}", .0)]
    InvalidFileName(String),

    #[error(transparent)]
    StripPathPrefixError(#[from] std::path::StripPrefixError),

    #[error("Failed to generate svg for the dot graph")]
    ErrorGeneratingSvg,
}