David Tolnay

Results 361 issues of David Tolnay

Currently I need to update both the markdown source and the generated html. I should be able to push changes to markdown and have GitHub Actions push a commit containing...

process

This is a common failure mode in 2018 edition crates that copy a derive invocation from docs.

content

For example where it talks about serialize_tuple_struct there should be a link to [Serializer::serialize_tuple_struct](https://docs.rs/serde/1.0/serde/trait.Serializer.html#tymethod.serialize_tuple_struct).

As reported in https://github.com/serde-rs/serde/issues/1162, the [Serialize enum as number](https://serde.rs/enum-number.html) example does not work so well if there is a mix of positive and negative enum values. Let's show the more...

content

The features page should recommend having your own `std` feature if you depend on no_std Serde. ```toml [features] std = ["serde/std"] ```

content

In https://serde.rs/borrow.html. Cow is mentioned in the example code but let's explain why you would want to use it, especially in formats that have escape sequences.

content

[On this page.](https://serde.rs/deserialize-struct.html) They are just a performance optimization to avoid allocating a String for recognized fields. You can use String instead.

content

Thanks @tomprice! https://github.com/serde-rs/serde-rs.github.io/pull/47#issuecomment-296314474

content