Skip to content

A serde Serializer for the standard formatting machinery

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

KodrAus/serde_fmt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A serde Serializer for the standard formatting machinery

Topics

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Packages

No packages published

Languages