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

New app routes resolving logic for turbopack #47737

Merged
merged 42 commits into from
Apr 3, 2023
Merged
Show file tree
Hide file tree
Changes from 27 commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
4d14f71
todo
timneutkens Mar 27, 2023
86634c0
Update
timneutkens Mar 27, 2023
54a1cd7
It works
timneutkens Mar 28, 2023
4b85d24
Port to rust
timneutkens Mar 28, 2023
86b92e2
Update
timneutkens Mar 28, 2023
e592260
Changes
timneutkens Mar 29, 2023
a53fbbd
Fix lint
timneutkens Mar 29, 2023
51e3bde
Add types and don't read page.js
timneutkens Mar 29, 2023
44dd2a3
Update temp.rs
timneutkens Mar 29, 2023
1e9d5eb
Remove temp files
timneutkens Mar 29, 2023
f7e06f7
Update
timneutkens Mar 29, 2023
3cd0373
bring back file
timneutkens Mar 29, 2023
d086123
Remove
timneutkens Mar 29, 2023
555181f
Update
timneutkens Mar 29, 2023
4655b9c
Remove
timneutkens Mar 29, 2023
6ef1622
Add JS apis
timneutkens Mar 30, 2023
9e08946
Update
timneutkens Mar 31, 2023
66c2300
Remove testing code
timneutkens Mar 31, 2023
2c92e94
Merge branch 'canary' of github.com:vercel/next.js into 03-27-todo
timneutkens Mar 31, 2023
c6d18d7
fixes for merge
timneutkens Mar 31, 2023
96a7d1e
Remove file
timneutkens Mar 31, 2023
180d700
Remove test files
timneutkens Mar 31, 2023
4f406c4
Bring back changes
timneutkens Mar 31, 2023
d166626
Fixes
timneutkens Mar 31, 2023
6b0cc5a
Fixes
timneutkens Mar 31, 2023
275c2c8
Merge branch 'canary' of github.com:vercel/next.js into 03-27-todo
timneutkens Mar 31, 2023
9dac858
Revert settings change
timneutkens Mar 31, 2023
bd7303f
Apply clippy suggestions
timneutkens Mar 31, 2023
ac862a1
Bring back changes
timneutkens Apr 2, 2023
3c43493
Update Cargo.lock
timneutkens Apr 2, 2023
8ee2c8f
Update Cargo.toml
timneutkens Apr 2, 2023
e9e6b8f
Rename transition
timneutkens Apr 2, 2023
ae272c5
Change type
timneutkens Apr 2, 2023
a01c805
Update app_structure.rs
timneutkens Apr 2, 2023
864b932
Merge branch 'canary' of github.com:vercel/next.js into 03-27-todo
timneutkens Apr 2, 2023
d93ac58
Import fixes
timneutkens Apr 3, 2023
21bf2c7
Fix
timneutkens Apr 3, 2023
e5bd4f0
Format
timneutkens Apr 3, 2023
145dd52
Merge branch 'canary' of github.com:vercel/next.js into 03-27-todo
timneutkens Apr 3, 2023
8b31151
Fixes
timneutkens Apr 3, 2023
fe89efe
Fixes
timneutkens Apr 3, 2023
dff4bb1
Fix clippy
timneutkens Apr 3, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 7 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,5 +68,11 @@
"CARGO_TARGET_DIR": "target/rust-analyzer",
"RUST_BACKTRACE": "0"
},
"cSpell.words": ["opentelemetry", "zipkin"]
"cSpell.words": [
"Entrypoints",
"napi",
"opentelemetry",
"Threadsafe",
"zipkin"
]
}
46 changes: 3 additions & 43 deletions packages/next-swc/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 7 additions & 15 deletions packages/next-swc/crates/napi/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
edition = "2018"
edition = "2021"
name = "next-swc-napi"
version = "0.0.0"
publish = false
Expand All @@ -20,24 +20,10 @@ sentry_rustls = ["sentry", "sentry/rustls", "rustls-tls"]
native-tls = ["next-dev/native-tls"]
rustls-tls = ["next-dev/rustls-tls"]

# Internal only. Enabled when building for the Next.js integration test suite.
__internal_nextjs_integration_test = [
"next-dev/__internal_nextjs_integration_test",
"next-dev/serializable"
]

# Enable dhat profiling allocator for heap profiling.
__internal_dhat-heap = ["dhat"]
# Enable dhat profiling allocator for ad hoc profiling.
# [Note]: we do not have any ad hoc event in the codebase yet, so enabling this
# effectively does nothing.
__internal_dhat-ad-hoc = ["dhat"]

timneutkens marked this conversation as resolved.
Show resolved Hide resolved
[dependencies]
anyhow = "1.0.66"
backtrace = "0.3"
fxhash = "0.2.1"
dhat = { workspace = true, optional = true }
timneutkens marked this conversation as resolved.
Show resolved Hide resolved
napi = { version = "2", default-features = false, features = [
"napi3",
"serde-json",
Expand All @@ -48,6 +34,8 @@ napi-derive = "2"
next-swc = { version = "0.0.0", path = "../core" }
next-dev = { workspace = true }
next-build = { workspace = true }
next-core = { workspace = true }
turbo-tasks = { workspace = true }
once_cell = { workspace = true }
serde = "1"
serde_json = "1"
Expand All @@ -59,6 +47,7 @@ turbo-binding = { workspace = true, features = [
"__swc_core_binding_napi",
"__feature_node_file_trace",
"__feature_mdx_rs",
"__turbo",
"__turbo_tasks",
"__turbo_tasks_memory",
"__turbopack"
Expand All @@ -84,3 +73,6 @@ sentry = { version = "0.27.0", default-features = false, features = [
napi-build = "2"
serde = "1"
serde_json = "1"
turbo-binding = { workspace = true, features = [
"__turbo_tasks_build"
]}
3 changes: 3 additions & 0 deletions packages/next-swc/crates/napi/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ use std::{
io::{BufWriter, Write},
path::Path,
};
use turbo_binding::turbo::tasks_build::generate_register;

extern crate napi_build;

Expand Down Expand Up @@ -39,4 +40,6 @@ fn main() {
.expect("Failed to write target triple text");

napi_build::setup();

generate_register();
}