Skip to content

Commit 423f578

Browse files
committed
Add test infrastructure for serde_derive-1.0.136.
1 parent 38c15b0 commit 423f578

File tree

3 files changed

+17
-0
lines changed

3 files changed

+17
-0
lines changed

collector/benchmarks/README.md

Lines changed: 2 additions & 0 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.
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.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,5 @@ version = "1.0"
4242
[features]
4343
default = []
4444
deserialize_in_place = []
45+
46+
[workspace]

0 commit comments

Comments
 (0)