serde-yaml icon indicating copy to clipboard operation
serde-yaml copied to clipboard

Strongly typed YAML library for Rust

Results 58 serde-yaml issues
Sort by recently updated
recently updated
newest added

I have this code ``` use std::collections::HashMap; use serde::Deserialize; #[derive(Deserialize, Debug)] #[serde(default)] struct Request { m: HashMap } impl Default for Request { fn default() -> Self { Self {...

It would be amazing to be able to serialize [flow sequences](https://yaml.org/spec/1.2.2/#741-flow-sequences), especially for Vec, as I'm trying to use serde-yaml to serialize some 64-byte sequences in a compact format. Would...

Awesome library! Thanks! I think I have found a bug: I have a struct which uses Yaml tags. Here is when I print the original yaml string: Here is what...

I have a data structure like this: ``` struct Foo { // ... foos: BTreeMap, // ... } ``` And sometimes, the keys for that map can be numbers, but...

Please support the deserialization of [binary types] into `Vec` . [binary types]: http://yaml.org/type/binary.html

enhancement

The official yaml spec allows underscores in integers (for readability), would there be a way to achieve this in `serde_yaml` too?

Right now it's not possible for crate users to do custom error handling because the error enum is not exported. Would it be possible to export it? This would be...

I'd like to have support for emitting richer output from the serializer. My motivation is to improve outputs which are meant to be both human and machine readable. For me,...

```rust use serde::Deserialize; #[serde(tag = "Type")] #[derive(Deserialize, Debug)] pub enum Node { One { }, Two { value1: u32, value2: u32, }, } fn main() { let text = "\...

Hi, first off, thank you for the great work! I have recently started to use this lib and I found that when serializing mappings, empty values are replaces by `~`....