Skip to content

Commit 68e86b2

Browse files
committed
WIP: Turbopack: Implement bincode Encode/Decode traits on all turbo task values
1 parent 52f0b9c commit 68e86b2

File tree

129 files changed

+2003
-325
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

129 files changed

+2003
-325
lines changed

Cargo.lock

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

Cargo.toml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,7 @@ next-taskless = { path = "crates/next-taskless" }
293293

294294
# Turbopack
295295
auto-hash-map = { path = "turbopack/crates/turbo-tasks-auto-hash-map" }
296+
turbo-bincode = { path = "turbopack/crates/turbo-bincode" }
296297
turbo-prehash = { path = "turbopack/crates/turbo-prehash" }
297298
turbo-rcstr = { path = "turbopack/crates/turbo-rcstr" }
298299
turbo-dyn-eq-hash = { path = "turbopack/crates/turbo-dyn-eq-hash" }
@@ -359,6 +360,7 @@ preset_env_base = "5.0.0"
359360

360361

361362
# General Deps
363+
bincode = { version = "2.0.1", features = ["serde"] }
362364
chromiumoxide = { version = "0.5.4", features = [
363365
"tokio-runtime",
364366
], default-features = false }
@@ -452,11 +454,12 @@ serde_bytes = "0.11.15"
452454
serde_path_to_error = "0.1.16"
453455
serde_qs = "0.13.0"
454456
serde_with = "3.12.0"
455-
smallvec = { version = "1.13.1", features = [
457+
smallvec = { version = "1.15.1", features = [
456458
"serde",
457459
"const_generics",
458460
"union",
459461
"const_new",
462+
"impl_bincode",
460463
] }
461464
swc_sourcemap = "9.3.4"
462465
strsim = "0.11.1"
@@ -480,4 +483,6 @@ webbrowser = "1.0.6"
480483
inventory = "0.3.21"
481484

482485
[patch.crates-io]
486+
bincode = { git = "https://github.com/bgw/bincode.git", branch = "bgw/patches" }
487+
virtue = { git = "https://github.com/bgw/virtue.git", branch = "bgw/fix-generic-default-parsing" }
483488
mdxjs = { git = "https://github.com/mischnic/mdxjs-rs.git", branch = "swc-core-32" }
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
[package]
2+
name = "turbo-bincode"
3+
version = "0.0.0"
4+
description = "Utilities for bincode used in turbo-tasks and turbopack"
5+
license = "MIT"
6+
edition = "2024"
7+
8+
[lib]
9+
10+
[lints]
11+
workspace = true
12+
13+
[dependencies]
14+
bincode = { workspace = true }
15+
indexmap = { workspace = true }
16+
mime = { workspace = true }
17+
serde = { workspace = true }
18+
serde_json = { workspace = true }

0 commit comments

Comments
 (0)