tson 0.1.0

Terse JSON - a compact binary JSON format for microcontrollers and constrained environments
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use alloc::string::String;
use thiserror::Error;

#[derive(Error, Debug)]
pub enum TsonError {
    #[error("Failed to parse TSON: {0}")]
    ParseError(String),
    #[allow(dead_code)]
    #[error("Unsupported data type: {0}")]
    UnsupportedType(String),
    /// Only available when the `std` feature is enabled.
    #[cfg(feature = "std")]
    #[error("IO error: {0}")]
    IoError(#[from] std::io::Error),
}