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

Add support for #[turbo_tasks::value(resolved)] and #[turbo_tasks::value_trait(resolved)] #8720

Merged
merged 1 commit into from
Jul 11, 2024

Conversation

bgw
Copy link
Member

@bgw bgw commented Jul 11, 2024

Description

  • #[turbo_tasks::value(resolved)]: This is essentially just shorthand for also doing #[derive(ResolvedValue)]. We'll want this on-by-default eventually, but it's strictly opt-in for now.
  • #[turbo_tasks::value_trait(resolved)]: This adds an additional supertrait for ResolvedValue. This wasn't quite possible to do without this flag as most supertraits are required to implement VcValueTrait because they're used with the Upcast/Downcast traits.

Testing Instructions

TRYBUILD=overwrite cargo nextest r -p turbo-tasks-macros-tests

Copy link

vercel bot commented Jul 11, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
examples-nonmonorepo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 11, 2024 4:19am
rust-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 11, 2024 4:19am
8 Skipped Deployments
Name Status Preview Comments Updated (UTC)
examples-basic-web ⬜️ Ignored (Inspect) Visit Preview Jul 11, 2024 4:19am
examples-designsystem-docs ⬜️ Ignored (Inspect) Visit Preview Jul 11, 2024 4:19am
examples-gatsby-web ⬜️ Ignored (Inspect) Visit Preview Jul 11, 2024 4:19am
examples-kitchensink-blog ⬜️ Ignored (Inspect) Visit Preview Jul 11, 2024 4:19am
examples-native-web ⬜️ Ignored (Inspect) Visit Preview Jul 11, 2024 4:19am
examples-svelte-web ⬜️ Ignored (Inspect) Visit Preview Jul 11, 2024 4:19am
examples-tailwind-web ⬜️ Ignored (Inspect) Visit Preview Jul 11, 2024 4:19am
examples-vite-web ⬜️ Ignored (Inspect) Visit Preview Jul 11, 2024 4:19am

Copy link
Member Author

bgw commented Jul 11, 2024

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @bgw and the rest of your teammates on Graphite Graphite

Copy link
Contributor

🟢 Turbopack Benchmark CI successful 🟢

Thanks

Copy link
Contributor

✅ This change can build next-swc

Copy link
Contributor

github-actions bot commented Jul 11, 2024

⚠️ CI failed ⚠️

The following steps have failed in CI:

  • Turbopack Rust tests (mac/win, non-blocking)

See workflow summary for details

@bgw bgw requested review from kdy1 and sokra July 11, 2024 04:26
@bgw bgw marked this pull request as ready for review July 11, 2024 04:26
@bgw bgw requested a review from a team as a code owner July 11, 2024 04:26
@bgw bgw merged commit 3eb27d6 into main Jul 11, 2024
56 of 58 checks passed
@bgw bgw deleted the bgw/resolved-attr-in-macros branch July 11, 2024 23:54
kdy1 added a commit to vercel/next.js that referenced this pull request Jul 12, 2024
# Turbopack
* vercel/turborepo#8686 <!-- Tobias Koppers -
improve performance of the graph aggregation -->
* vercel/turborepo#8694 <!-- Benjamin Woodruff -
Replace `unreachable` with `bail` in `finalize_css` -->
* vercel/turborepo#8661 <!-- Benjamin Woodruff -
Create a minimum viable `ResolvedVc` type -->
* vercel/turborepo#8662 <!-- Benjamin Woodruff - Add
a minimum viable ResolvedValue marker trait -->
* vercel/turborepo#8678 <!-- Benjamin Woodruff - Add
derive macro for ResolvedValue -->
* vercel/turborepo#8715 <!-- Benjamin Woodruff -
Switch RcStr from std::sync::Arc to triomphe::Arc -->
* vercel/turborepo#8699 <!-- Donny/강동윤 - perf: Merge
multiple `EsmBinding` -->
* vercel/turborepo#8720 <!-- Benjamin Woodruff - Add
support for `#[turbo_tasks::value(resolved)]` and
`#[turbo_tasks::value_trait(resolved)]` -->
* vercel/turborepo#8706 <!-- Donny/강동윤 - build:
Update `swc_core` to `v0.96.9` -->

### What?

Update SWC crates to
swc-project/swc@226617e
and
swc-project/plugins@b7658c3

### Why?

To keep in sync

### How?

 - Closes #64890
 - Closes #63104
ForsakenHarmony pushed a commit to vercel/next.js that referenced this pull request Jul 25, 2024
…:value_trait(resolved)]` (vercel/turborepo#8720)

### Description

- `#[turbo_tasks::value(resolved)]`: This is essentially just shorthand for also doing `#[derive(ResolvedValue)]`. We'll want this on-by-default eventually, but it's strictly opt-in for now.
- `#[turbo_tasks::value_trait(resolved)]`: This adds an additional supertrait for `ResolvedValue`. This wasn't quite possible to do without this flag as most supertraits are required to implement `VcValueTrait` because they're used with the `Upcast`/`Downcast` traits.

### Testing Instructions

```
TRYBUILD=overwrite cargo nextest r -p turbo-tasks-macros-tests
```
ForsakenHarmony pushed a commit to vercel/next.js that referenced this pull request Jul 29, 2024
…:value_trait(resolved)]` (vercel/turborepo#8720)

### Description

- `#[turbo_tasks::value(resolved)]`: This is essentially just shorthand for also doing `#[derive(ResolvedValue)]`. We'll want this on-by-default eventually, but it's strictly opt-in for now.
- `#[turbo_tasks::value_trait(resolved)]`: This adds an additional supertrait for `ResolvedValue`. This wasn't quite possible to do without this flag as most supertraits are required to implement `VcValueTrait` because they're used with the `Upcast`/`Downcast` traits.

### Testing Instructions

```
TRYBUILD=overwrite cargo nextest r -p turbo-tasks-macros-tests
```
ForsakenHarmony pushed a commit to vercel/next.js that referenced this pull request Jul 29, 2024
…:value_trait(resolved)]` (vercel/turborepo#8720)

### Description

- `#[turbo_tasks::value(resolved)]`: This is essentially just shorthand for also doing `#[derive(ResolvedValue)]`. We'll want this on-by-default eventually, but it's strictly opt-in for now.
- `#[turbo_tasks::value_trait(resolved)]`: This adds an additional supertrait for `ResolvedValue`. This wasn't quite possible to do without this flag as most supertraits are required to implement `VcValueTrait` because they're used with the `Upcast`/`Downcast` traits.

### Testing Instructions

```
TRYBUILD=overwrite cargo nextest r -p turbo-tasks-macros-tests
```
ForsakenHarmony pushed a commit to vercel/next.js that referenced this pull request Aug 1, 2024
…:value_trait(resolved)]` (vercel/turborepo#8720)

### Description

- `#[turbo_tasks::value(resolved)]`: This is essentially just shorthand for also doing `#[derive(ResolvedValue)]`. We'll want this on-by-default eventually, but it's strictly opt-in for now.
- `#[turbo_tasks::value_trait(resolved)]`: This adds an additional supertrait for `ResolvedValue`. This wasn't quite possible to do without this flag as most supertraits are required to implement `VcValueTrait` because they're used with the `Upcast`/`Downcast` traits.

### Testing Instructions

```
TRYBUILD=overwrite cargo nextest r -p turbo-tasks-macros-tests
```
ForsakenHarmony pushed a commit to vercel/next.js that referenced this pull request Aug 14, 2024
* vercel/turborepo#8686 <!-- Tobias Koppers -
improve performance of the graph aggregation -->
* vercel/turborepo#8694 <!-- Benjamin Woodruff -
Replace `unreachable` with `bail` in `finalize_css` -->
* vercel/turborepo#8661 <!-- Benjamin Woodruff -
Create a minimum viable `ResolvedVc` type -->
* vercel/turborepo#8662 <!-- Benjamin Woodruff - Add
a minimum viable ResolvedValue marker trait -->
* vercel/turborepo#8678 <!-- Benjamin Woodruff - Add
derive macro for ResolvedValue -->
* vercel/turborepo#8715 <!-- Benjamin Woodruff -
Switch RcStr from std::sync::Arc to triomphe::Arc -->
* vercel/turborepo#8699 <!-- Donny/강동윤 - perf: Merge
multiple `EsmBinding` -->
* vercel/turborepo#8720 <!-- Benjamin Woodruff - Add
support for `#[turbo_tasks::value(resolved)]` and
`#[turbo_tasks::value_trait(resolved)]` -->
* vercel/turborepo#8706 <!-- Donny/강동윤 - build:
Update `swc_core` to `v0.96.9` -->

Update SWC crates to
swc-project/swc@226617e
and
swc-project/plugins@b7658c3

To keep in sync

 - Closes #64890
 - Closes #63104
ForsakenHarmony pushed a commit to vercel/next.js that referenced this pull request Aug 15, 2024
* vercel/turborepo#8686 <!-- Tobias Koppers -
improve performance of the graph aggregation -->
* vercel/turborepo#8694 <!-- Benjamin Woodruff -
Replace `unreachable` with `bail` in `finalize_css` -->
* vercel/turborepo#8661 <!-- Benjamin Woodruff -
Create a minimum viable `ResolvedVc` type -->
* vercel/turborepo#8662 <!-- Benjamin Woodruff - Add
a minimum viable ResolvedValue marker trait -->
* vercel/turborepo#8678 <!-- Benjamin Woodruff - Add
derive macro for ResolvedValue -->
* vercel/turborepo#8715 <!-- Benjamin Woodruff -
Switch RcStr from std::sync::Arc to triomphe::Arc -->
* vercel/turborepo#8699 <!-- Donny/강동윤 - perf: Merge
multiple `EsmBinding` -->
* vercel/turborepo#8720 <!-- Benjamin Woodruff - Add
support for `#[turbo_tasks::value(resolved)]` and
`#[turbo_tasks::value_trait(resolved)]` -->
* vercel/turborepo#8706 <!-- Donny/강동윤 - build:
Update `swc_core` to `v0.96.9` -->

Update SWC crates to
swc-project/swc@226617e
and
swc-project/plugins@b7658c3

To keep in sync

 - Closes #64890
 - Closes #63104
ForsakenHarmony pushed a commit to vercel/next.js that referenced this pull request Aug 16, 2024
* vercel/turborepo#8686 <!-- Tobias Koppers -
improve performance of the graph aggregation -->
* vercel/turborepo#8694 <!-- Benjamin Woodruff -
Replace `unreachable` with `bail` in `finalize_css` -->
* vercel/turborepo#8661 <!-- Benjamin Woodruff -
Create a minimum viable `ResolvedVc` type -->
* vercel/turborepo#8662 <!-- Benjamin Woodruff - Add
a minimum viable ResolvedValue marker trait -->
* vercel/turborepo#8678 <!-- Benjamin Woodruff - Add
derive macro for ResolvedValue -->
* vercel/turborepo#8715 <!-- Benjamin Woodruff -
Switch RcStr from std::sync::Arc to triomphe::Arc -->
* vercel/turborepo#8699 <!-- Donny/강동윤 - perf: Merge
multiple `EsmBinding` -->
* vercel/turborepo#8720 <!-- Benjamin Woodruff - Add
support for `#[turbo_tasks::value(resolved)]` and
`#[turbo_tasks::value_trait(resolved)]` -->
* vercel/turborepo#8706 <!-- Donny/강동윤 - build:
Update `swc_core` to `v0.96.9` -->

Update SWC crates to
swc-project/swc@226617e
and
swc-project/plugins@b7658c3

To keep in sync

 - Closes #64890
 - Closes #63104
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants