Skip to content

Commit ca1129c

Browse files
sokraalexkirsz
andauthored
Turobpack: Next.rs API (part 1) (#52259)
### What? Creates a NAPI api for Next.rs to be used in Next.js ### Why? ### How? Co-authored-by: Alex Kirszenberg <1621758+alexkirsz@users.noreply.github.com>
1 parent 88084e6 commit ca1129c

File tree

32 files changed

+2207
-113
lines changed

32 files changed

+2207
-113
lines changed

Cargo.lock

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

Cargo.toml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ members = [
55
"packages/next-swc/crates/core",
66
"packages/next-swc/crates/napi",
77
"packages/next-swc/crates/wasm",
8+
"packages/next-swc/crates/next-api",
89
"packages/next-swc/crates/next-build",
910
"packages/next-swc/crates/next-core",
1011
"packages/next-swc/crates/next-dev",
@@ -26,6 +27,7 @@ lto = true
2627

2728
[workspace.dependencies]
2829
# Workspace crates
30+
next-api = { path = "packages/next-swc/crates/next-api", default-features = false }
2931
next-build = { path = "packages/next-swc/crates/next-build", default-features = false }
3032
next-core = { path = "packages/next-swc/crates/next-core", default-features = false }
3133
next-dev = { path = "packages/next-swc/crates/next-dev", default-features = false, features = [
@@ -42,11 +44,11 @@ swc_core = { version = "0.79.13" }
4244
testing = { version = "0.33.20" }
4345

4446
# Turbo crates
45-
turbopack-binding = { git = "https://github.com/vercel/turbo.git", tag = "turbopack-230713.2" }
47+
turbopack-binding = { git = "https://github.com/vercel/turbo.git", tag = "turbopack-230713.3" }
4648
# [TODO]: need to refactor embed_directory! macro usages, as well as resolving turbo_tasks::function, macros..
47-
turbo-tasks = { git = "https://github.com/vercel/turbo.git", tag = "turbopack-230713.2" }
49+
turbo-tasks = { git = "https://github.com/vercel/turbo.git", tag = "turbopack-230713.3" }
4850
# [TODO]: need to refactor embed_directory! macro usage in next-core
49-
turbo-tasks-fs = { git = "https://github.com/vercel/turbo.git", tag = "turbopack-230713.2" }
51+
turbo-tasks-fs = { git = "https://github.com/vercel/turbo.git", tag = "turbopack-230713.3" }
5052

5153
# General Deps
5254

packages/next-swc/crates/napi/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ napi = { version = "2", default-features = false, features = [
4343
napi-derive = "2"
4444
next-swc = { version = "0.0.0", path = "../core" }
4545
next-dev = { workspace = true }
46+
next-api = { workspace = true }
4647
next-build = { workspace = true }
4748
next-core = { workspace = true }
4849
turbo-tasks = { workspace = true }

0 commit comments

Comments
 (0)