Skip to content

Commit b16c195

Browse files
committed
Turbopack: Add crate with bincode serialization helpers
1 parent 18213e3 commit b16c195

File tree

4 files changed

+454
-7
lines changed

4 files changed

+454
-7
lines changed

Cargo.lock

Lines changed: 49 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: 3 additions & 0 deletions
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 }
@@ -481,4 +483,5 @@ webbrowser = "1.0.6"
481483
inventory = "0.3.21"
482484

483485
[patch.crates-io]
486+
bincode = { git = "https://github.com/bgw/bincode.git", branch = "bgw/patches" }
484487
mdxjs = { git = "https://github.com/mischnic/mdxjs-rs.git", branch = "swc-core-32" }
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
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+
either = { workspace = true }
16+
indexmap = { workspace = true }
17+
mime = { workspace = true }
18+
serde = { workspace = true }
19+
serde_json = { workspace = true }

0 commit comments

Comments
 (0)