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

Rebase 2.0 branch #7974

Closed
wants to merge 43 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
2f2406f
fix(filter): dependencies filter should match transitive deps (#7886)
chris-olszewski Apr 2, 2024
4478578
release(turborepo): 1.13.3-canary.0 (#7889)
github-actions[bot] Apr 2, 2024
f3b029a
fix(Turborepo): Disable the new corepack notification (#7901)
Apr 4, 2024
0bbb466
feat(turborepo): Package Change Watching (#7570)
NicholasLYang Apr 4, 2024
583bb09
chore: Bump nightly version (#7874)
NicholasLYang Apr 4, 2024
d80c7f2
feat(telemetry): defensive config loading (#7891)
tknickman Apr 8, 2024
bed9970
feat(turbo-ignore): usage metrics (#7897)
tknickman Apr 8, 2024
0a7fd93
fix edge condition in environment (#7912)
sokra Apr 8, 2024
fa82159
fix typo in dev script of a kitchen-sink's package (#7913)
zsh77 Apr 8, 2024
b611074
feat(turbopack): Handle fragment in requests (#7771)
kdy1 Apr 9, 2024
d9e4583
Remove pnpm plugin in Gatsby example. (#7916)
anthonyshew Apr 9, 2024
5c7d38f
feat: support interop for namespace importing cjs function exports (#…
ForsakenHarmony Apr 9, 2024
1bfe729
Revert "feat(turbopack): Handle fragment in requests" (#7918)
kdy1 Apr 9, 2024
ac53aff
chore: add parallel rust frontend and remove unused rust dependencies…
ForsakenHarmony Apr 9, 2024
6697255
remove warning when there is no PostCSS config (#7920)
sokra Apr 10, 2024
efb639f
Remove environment variables page from Turbopack docs (#7929)
timneutkens Apr 10, 2024
d6f9950
Remove outdated section (#7926)
timneutkens Apr 10, 2024
ba01e39
Update Turbopack CSS docs (#7925)
timneutkens Apr 10, 2024
63282a5
Update Next.js mention in Turbopack docs (#7928)
timneutkens Apr 10, 2024
0265f1f
build: Update `swc_core` to `v0.90.29` (#7856)
kdy1 Apr 10, 2024
65518c2
Revert "build: Update `swc_core` to `v0.90.30`" (#7938)
sokra Apr 11, 2024
90343a7
Revert "Revert "build: Update `swc_core` to `v0.90.30`"" (#7939)
sokra Apr 11, 2024
e993261
Add Ben's handle to orchestrator so `created-by` label is applied cor…
padmaia Apr 11, 2024
9d45eac
fix recursion cycle when having a cycle of dynamic imports (#7941)
sokra Apr 11, 2024
b2f90dc
fix HMR by removing chunks from chunk list hash (#7943)
sokra Apr 11, 2024
294edf2
Revert "fix HMR by removing chunks from chunk list hash" (#7945)
sokra Apr 11, 2024
0417d4b
feat(turbopack-ecmascript): cache external modules with wrapper (#7742)
ForsakenHarmony Apr 11, 2024
1a82126
feat: use @repo/ pattern in `math-helpers` example, consistent with "…
braden-w Apr 12, 2024
beba3b9
refactor GlobalCssAsset to fix dynamic import of css (#7858)
sokra Apr 12, 2024
cd0d5e1
Update lockfile for compatibility with next.js (#7944)
wbinnssmith Apr 12, 2024
64f77a4
change init script of storybook (#7695)
zsh77 Apr 14, 2024
3eb912c
fix panic when searching an the root span (#7936)
sokra Apr 15, 2024
ab248ec
fix missing async loader (#7959)
sokra Apr 15, 2024
7c5b0c4
fix(ui): avoid rendering area more than u16::MAX (#7867)
chris-olszewski Apr 15, 2024
f2acbc8
fix external module (#7961)
sokra Apr 15, 2024
f5de1f9
refactor(turborepo): Bumping biome crates and moving to derive for de…
NicholasLYang Apr 15, 2024
58f9159
chore: add removal warning to deprecated flags (#7890)
chris-olszewski Apr 15, 2024
95fdcaa
Fix(commands/prune.rs): Add More detail in MissingWorkspace error (#7…
WillKirkmanM Apr 15, 2024
984a635
fix(turbopack-ecmascript): use direct namespace re-export (#7963)
ForsakenHarmony Apr 15, 2024
b67d612
chore(ci): use node 20 in CI (#7967)
mehulkar Apr 15, 2024
f91c908
Revert "feat(turbopack-ecmascript): cache external modules with wrap…
ForsakenHarmony Apr 15, 2024
2b2d195
refactor: Make `Run::run` take a ref (#7946)
NicholasLYang Apr 15, 2024
dbe04bb
chore: pin eslint version (#7971)
chris-olszewski Apr 15, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 10 additions & 9 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,21 @@ CARGO_WORKSPACE_DIR = { value = "", relative = true }
TURBO_PNPM_WORKSPACE_DIR = { value = "", relative = true }

[build]
rustflags = ["--cfg", "tokio_unstable"]
rustflags = [
"--cfg",
"tokio_unstable",
"-Zshare-generics=y", # make the current crate share its generic instantiations
"-Zthreads=8", # parallel frontend https://blog.rust-lang.org/2023/11/09/parallel-rustc.html
"-Csymbol-mangling-version=v0",
]
rustdocflags = ["-Znormalize-docs"]

[target.x86_64-pc-windows-msvc]
linker = "rust-lld"

[target.aarch64-apple-darwin]
linker = "rust-lld"

[alias]
xtask = "run --package xtask --"
tr-build = "build -p turbo"
Expand All @@ -21,11 +30,3 @@ tp-test = "nextest run --workspace --release --no-fail-fast --exclude turbo --ex
tp-bench-test = "test --benches --workspace --release --no-fail-fast --exclude turbopack-bench --exclude turbo --exclude turborepo-* --exclude turbopath --exclude wax --exclude globwalk --exclude globwatch --exclude pidlock"
tp-check = "check --workspace --exclude turbo --exclude turborepo-* --exclude turbopath --exclude wax --exclude globwalk --exclude globwatch --exclude pidlock"
tp-clippy = "clippy --workspace --exclude turbo --exclude turborepo-* --exclude turbopath --exclude wax --exclude globwalk --exclude globwatch --exclude pidlock"

[target.'cfg(all())']
rustflags = [
"--cfg",
"tokio_unstable",
"-Zshare-generics=y",
"-Csymbol-mangling-version=v0",
]
28 changes: 6 additions & 22 deletions .github/actions/setup-rust/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ inputs:
targets:
description: "Comma-separated list of target triples to install for this toolchain"
required: false
components:
description: "Comma-separated list of components to be additionally installed"
required: false
github-token:
description: "GitHub token. You can pass secrets.GITHUB_TOKEN"
required: true
Expand All @@ -28,27 +25,14 @@ inputs:
runs:
using: "composite"
steps:
- name: "Get toolchain version from file"
id: file
shell: bash
run: echo "toolchain=$(cat ./rust-toolchain)" >> $GITHUB_OUTPUT

- name: "Set rust default environment"
shell: bash
run: |
echo "CARGO_INCREMENTAL=0" >> $GITHUB_ENV
echo "CARGO_TERM_COLOR=always" >> $GITHUB_ENV
echo "RUST_BACKTRACE=short" >> $GITHUB_ENV
# Enable faster sparse index on nightly
# https://internals.rust-lang.org/t/call-for-testing-cargo-sparse-registry/16862
echo "CARGO_UNSTABLE_SPARSE_REGISTRY=true" >> $GITHUB_ENV

- name: "Setup Rust toolchain"
uses: dtolnay/rust-toolchain@master
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: ${{ steps.file.outputs.toolchain }}
targets: ${{ inputs.targets }}
components: ${{ inputs.components }}
target: ${{ inputs.targets }}
# needed to not make it override the defaults
rustflags: ""
# we want more specific settings
cache: false

- name: "Set Windows default host to MinGW"
if: ${{ inputs.windows == 'true' }}
Expand Down
28 changes: 0 additions & 28 deletions .github/actions/setup-rust/matchers.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,5 @@
{
"problemMatcher": [
{
"owner": "cargo-common",
"pattern": [
{
"regexp": "^(warning|warn|error)(?:\\[(\\S*)\\])?: (.*)$",
"severity": 1,
"code": 2,
"message": 3
},
{
"regexp": "^(?:[\\s->=]*(.*):(\\d*):(\\d*)|.*)$",
"file": 1,
"line": 2,
"column": 3
}
]
},
{
"owner": "cargo-test",
"pattern": [
Expand All @@ -28,17 +11,6 @@
"column": 4
}
]
},
{
"owner": "rustfmt",
"pattern": [
{
"regexp": "^(Diff in (\\S+)) at line (\\d+):",
"message": 1,
"file": 2,
"line": 3
}
]
}
]
}
1 change: 1 addition & 0 deletions .github/actions/setup-turborepo-environment/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ runs:
uses: ./.github/actions/setup-node
with:
extra-flags: --no-optional
node-version: "20"

- name: "Setup Rust"
uses: ./.github/actions/setup-rust
Expand Down
2 changes: 1 addition & 1 deletion .github/turbo-orchestrator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ labeler:
# created-by
- label: "created-by: turbopack"
when:
isPRAuthorMatch: "^(ForsakenHarmony|jridgewell|kdy1|kwonoj|padmaia|sokra|wbinnssmith)$"
isPRAuthorMatch: "^(bgw|ForsakenHarmony|kdy1|kwonoj|padmaia|sokra|wbinnssmith)$"
- label: "created-by: turborepo"
when:
isPRAuthorMatch: "^(gsoltis|anthonyshew|tknickman|mehulkar|chris-olszewski|NicholasLYang|arlyon|Zertsov)$"
Expand Down
7 changes: 2 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,6 @@ jobs:
- name: Setup Rust
uses: ./.github/actions/setup-rust
with:
components: rustfmt
github-token: "${{ secrets.GITHUB_TOKEN }}"

- name: Run cargo fmt check
Expand Down Expand Up @@ -513,16 +512,15 @@ jobs:
- name: Setup Rust
uses: ./.github/actions/setup-rust
with:
components: clippy
targets: wasm32-unknown-unknown,wasm32-wasi-preview1-threads
targets: wasm32-unknown-unknown,wasm32-wasip1-threads

- name: Run cargo check release
run: |
RUSTFLAGS="-D warnings -A deprecated" cargo groups check turbopack --features rustls-tls --release

- name: Run cargo check for the wasi targets
run: |
CARGO_BUILD_TARGET="wasm32-wasi-preview1-threads" RUSTFLAGS="-D warnings -A deprecated" cargo groups check turbopack-wasi --release
CARGO_BUILD_TARGET="wasm32-wasip1-threads" RUSTFLAGS="-D warnings -A deprecated" cargo groups check turbopack-wasi --release

turbopack_rust_clippy:
needs: [turbopack_rust_check]
Expand All @@ -539,7 +537,6 @@ jobs:
- name: Setup Rust
uses: ./.github/actions/setup-rust
with:
components: clippy
targets: wasm32-unknown-unknown
github-token: "${{ secrets.GITHUB_TOKEN }}"

Expand Down
Loading
Loading