#serialization #serde #serde-serialize #api #no-std

no-std serde_fmt

Write any serde::Serialize using the standard formatting APIs

7 releases (4 stable)

1.0.3 May 5, 2023
1.0.2 Apr 8, 2023
1.0.1 May 22, 2020
0.1.0 Feb 3, 2020
0.0.1 Jul 11, 2019

#1747 in Encoding

Download history 234872/week @ 2024-12-09 180870/week @ 2024-12-16 48855/week @ 2024-12-23 102947/week @ 2024-12-30 275608/week @ 2025-01-06 248013/week @ 2025-01-13 200616/week @ 2025-01-20 220997/week @ 2025-01-27 231047/week @ 2025-02-03 218547/week @ 2025-02-10 213578/week @ 2025-02-17 252402/week @ 2025-02-24 249518/week @ 2025-03-03 255347/week @ 2025-03-10 234988/week @ 2025-03-17 260441/week @ 2025-03-24

1,004,980 downloads per month
Used in 4 crates (via value-bag-serde1)

Apache-2.0 OR MIT

19KB
476 lines

serde_fmt

rust Latest version Documentation Latest

Convert any serde::Serialize into a std::fmt::Debug:

fn takes_serialize(v: impl Serialize) {
    dbg!(serde_fmt::to_debug(&v));

    // Do something with `v`
}

Supported rustc

This library requires a Rust compiler that's at least 1.42.0.

Getting started

Add serde_fmt to your Cargo.toml:

[dependencies.serde_fmt]
version = "1.0.3"

By default, this library will depend on the standard library. To use it in no-std environments, you can disable the default crate features:

[dependencies.serde_fmt]
version = "1.0.3"
default-features = false

Dependencies

~98–325KB