Skip to content

Commit 6870e80

Browse files
authored
Merge branch 'canary' into add-example
2 parents 1720421 + fd90690 commit 6870e80

File tree

8,946 files changed

+1195353
-873569
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

8,946 files changed

+1195353
-873569
lines changed

.cargo/config.toml

Lines changed: 26 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,52 @@
11
[env]
22
CARGO_WORKSPACE_DIR = { value = "", relative = true }
3+
TURBO_PNPM_WORKSPACE_DIR = { value = "", relative = true }
34

45
[build]
5-
6+
rustflags = [
7+
"--cfg",
8+
"tokio_unstable",
9+
"-Zshare-generics=y", # make the current crate share its generic instantiations
10+
"-Zthreads=8", # parallel frontend https://blog.rust-lang.org/2023/11/09/parallel-rustc.html
11+
"-Csymbol-mangling-version=v0",
12+
]
613
rustdocflags = []
714

815
[target.x86_64-pc-windows-msvc]
916
linker = "rust-lld"
1017
rustflags = ["-C", "target-feature=+crt-static"]
18+
1119
[target.i686-pc-windows-msvc]
1220
rustflags = ["-C", "target-feature=+crt-static"]
1321

14-
[target.aarch64-unknown-linux-gnu]
15-
linker = "aarch64-linux-gnu-gcc"
22+
[target.aarch64-pc-windows-msvc]
23+
linker = "rust-lld"
1624

17-
[target.aarch64-unknown-linux-musl]
18-
linker = "aarch64-linux-musl-gcc"
25+
[target.'cfg(target_os = "macos")']
26+
linker = "rust-lld"
27+
28+
[target.'cfg(all(target_os = "linux", target_env = "gnu"))']
1929
rustflags = [
2030
"--cfg",
2131
"tokio_unstable",
2232
"-Zshare-generics=y",
33+
"-Zthreads=8",
34+
"-Zunstable-options",
2335
"-Csymbol-mangling-version=v0",
24-
"-Ctarget-feature=-crt-static",
25-
"-Clink-arg=-lgcc",
36+
"-Clinker-flavor=gnu-lld-cc",
37+
"-Clink-self-contained=+linker",
2638
]
2739

28-
[target.armv7-unknown-linux-gnueabihf]
29-
linker = "arm-linux-gnueabihf-gcc"
30-
31-
[target.'cfg(all())']
40+
[target.aarch64-unknown-linux-musl]
41+
linker = "aarch64-linux-musl-gcc"
3242
rustflags = [
3343
"--cfg",
3444
"tokio_unstable",
3545
"-Zshare-generics=y",
3646
"-Csymbol-mangling-version=v0",
47+
"-Ctarget-feature=-crt-static",
48+
"-Clink-arg=-lgcc",
3749
]
50+
51+
[target.armv7-unknown-linux-gnueabihf]
52+
linker = "arm-linux-gnueabihf-gcc"

.config/ast-grep/rule-tests/__snapshots__/no-context-snapshot.yml

Lines changed: 42 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
id: no-context
2+
valid:
3+
- 'let chunking_context = ChunkingContext::new();'
4+
- 'struct Foo { chunking_context: Context };'
5+
- 'foo(|chunking_context| context)'
6+
- 'fn foo(chunking_context: ChunkingContext) -> u32 { 5 };'
7+
invalid:
8+
- 'let context = ChunkingContext::new();'
9+
- 'struct Foo { context: Context };'
10+
- 'foo(|context| context)'
11+
- 'fn foo(context: ChunkingContext) -> u32 { 5 };'

.config/ast-grep/rules/no-context.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# yaml-language-server: $schema=https://raw.githubusercontent.com/ast-grep/ast-grep/main/schemas/rule.json
2+
3+
id: no-context
4+
message: Don't name variables `context`.
5+
note: Use a more specific name, such as chunking_context, asset_context, etc.
6+
severity: error
7+
language: Rust
8+
rule:
9+
regex: \bcontext\b
10+
any:
11+
- all:
12+
- inside:
13+
any:
14+
- kind: closure_parameters
15+
- kind: parameter
16+
- kind: function_item
17+
- kind: let_declaration
18+
- kind: identifier
19+
- all:
20+
- kind: field_identifier
21+
- inside:
22+
kind: field_declaration

.config/nextest.toml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
[profile.tp-test-linux.junit]
2+
path = "junit.xml"
3+
report-name = "Turbopack tests (Linux)"
4+
store-success-output = true
5+
store-failure-output = true
6+
7+
[profile.tp-test-mac.junit]
8+
path = "junit.xml"
9+
report-name = "Turbopack tests (Mac)"
10+
store-success-output = true
11+
store-failure-output = true
12+
13+
[profile.tp-test-win.junit]
14+
path = "junit.xml"
15+
report-name = "Turbopack tests (Windows)"
16+
store-success-output = true
17+
store-failure-output = true

.devcontainer/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# [Choice] Node.js version (use -bullseye variants on local arm64/Apple Silicon): 18, 16, 14, 18-bullseye, 16-bullseye, 14-bullseye, 18-buster, 16-buster, 14-buster
2-
ARG VARIANT=16-bullseye
2+
ARG VARIANT=20-bullseye
33
FROM mcr.microsoft.com/vscode/devcontainers/javascript-node:0-${VARIANT}
44

55
# [Optional] Uncomment this section to install additional OS packages.

.devcontainer/base.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# [Choice] Node.js version (use -bullseye variants on local arm64/Apple Silicon): 18-bullseye, 16-bullseye, 14-bullseye, 18-buster, 16-buster, 14-buster
2-
ARG VARIANT=16-bullseye
2+
ARG VARIANT=20-bullseye
33
FROM node:${VARIANT}
44

55
# [Option] Install zsh

.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// Append -bullseye or -buster to pin to an OS version.
99
// Use -bullseye variants on local arm64/Apple Silicon.
1010
"args": {
11-
"VARIANT": "16-bullseye"
11+
"VARIANT": "20-bullseye"
1212
}
1313
},
1414
// Configure tool-specific properties.

.eslintignore

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ node_modules
44
**/.vscode/**
55
**/dist/**
66
e2e-tests/**
7+
examples/cms-sanity/sanity.types.ts
78
examples/with-eslint/**
89
examples/with-typescript-eslint-jest/**
910
examples/with-kea/**
@@ -26,16 +27,25 @@ packages/next-codemod/**/*.js
2627
packages/next-codemod/**/*.d.ts
2728
packages/next-env/**/*.d.ts
2829
packages/create-next-app/templates/**
29-
test/integration/eslint/**
30-
test/integration/script-loader/**/*
31-
test/development/basic/legacy-decorators/**/*
30+
test/integration/eslint/**/*.js
31+
test/integration/script-loader/**/*.js
32+
test/development/basic/legacy-decorators/**/*.js
3233
test/production/emit-decorator-metadata/**/*.js
34+
!test/**/*.test.*
3335
test/e2e/app-dir/rsc-errors/app/swc/use-client/page.js
3436
test-timings.json
35-
packages/next-swc/crates/**
37+
crates/**
3638
bench/nested-deps/**
3739
bench/nested-deps-app-router/**
40+
bench/heavy-npm-deps/**
3841
packages/next-bundle-analyzer/index.d.ts
3942
examples/with-typescript-graphql/lib/gql/
4043
test/development/basic/hmr/components/parse-error.js
4144
packages/next-swc/docs/assets/**/*
45+
test/lib/amp-validator-wasm.js
46+
test/production/pages-dir/production/fixture/amp-validator-wasm.js
47+
test/e2e/async-modules/amp-validator-wasm.js
48+
49+
# turbopack crates
50+
turbopack/crates/*/tests/**
51+
turbopack/crates/*/js/src/compiled

0 commit comments

Comments
 (0)