bencode2json 0.1.0

A Bencoded to JSON converter library and console app with no intermediary in-memory structure.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! Custom error type for both I/O and formatting strings errors.
use std::{fmt, io};
use thiserror::Error;

/// Custom error type for both I/O and formatting errors.
#[derive(Debug, Error)]
pub enum Error {
    #[error("I/O error: {0}")]
    Io(#[from] io::Error),

    #[error("Formatting error: {0}")]
    Fmt(#[from] fmt::Error),
}