Skip to content

Commit 32b8057

Browse files
committed
remove auto_for_input and some value annotations
1 parent f44eb50 commit 32b8057

File tree

3 files changed

+30
-6
lines changed

3 files changed

+30
-6
lines changed

turbopack/crates/turbopack-browser/src/ecmascript/list/asset.rs

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
use anyhow::Result;
2+
use serde::{Deserialize, Serialize};
23
use turbo_rcstr::{RcStr, rcstr};
3-
use turbo_tasks::{ResolvedVc, TaskInput, ValueToString, Vc};
4+
use turbo_tasks::{NonLocalValue, ResolvedVc, TaskInput, ValueToString, Vc, trace::TraceRawVcs};
45
use turbo_tasks_fs::FileSystemPath;
56
use turbopack_core::{
67
asset::{Asset, AssetContent},
@@ -112,8 +113,19 @@ impl Asset for EcmascriptDevChunkList {
112113
}
113114
}
114115

115-
#[derive(Debug, Clone, Copy, Hash, TaskInput)]
116-
#[turbo_tasks::value(serialization = "auto_for_input")]
116+
#[derive(
117+
Eq,
118+
PartialEq,
119+
Debug,
120+
Clone,
121+
Copy,
122+
Hash,
123+
TaskInput,
124+
NonLocalValue,
125+
TraceRawVcs,
126+
Serialize,
127+
Deserialize,
128+
)]
117129
#[serde(rename_all = "camelCase")]
118130
pub enum EcmascriptDevChunkListSource {
119131
/// The chunk list is from a runtime entry.

turbopack/crates/turbopack-core/src/compile_time_info.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ macro_rules! free_var_references {
101101

102102
// TODO: replace with just a `serde_json::Value`
103103
// https://linear.app/vercel/issue/WEB-1641/compiletimedefinevalue-should-just-use-serde-jsonvalue
104-
#[turbo_tasks::value(serialization = "auto_for_input")]
104+
#[turbo_tasks::value]
105105
#[derive(Debug, Clone, Hash, TaskInput)]
106106
pub enum CompileTimeDefineValue {
107107
Bool(bool),

turbopack/crates/turbopack-ecmascript/src/lib.rs

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,20 @@ use crate::{
110110
transform::remove_shebang,
111111
};
112112

113-
#[turbo_tasks::value(serialization = "auto_for_input")]
114-
#[derive(Hash, Debug, Clone, Copy, Default, TaskInput)]
113+
#[derive(
114+
Eq,
115+
PartialEq,
116+
Hash,
117+
Debug,
118+
Clone,
119+
Copy,
120+
Default,
121+
TaskInput,
122+
TraceRawVcs,
123+
NonLocalValue,
124+
Serialize,
125+
Deserialize,
126+
)]
115127
pub enum SpecifiedModuleType {
116128
#[default]
117129
Automatic,

0 commit comments

Comments
 (0)