sval_fmt/lib.rs
1/*!
2Treat any [`sval::Value`] as a [`core::fmt::Debug`].
3
4This crate provides [`ToFmt`], a wrapper around any [`sval::Value`]
5that formats it using the same output that you'd get if you
6derived [`core::fmt::Debug`].
7*/
8
9#![doc(html_logo_url = "https://raw.githubusercontent.com/sval-rs/sval/main/asset/logo.svg")]
10#![no_std]
11#![deny(missing_docs)]
12
13#[cfg(any(test, feature = "alloc"))]
14extern crate alloc;
15
16mod writer;
17
18mod to_fmt;
19mod to_value;
20mod to_write;
21
22pub mod tags;
23mod token_write;
24
25pub use self::{to_fmt::*, to_value::*, to_write::*, token_write::*};
26
27#[cfg(feature = "alloc")]
28mod to_string;
29
30#[cfg(feature = "alloc")]
31pub use self::to_string::stream_to_string;