Skip to content
#

serde

Here are 178 public repositories matching this topic...

dtolnay
dtolnay commented Mar 24, 2017

In the following string validation, the error message points to the close quote after "test123". It would be nicer to point to the opening quote instead.

#[macro_use]
extern crate serde_derive;

extern crate serde;
extern crate serde_json;

use std::fmt;
use serde::de::{self, Deserializer, Visitor};

#[derive(Deserialize, Debug)]
struct Esheri3 {
    #[serde(deserialize_with
mre
mre commented Sep 21, 2019

From our benchmarks we can see that we are consistently slower than everyone else when serializing/deserializing boolean values. We should fix that.

orjson is using an unsafe block to create a reference to a boolean:
https://github.com/ijl/orjson/blob/03d55e99a953ce93cedc05f03e4b63b0bcbbcc7a/src/decode.rs#L81-L96

This avoids additional allocations.
For comparison, this is our code at the

Improve this page

Add a description, image, and links to the serde topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the serde topic, visit your repo's landing page and select "manage topics."

Learn more