| Crates.io | serde_fmt |
| lib.rs | serde_fmt |
| version | 1.0.3 |
| created_at | 2019-07-10 23:44:11.650458+00 |
| updated_at | 2023-05-05 01:33:24.525247+00 |
| description | Write any serde::Serialize using the standard formatting APIs |
| homepage | |
| repository | https://github.com/KodrAus/serde_fmt.git |
| max_upload_size | |
| id | 148183 |
| size | 30,395 |
serde_fmtConvert any serde::Serialize into a std::fmt::Debug:
fn takes_serialize(v: impl Serialize) {
dbg!(serde_fmt::to_debug(&v));
// Do something with `v`
}
rustcThis library requires a Rust compiler that's at least 1.42.0.
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