Skip to main content

sval_json/
lib.rs

1/*!
2JSON support for `sval`.
3
4Values are serialized in a `serde`-compatible way.
5*/
6
7#![doc(html_logo_url = "https://raw.githubusercontent.com/sval-rs/sval/main/asset/logo.svg")]
8#![no_std]
9#![deny(missing_docs)]
10
11#[cfg(feature = "alloc")]
12extern crate alloc;
13
14#[cfg(feature = "std")]
15extern crate std;
16
17mod error;
18
19mod value;
20pub use self::value::*;
21
22mod to_fmt;
23pub use self::{error::*, to_fmt::*};
24
25pub mod tags;
26
27#[cfg(feature = "alloc")]
28mod to_string;
29
30#[cfg(feature = "alloc")]
31pub use self::to_string::*;
32
33#[cfg(feature = "std")]
34mod to_io;
35
36#[cfg(feature = "std")]
37pub use self::to_io::*;
38
39#[cfg(feature = "std")]
40mod to_vec;
41
42#[cfg(feature = "std")]
43pub use self::to_vec::*;