Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop unused zeroize_derive feature dependency #467

Merged
merged 1 commit into from
Aug 12, 2024

Conversation

ctz
Copy link
Contributor

@ctz ctz commented Jul 29, 2024

This seems to be unused, and has the effect of removing several large proc macro dependencies from the dependency tree:

--- before	2024-07-29 11:07:47.128726312 +0100
+++ after	2024-07-29 11:08:01.911637253 +0100
@@ -24,15 +24,6 @@
 ├── paste v1.0.15 (proc-macro)
 ├── untrusted v0.7.1
 └── zeroize v1.8.1
-    └── zeroize_derive v1.4.2 (proc-macro)
-        ├── proc-macro2 v1.0.86
-        │   └── unicode-ident v1.0.12
-        ├── quote v1.0.36
-        │   └── proc-macro2 v1.0.86 (*)
-        └── syn v2.0.72
-            ├── proc-macro2 v1.0.86 (*)
-            ├── quote v1.0.36 (*)
-            └── unicode-ident v1.0.12

According to cargo build --timings the eliminated dependencies account for 3.95s of the build time, which compares unfavourably with the entire aws-lc-sys build time (5.75s).

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license and the ISC license.

This seems to be unused, and has the effect of removing
several large proc macro dependencies from the dependency
tree:

```
--- before	2024-07-29 11:07:47.128726312 +0100
+++ after	2024-07-29 11:08:01.911637253 +0100
@@ -24,15 +24,6 @@
 ├── paste v1.0.15 (proc-macro)
 ├── untrusted v0.7.1
 └── zeroize v1.8.1
-    └── zeroize_derive v1.4.2 (proc-macro)
-        ├── proc-macro2 v1.0.86
-        │   └── unicode-ident v1.0.12
-        ├── quote v1.0.36
-        │   └── proc-macro2 v1.0.86 (*)
-        └── syn v2.0.72
-            ├── proc-macro2 v1.0.86 (*)
-            ├── quote v1.0.36 (*)
-            └── unicode-ident v1.0.12
```

According to `cargo build --timings` the eliminated dependencies
account for 3.95s of the build time, which compares unfavourably
with the entire aws-lc-sys build time (5.75s).
@ctz ctz requested a review from a team as a code owner July 29, 2024 10:30
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.83%. Comparing base (c358484) to head (fbd5a18).
Report is 41 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #467      +/-   ##
==========================================
- Coverage   95.80%   92.83%   -2.97%     
==========================================
  Files          61       62       +1     
  Lines        8143     8626     +483     
  Branches        0     8626    +8626     
==========================================
+ Hits         7801     8008     +207     
- Misses        342      362      +20     
- Partials        0      256     +256     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@justsmth justsmth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR!

@justsmth justsmth requested a review from skmcgrail July 30, 2024 12:19
@justsmth justsmth mentioned this pull request Aug 2, 2024
@justsmth justsmth merged commit 9c68df9 into aws:main Aug 12, 2024
191 of 195 checks passed
@ctz ctz deleted the jbp-drop-unused-zeroize-derive branch August 12, 2024 18:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants