Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
5721b70f
Commit
5721b70f
authored
Jun 17, 2024
by
Tobias Koppers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make test case more realistic
parent
5346185d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
2 deletions
+13
-2
Cargo.toml
Cargo.toml
+1
-0
Cargo.toml
packages/next-swc/crates/next-build-test/Cargo.toml
+5
-0
lib.rs
packages/next-swc/crates/next-build-test/src/lib.rs
+2
-2
main.rs
packages/next-swc/crates/next-build-test/src/main.rs
+5
-0
No files found.
Cargo.toml
View file @
5721b70f
...
...
@@ -43,6 +43,7 @@ turbopack-binding = { git = "https://github.com/vercel/turbo.git", tag = "turbop
turbo-tasks
=
{
git
=
"https://github.com/vercel/turbo.git"
,
tag
=
"turbopack-240614.1"
}
# [TODO]: need to refactor embed_directory! macro usage in next-core
turbo-tasks-fs
=
{
git
=
"https://github.com/vercel/turbo.git"
,
tag
=
"turbopack-240614.1"
}
turbo-tasks-malloc
=
{
git
=
"https://github.com/vercel/turbo.git"
,
tag
=
"turbopack-240614.1"
,
default-features
=
false
}
# General Deps
...
...
packages/next-swc/crates/next-build-test/Cargo.toml
View file @
5721b70f
...
...
@@ -6,6 +6,11 @@ license = "MPL-2.0"
edition
=
"2021"
autobenches
=
false
[[bin]]
name
=
"next-build-test"
path
=
"src/main.rs"
bench
=
false
[lints]
workspace
=
true
...
...
packages/next-swc/crates/next-build-test/src/lib.rs
View file @
5721b70f
...
...
@@ -26,7 +26,7 @@ pub async fn main_inner(
let
mut
file
=
std
::
fs
::
File
::
open
(
&
path
)
.with_context
(||
format!
(
"loading file at {}"
,
path
.display
()))
?
;
let
mut
options
:
ProjectOptions
=
serde_json
::
from_reader
(
&
mut
file
)
?
;
let
mut
options
:
ProjectOptions
=
serde_json
::
from_reader
(
&
mut
file
)
.unwrap
()
;
if
matches!
(
strat
,
Strategy
::
Development
)
{
options
.dev
=
true
;
...
...
@@ -42,7 +42,7 @@ pub async fn main_inner(
tracing
::
info!
(
"collecting endpoints"
);
let
entrypoints
=
tt
.run_once
(
async
move
{
project
.entrypoints
()
.await
})
.run_once
(
async
move
{
Ok
(
project
.entrypoints
()
.await
?
)
})
.await
?
;
let
routes
=
if
let
Some
(
files
)
=
files
{
...
...
packages/next-swc/crates/next-build-test/src/main.rs
View file @
5721b70f
#
!
[
feature
(
future_join
)]
#
!
[
feature
(
min_specialization
)]
#
!
[
feature
(
arbitrary_self_types
)]
use
std
::{
convert
::
Infallible
,
str
::
FromStr
,
time
::
Instant
};
use
anyhow
::
Result
;
use
next_api
::
project
::{
DefineEnv
,
ProjectOptions
};
use
next_build_test
::{
main_inner
,
Strategy
};
use
next_core
::
tracing_presets
::{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment