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

Bump napi-rs to latest #8838

Merged
merged 5 commits into from Feb 19, 2023
Merged

Bump napi-rs to latest #8838

merged 5 commits into from Feb 19, 2023

Conversation

devongovett
Copy link
Member

This bumps napi-rs to the latest version and converts all of our Rust modules to use the new derive macros of napi-rs v2. It has the benefit of automatically generating the JS for loading the binding, which uses static requires (useful for something else I'm working on). This is now generated rather than committed to the repo. Also the code is much simpler to read, and it generates TS definitions (even though we don't use those).

This also bumps the Rust edition to 2021 so we can get rid of all the extern crate statements.

@parcel-benchmark
Copy link

parcel-benchmark commented Feb 18, 2023

Benchmark Results

Kitchen Sink ✅

Timings

Description Time Difference
Cold 1.58s +123.00ms ⚠️
Cached 348.00ms +19.00ms ⚠️

Cold Bundles

Bundle Size Difference Time Difference
dist/legacy/parcel.7cdb0fad.webp 102.94kb +0.00b 105.00ms -140.00ms 🚀
dist/legacy/parcel.7cdb0fad.webp 102.94kb +0.00b 106.00ms -140.00ms 🚀
dist/modern/parcel.7cdb0fad.webp 102.94kb +0.00b 105.00ms -141.00ms 🚀

Cached Bundles

Bundle Size Difference Time Difference
dist/legacy/parcel.7cdb0fad.webp 102.94kb +0.00b 100.00ms +19.00ms ⚠️
dist/legacy/parcel.7cdb0fad.webp 102.94kb +0.00b 100.00ms +18.00ms ⚠️
dist/modern/parcel.7cdb0fad.webp 102.94kb +0.00b 100.00ms +18.00ms ⚠️

React HackerNews ✅

Timings

Description Time Difference
Cold 11.16s +1.63s ⚠️
Cached 442.00ms -1.00ms

Cold Bundles

No bundle changes detected.

Cached Bundles

No bundle changes detected.

AtlasKit Editor ✅

Timings

Description Time Difference
Cold 2.07m +23.33s ⚠️
Cached 2.25s +64.00ms

Cold Bundles

Bundle Size Difference Time Difference
dist/media-viewer-analytics-error-boundary.6847f80f.js 3.43kb +0.00b 1.08m -12.56s 🚀
dist/index.html 167.00b +0.00b 44.50s -32.70s 🚀

Cached Bundles

No bundle changes detected.

Three.js ✅

Timings

Description Time Difference
Cold 9.07s +2.13s ⚠️
Cached 274.00ms +10.00ms

Cold Bundles

No bundle changes detected.

Cached Bundles

No bundle changes detected.

Click here to view a detailed benchmark overview.

@devongovett devongovett merged commit 4472631 into v2 Feb 19, 2023
@devongovett devongovett deleted the bump-napi branch February 19, 2023 03:51
@lovell lovell mentioned this pull request Feb 19, 2023
3 tasks
marcins pushed a commit to marcins/parcel that referenced this pull request Jul 14, 2023
* upstream/v2:
  Missing edge for multiple targets (parcel-bundler#8854)
  Split large runtime manifest into separate bundles (parcel-bundler#8837)
  Improvements to new resolver (parcel-bundler#8844)
  Fix published files for resolver
  New resolver implementation in Rust (parcel-bundler#8807)
  Update yarn.lock (parcel-bundler#8843)
  Bump napi-rs to latest (parcel-bundler#8838)
lettertwo added a commit that referenced this pull request Nov 6, 2023
* upstream/v2: (128 commits)
  [webextension] Add support for `chrome_style` (#8867)
  Switch to SWC minifier by default (#8860)
  Use BitSet for bundler intersections (#8862)
  best key logic truncating package names (#8865)
  Add support for loadConfig to resolver plugins (#8847)
  Missing edge for multiple targets (#8854)
  Split large runtime manifest into separate bundles (#8837)
  Improvements to new resolver (#8844)
  Fix published files for resolver
  New resolver implementation in Rust (#8807)
  Update yarn.lock (#8843)
  Bump napi-rs to latest (#8838)
  Support .proxyrc.cjs  (#8833)
  Sort global deps before injecting imports (#8818)
  Sort CSS module exports (#8817)
  fix: add extra information to unique bundles (#8784)
  Don't blow up HMR when <link />s don't have hrefs (#8800)
  v2.8.3
  Changelog for v2.8.3
  Address bug by updating an asset reference and merge conditions (#8762)
  ...
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.

None yet

3 participants