Skip to content

Commit ebefdad

Browse files
authored
Merge pull request #2098 from nnethercote/add-serde_derive
Add `serde_derive-1.0.219` benchmark
2 parents 10f993f + d875ee3 commit ebefdad

30 files changed

+9351
-0
lines changed

collector/compile-benchmarks/README.md

+2
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ They mostly consist of real-world crates.
5151
Rust programs.
5252
- **serde_derive-1.0.136**: A proc-macro sub-crate used by `serde`. Used by
5353
many other Rust programs. Stresses declarative macro expansion somewhat.
54+
- **serde_derive-1.0.219**: A proc-macro sub-crate used by `serde`. Used by
55+
many other Rust programs. Stresses declarative macro expansion somewhat.
5456
- **stm32f4-0.14.0**: A crate that has many thousands of blanket impl blocks.
5557
It uses cargo features to enable large portions of its structure and is
5658
built with `--features=stm32f410` to have faster benchmarking times.

collector/compile-benchmarks/REUSE.toml

+5
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,11 @@ path = "serde_derive-1.0.136/**"
225225
SPDX-FileCopyrightText = "serde contributors"
226226
SPDX-License-Identifier = "MIT OR Apache-2.0"
227227

228+
[[annotations]]
229+
path = "serde_derive-1.0.219/**"
230+
SPDX-FileCopyrightText = "serde contributors"
231+
SPDX-License-Identifier = "MIT OR Apache-2.0"
232+
228233
[[annotations]]
229234
path = "stm32f4-0.14.0/**"
230235
SPDX-FileCopyrightText = "stm32-rs contributors"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"git": {
3+
"sha1": "49d098debdf8b5c38bfb6868f455c6ce542c422c"
4+
},
5+
"path_in_vcs": "serde_derive"
6+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
diff --git a/src/de.rs b/src/de.rs
2+
index 4967e35d..5e68fdac 100644
3+
--- a/src/de.rs
4+
+++ b/src/de.rs
5+
@@ -12,6 +12,8 @@ use syn::spanned::Spanned;
6+
use syn::{parse_quote, Ident, Index, Member};
7+
8+
pub fn expand_derive_deserialize(input: &mut syn::DeriveInput) -> syn::Result<TokenStream> {
9+
+ println!("testing");
10+
+
11+
replace_receiver(input);
12+
13+
let ctxt = Ctxt::new();

collector/compile-benchmarks/serde_derive-1.0.219/Cargo.lock

+68
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
2+
#
3+
# When uploading crates to the registry Cargo will automatically
4+
# "normalize" Cargo.toml files for maximal compatibility
5+
# with all versions of Cargo and also rewrite `path` dependencies
6+
# to registry (e.g., crates.io) dependencies.
7+
#
8+
# If you are reading this file be aware that the original Cargo.toml
9+
# will likely look very different (and much more reasonable).
10+
# See Cargo.toml.orig for the original contents.
11+
12+
[package]
13+
edition = "2015"
14+
rust-version = "1.61"
15+
name = "serde_derive"
16+
version = "1.0.219"
17+
authors = [
18+
"Erick Tryzelaar <[email protected]>",
19+
"David Tolnay <[email protected]>",
20+
]
21+
build = false
22+
exclude = ["build.rs"]
23+
autolib = false
24+
autobins = false
25+
autoexamples = false
26+
autotests = false
27+
autobenches = false
28+
description = "Macros 1.1 implementation of #[derive(Serialize, Deserialize)]"
29+
homepage = "https://serde.rs"
30+
documentation = "https://serde.rs/derive.html"
31+
readme = "crates-io.md"
32+
keywords = [
33+
"serde",
34+
"serialization",
35+
"no_std",
36+
"derive",
37+
]
38+
categories = [
39+
"no-std",
40+
"no-std::no-alloc",
41+
]
42+
license = "MIT OR Apache-2.0"
43+
repository = "https://github.com/serde-rs/serde"
44+
45+
[package.metadata.docs.rs]
46+
rustdoc-args = [
47+
"--generate-link-to-definition",
48+
"--extern-html-root-url=core=https://doc.rust-lang.org",
49+
"--extern-html-root-url=alloc=https://doc.rust-lang.org",
50+
"--extern-html-root-url=std=https://doc.rust-lang.org",
51+
"--extern-html-root-url=proc_macro=https://doc.rust-lang.org",
52+
]
53+
targets = ["x86_64-unknown-linux-gnu"]
54+
55+
[features]
56+
default = []
57+
deserialize_in_place = []
58+
59+
[lib]
60+
name = "serde_derive"
61+
path = "src/lib.rs"
62+
proc-macro = true
63+
64+
[dependencies.proc-macro2]
65+
version = "1.0.74"
66+
features = ["proc-macro"]
67+
default-features = false
68+
69+
[dependencies.quote]
70+
version = "1.0.35"
71+
features = ["proc-macro"]
72+
default-features = false
73+
74+
[dependencies.syn]
75+
version = "2.0.81"
76+
features = [
77+
"clone-impls",
78+
"derive",
79+
"parsing",
80+
"printing",
81+
"proc-macro",
82+
]
83+
default-features = false
84+
85+
[dev-dependencies.serde]
86+
version = "1"
87+
88+
[workspace]

collector/compile-benchmarks/serde_derive-1.0.219/Cargo.toml.orig

+41
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)