Skip to content

Commit 5a14ec4

Browse files
authored
Merge pull request #1306 from nnethercote/add-serde_derive
Add `serde_derive-1.0.136`
2 parents dce89f5 + 0c00c74 commit 5a14ec4

29 files changed

+9173
-13
lines changed

collector/benchmarks/README.md

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ They mostly consist of real-world crates.
3737
- **ripgrep-13.0.0**: A line-oriented search tool. A widely-used utility.
3838
- **serde-1.0.136**: A serialization/deserialization crate. Used by many other
3939
Rust programs.
40+
- **serde_derive-1.0.136**: A proc-macro sub-crate used by `serde`. Used by
41+
many other Rust programs. Stresses declarative macro expansion somewhat.
4042
- **stm32f4-0.14.0**: A crate that has many thousands of blanket impl blocks.
4143
It uses cargo features to enable large portions of its structure and is
4244
built with `--features=stm32f410` to have faster benchmarking times.
@@ -96,8 +98,8 @@ compiler in interesting ways.
9698
actix-web and other libraries with similarly nested type combinators.
9799
- **regression-31157**: A small program that caused a [large performance
98100
regression](https://github.com/rust-lang/rust/issues/31157) from the past.
99-
- **token-stream-stress**: Constructs a long token stream much like the `quote`
100-
crate does, which caused [quadratic
101+
- **token-stream-stress**: A proc-macro crate. Constructs a long token stream
102+
much like the `quote` crate does, which caused [quadratic
101103
behavior](https://github.com/rust-lang/rust/issues/65080) in the past.
102104
- **tt-muncher**: Calls a quadratic TT muncher macro (based on `quote::quote!`)
103105
with a long input, which stresses macro expansion.
@@ -188,13 +190,8 @@ Rust code being written today.
188190
applies correctly, e.g. `target/release/collector bench_local +nightly
189191
--id Test --profiles=Check --scenarios=IncrPatched
190192
--include=$NEW_BENCHMARK`
191-
- `git grep` for occurrences of the old benchmark name (e.g. in
192-
`.github/workflows/ci.yml` or `ci/check-*.sh`) and see if anything similar
193-
needs doing for the new benchmark... usually not.
194-
- Add the new entry to `collector/benchmarks/README.md`. Don't remove the
195-
entry for the old benchmark yet.
196-
- Compare benchmarking time for the old and new versions of the benchmark.
197-
(It's useful to know if the new one is a lot slower than the old one.)
193+
- Add the new entry to `collector/benchmarks/README.md`.
194+
- Consider the benchmarking time for the benchmark.
198195
- First, measure the entire compilation time with something like this, by
199196
doing this within the benchmark directory is good:
200197
```
@@ -230,9 +227,13 @@ Rust code being written today.
230227
231228
## Update a benchmark
232229
233-
- Do this in two steps. First add the new version of the benchmark. Once the PR
234-
is merged, make sure it's running correctly. Second, remove the old version
235-
of the benchmark. Doing it in two steps ensures we have continuity of
236-
profiling coverage in the case where something goes wrong.
230+
- Do this in two steps.
231+
- First add the new version of the benchmark. Compare the benchmarking time
232+
of the two versions to make sure nothing outrageous has happened. Once the
233+
PR is merged, make sure it's running correctly.
234+
- Second, remove the old version of the benchmark.
235+
Doing it in two steps ensures we have continuity of profiling coverage in the
236+
case where something goes wrong.
237+
- Compare the benchmarking time of the two versions.
237238
- When adding the new version, for `perf-config.json` and the `N-*.patch`
238239
files, use the corresponding files for the old version as a starting point.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"git": {
3+
"sha1": "02bd79a0bada78dd88d050f6478806f001f41fb0"
4+
},
5+
"path_in_vcs": "serde_derive"
6+
}
Lines changed: 13 additions & 0 deletions
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 ff7bc42f..d51d2954 100644
3+
--- a/src/de.rs
4+
+++ b/src/de.rs
5+
@@ -17,6 +17,8 @@ use std::ptr;
6+
pub fn expand_derive_deserialize(
7+
input: &mut syn::DeriveInput,
8+
) -> Result<TokenStream, Vec<syn::Error>> {
9+
+ println!("testing");
10+
+
11+
replace_receiver(input);
12+
13+
let ctxt = Ctxt::new();

collector/benchmarks/serde_derive-1.0.136/Cargo.lock

Lines changed: 54 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
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+
rust-version = "1.31"
14+
name = "serde_derive"
15+
version = "1.0.136"
16+
authors = ["Erick Tryzelaar <[email protected]>", "David Tolnay <[email protected]>"]
17+
include = ["build.rs", "src/**/*.rs", "crates-io.md", "README.md", "LICENSE-APACHE", "LICENSE-MIT"]
18+
description = "Macros 1.1 implementation of #[derive(Serialize, Deserialize)]"
19+
homepage = "https://serde.rs"
20+
documentation = "https://serde.rs/derive.html"
21+
readme = "crates-io.md"
22+
keywords = ["serde", "serialization", "no_std"]
23+
license = "MIT OR Apache-2.0"
24+
repository = "https://github.com/serde-rs/serde"
25+
[package.metadata.docs.rs]
26+
targets = ["x86_64-unknown-linux-gnu"]
27+
28+
[lib]
29+
name = "serde_derive"
30+
proc-macro = true
31+
[dependencies.proc-macro2]
32+
version = "1.0"
33+
34+
[dependencies.quote]
35+
version = "1.0"
36+
37+
[dependencies.syn]
38+
version = "1.0.60"
39+
[dev-dependencies.serde]
40+
version = "1.0"
41+
42+
[features]
43+
default = []
44+
deserialize_in_place = []
45+
46+
[workspace]

collector/benchmarks/serde_derive-1.0.136/Cargo.toml.orig

Lines changed: 32 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)