Skip to content

Commit b6273ac

Browse files
committed
WIP: Turbopack: Implement bincode Encode/Decode traits on all turbo task values
1 parent ad15366 commit b6273ac

File tree

131 files changed

+2010
-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.

131 files changed

+2010
-325
lines changed

Cargo.lock

Lines changed: 76 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" }
@@ -360,6 +361,7 @@ preset_env_base = "5.0.0"
360361

361362

362363
# General Deps
364+
bincode = { version = "2.0.1", features = ["serde"] }
363365
chromiumoxide = { version = "0.5.4", features = [
364366
"tokio-runtime",
365367
], default-features = false }
@@ -454,11 +456,12 @@ serde_bytes = "0.11.15"
454456
serde_path_to_error = "0.1.16"
455457
serde_qs = "0.13.0"
456458
serde_with = "3.12.0"
457-
smallvec = { version = "1.13.1", features = [
459+
smallvec = { version = "1.15.1", features = [
458460
"serde",
459461
"const_generics",
460462
"union",
461463
"const_new",
464+
"impl_bincode",
462465
] }
463466
swc_sourcemap = "9.3.4"
464467
strsim = "0.11.1"
@@ -482,4 +485,6 @@ webbrowser = "1.0.6"
482485
inventory = "0.3.21"
483486

484487
[patch.crates-io]
488+
bincode = { git = "https://github.com/bgw/bincode.git", branch = "bgw/patches" }
489+
virtue = { git = "https://github.com/bgw/virtue.git", branch = "bgw/fix-generic-default-parsing" }
485490
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)