/third_party/rust/crates/serde/test_suite/tests/ |
D | test_gen.rs | 20 use serde::de::DeserializeOwned; 21 use serde::{Deserialize, Deserializer, Serialize, Serializer}; 49 #[serde(serialize_with = "ser_x", deserialize_with = "de_x")] in test_gen() 57 #[serde(with = "both_x")] in test_gen() 64 #[serde(skip_deserializing)] in test_gen() 66 #[serde(serialize_with = "ser_x", deserialize_with = "de_x")] in test_gen() 95 Newtype(#[serde(serialize_with = "ser_x", deserialize_with = "de_x")] X), in test_gen() 98 #[serde(serialize_with = "ser_x", deserialize_with = "de_x")] X, in test_gen() 102 #[serde(serialize_with = "ser_x", deserialize_with = "de_x")] in test_gen() 121 struct Newtype(#[serde(serialize_with = "ser_x", deserialize_with = "de_x")] X); in test_gen() [all …]
|
D | test_remote.rs | 3 use serde::{Deserialize, Serialize}; 81 #[serde(with = "UnitDef")] 84 #[serde(with = "PrimitivePrivDef")] 87 #[serde(with = "PrimitivePubDef")] 90 #[serde(with = "NewtypePrivDef")] 93 #[serde(with = "NewtypePubDef")] 96 #[serde(with = "TuplePrivDef")] 99 #[serde(with = "TuplePubDef")] 102 #[serde(with = "StructPrivDef")] 105 #[serde(with = "StructPubDef")] [all …]
|
D | test_annotations.rs | 10 use serde::de::{self, MapAccess, Unexpected, Visitor}; 11 use serde::{Deserialize, Deserializer, Serialize, Serializer}; 88 #[serde(default)] 90 #[serde(default = "MyDefault::my_default")] 92 #[serde(skip_deserializing)] 94 #[serde(skip_deserializing, default = "MyDefault::my_default")] 101 #[serde(default)] B, 102 #[serde(default = "MyDefault::my_default")] C, 111 #[serde(flatten)] 117 #[serde(flatten)] [all …]
|
D | test_serde_path.rs | 5 #[derive(serde::Serialize, serde::Deserialize)] in test_gen_custom_serde() 6 #[serde(crate = "fake_serde")] in test_gen_custom_serde() 18 pub use serde::*; 38 impl<T: serde::Serialize> AssertNotSerdeSerialize for T {} 42 impl<'a, T: serde::Deserialize<'a>> AssertNotSerdeDeserialize<'a> for T {}
|
D | test_borrow.rs | 3 use serde::{Deserialize, Deserializer}; 98 #[serde(field_identifier)] in test_field_identifier() 100 #[serde(borrow)] in test_field_identifier() 107 #[serde(field_identifier)] in test_field_identifier() 109 #[serde(borrow)] in test_field_identifier() 125 #[serde(borrow)] in test_cow() 161 #[serde(borrow)] in test_lifetimes() 175 #[serde(borrow = "'b")] in test_lifetimes()
|
D | test_identifier.rs | 2 use serde::Deserialize; 8 #[serde(variant_identifier)] in test_variant_identifier() 25 #[serde(field_identifier, rename_all = "snake_case")] in test_field_identifier() 42 #[serde(field_identifier, rename_all = "snake_case")] in test_unit_fallthrough() 46 #[serde(other)] in test_unit_fallthrough() 60 #[serde(field_identifier, rename_all = "snake_case")] in test_newtype_fallthrough() 73 #[serde(field_identifier, rename_all = "snake_case")] in test_newtype_fallthrough_generic()
|
/third_party/rust/crates/serde/serde_test/ |
D | README.md | 1 # Serde   [![Build Status]][actions] [![Latest Version]][crates.io] [![serde: rustc 1.13+]][Ru… 3 [Build Status]: https://img.shields.io/github/workflow/status/serde-rs/serde/CI/master 4 [actions]: https://github.com/serde-rs/serde/actions?query=branch%3Amaster 5 [Latest Version]: https://img.shields.io/crates/v/serde.svg 6 [crates.io]: https://crates.io/crates/serde 7 [serde: rustc 1.13+]: https://img.shields.io/badge/serde-rustc_1.13+-lightgray.svg 18 - [An overview of Serde](https://serde.rs/) 19 - [Data formats supported by Serde](https://serde.rs/#data-formats) 20 - [Setting up `#[derive(Serialize, Deserialize)]`](https://serde.rs/derive.html) 21 - [Examples](https://serde.rs/examples.html) [all …]
|
D | Cargo.toml | 8 homepage = "https://serde.rs" 9 repository = "https://github.com/serde-rs/serde" 10 documentation = "https://docs.serde.rs/serde_test/" 11 keywords = ["serde", "serialization"] 17 serde = { version = "1.0.60", path = "../serde" } 20 serde = { version = "1.0", path = "../serde" }
|
/third_party/rust/crates/serde/serde_derive/ |
D | README.md | 1 # Serde   [![Build Status]][actions] [![Latest Version]][crates.io] [![serde: rustc 1.13+]][Ru… 3 [Build Status]: https://img.shields.io/github/workflow/status/serde-rs/serde/CI/master 4 [actions]: https://github.com/serde-rs/serde/actions?query=branch%3Amaster 5 [Latest Version]: https://img.shields.io/crates/v/serde.svg 6 [crates.io]: https://crates.io/crates/serde 7 [serde: rustc 1.13+]: https://img.shields.io/badge/serde-rustc_1.13+-lightgray.svg 18 - [An overview of Serde](https://serde.rs/) 19 - [Data formats supported by Serde](https://serde.rs/#data-formats) 20 - [Setting up `#[derive(Serialize, Deserialize)]`](https://serde.rs/derive.html) 21 - [Examples](https://serde.rs/examples.html) [all …]
|
D | Cargo.toml | 8 homepage = "https://serde.rs" 9 repository = "https://github.com/serde-rs/serde" 10 documentation = "https://serde.rs/derive.html" 11 keywords = ["serde", "serialization", "no_std"] 29 serde = { version = "1.0", path = "../serde" }
|
/third_party/rust/crates/serde/serde/ |
D | README.md | 1 # Serde   [![Build Status]][actions] [![Latest Version]][crates.io] [![serde: rustc 1.13+]][Ru… 3 [Build Status]: https://img.shields.io/github/workflow/status/serde-rs/serde/CI/master 4 [actions]: https://github.com/serde-rs/serde/actions?query=branch%3Amaster 5 [Latest Version]: https://img.shields.io/crates/v/serde.svg 6 [crates.io]: https://crates.io/crates/serde 7 [serde: rustc 1.13+]: https://img.shields.io/badge/serde-rustc_1.13+-lightgray.svg 18 - [An overview of Serde](https://serde.rs/) 19 - [Data formats supported by Serde](https://serde.rs/#data-formats) 20 - [Setting up `#[derive(Serialize, Deserialize)]`](https://serde.rs/derive.html) 21 - [Examples](https://serde.rs/examples.html) [all …]
|
D | Cargo.toml | 2 name = "serde" 8 homepage = "https://serde.rs" 9 repository = "https://github.com/serde-rs/serde" 10 documentation = "https://docs.serde.rs/serde/" 11 keywords = ["serde", "serialization", "no_std"] 45 # https://github.com/serde-rs/serde/issues/812
|
/third_party/rust/crates/serde/ |
D | README.md | 1 # Serde   [![Build Status]][actions] [![Latest Version]][crates.io] [![serde: rustc 1.13+]][Ru… 3 [Build Status]: https://img.shields.io/github/workflow/status/serde-rs/serde/CI/master 4 [actions]: https://github.com/serde-rs/serde/actions?query=branch%3Amaster 5 [Latest Version]: https://img.shields.io/crates/v/serde.svg 6 [crates.io]: https://crates.io/crates/serde 7 [serde: rustc 1.13+]: https://img.shields.io/badge/serde-rustc_1.13+-lightgray.svg 18 - [An overview of Serde](https://serde.rs/) 19 - [Data formats supported by Serde](https://serde.rs/#data-formats) 20 - [Setting up `#[derive(Serialize, Deserialize)]`](https://serde.rs/derive.html) 21 - [Examples](https://serde.rs/examples.html) [all …]
|
D | CONTRIBUTING.md | 9 Serde development is spread across lots of repositories, but this serde-rs/serde 30 ##### In the [`serde`] directory 46 [`serde`]: https://github.com/serde-rs/serde/tree/master/serde 47 [`test_suite`]: https://github.com/serde-rs/serde/tree/master/test_suite
|
/third_party/rust/crates/serde/test_suite/tests/ui/identifier/ |
D | both.stderr | 1 error: #[serde(field_identifier)] and #[serde(variant_identifier)] cannot both be set 4 4 | #[serde(field_identifier, variant_identifier)] 7 error: #[serde(field_identifier)] and #[serde(variant_identifier)] cannot both be set 10 4 | #[serde(field_identifier, variant_identifier)]
|
/third_party/rust/crates/serde/test_suite/tests/ui/enum-representation/ |
D | untagged-and-adjacent.stderr | 1 error: untagged enum cannot have #[serde(tag = "...", content = "...")] 4 4 | #[serde(untagged)] 7 error: untagged enum cannot have #[serde(tag = "...", content = "...")] 10 5 | #[serde(tag = "t", content = "c")] 13 error: untagged enum cannot have #[serde(tag = "...", content = "...")] 16 5 | #[serde(tag = "t", content = "c")]
|
/third_party/rust/crates/cxx/macro/src/ |
D | clang.rs | 1 use serde::{Deserialize, Serialize}; 17 #[serde(skip_serializing_if = "Option::is_none")] 23 #[serde(skip_serializing_if = "Option::is_none")] 25 #[serde( 44 #[serde(rename = "qualType")] 46 #[serde(rename = "desugaredQualType", skip_serializing_if = "Option::is_none")]
|
/third_party/rust/crates/syn/json/src/ |
D | lib.rs | 51 use serde::{Deserialize, Deserializer, Serialize}; 85 #[serde( 92 #[serde(skip_serializing_if = "is_true", default = "bool_true")] 103 #[serde(rename = "fields")] 107 #[serde(rename = "variants")] 126 #[serde(rename_all = "lowercase")] 143 #[serde(rename = "proc_macro2")]
|
/third_party/rust/crates/serde/test_suite/ |
D | Cargo.toml | 11 unstable = ["serde/unstable"] 14 serde = { path = "../serde" } 23 serde = { path = "../serde", features = ["rc", "derive"] }
|
/third_party/rust/crates/tracing/tracing-serde/ |
D | README.md | 5 # tracing-serde 7 An adapter for serializing [`tracing`] types using [`serde`]. 12 [docs-badge]: https://docs.rs/tracing-serde/badge.svg 13 [docs-url]: https://docs.rs/tracing-serde 20 scoped, structured, and async-aware diagnostics.`tracing-serde` enables 21 serializing `tracing` types using [`serde`]. 26 programmatically. With `tracing-serde`, you can implement a 28 existing ecosystem of `serde` serializers to talk with distributed 50 tracing-serde = "0.1" 122 [`serde`]: https://crates.io/crates/serde
|
D | Cargo.toml | 2 name = "tracing-serde" 10 A compatibility layer for serializing trace data with `serde` 22 valuable = ["valuable_crate", "valuable-serde", "tracing-core/valuable"] 25 serde = "1" 33 valuable-serde = { version = "0.1.0", optional = true, default-features = false }
|
/third_party/rust/crates/humantime/ |
D | README.md | 47 See [humantime-serde] for serde integration (previous crate [serde-humantime] looks unmaintained). 49 [serde-humantime]: https://docs.rs/serde-humantime/0.1.1/serde_humantime/ 50 [humantime-serde]: https://docs.rs/humantime-serde
|
/third_party/rust/crates/tracing/tracing-subscriber/ |
D | Cargo.toml | 34 json = ["tracing-serde", "serde", "serde_json"] 35 valuable = ["tracing-core/valuable", "valuable_crate", "valuable-serde", "tracing-serde/valuable"] 57 serde = { version = "1.0.140", optional = true } 58 tracing-serde = { path = "../tracing-serde", version = "0.1.3", optional = true } 69 valuable-serde = { version = "0.1.0", optional = true, default-features = false }
|
/third_party/rust/crates/serde/test_suite/tests/ui/malformed/ |
D | not_list.stderr | 1 error: expected #[serde(...)] 4 4 | #[serde] 7 error: expected #[serde(...)] 10 5 | #[serde = "?"]
|
/third_party/rust/crates/serde/test_suite/tests/ui/with-variant/ |
D | skip_de_whole_variant.stderr | 1 error: variant `Unit` cannot have both #[serde(deserialize_with)] and #[serde(skip_deserializing)] 4 5 | / #[serde(deserialize_with = "deserialize_some_unit_variant")] 5 6 | | #[serde(skip_deserializing)]
|