@@ -92,7 +92,7 @@ pub struct NextConfig {
9292 cache_handler : Option < RcStr > ,
9393 #[ bincode( with_serde) ]
9494 cache_handlers : Option < FxIndexMap < RcStr , RcStr > > ,
95- #[ bincode( with = "turbo_bincode::serde_json " ) ]
95+ #[ bincode( with = "turbo_bincode::serde_self_describing " ) ]
9696 env : FxIndexMap < String , JsonValue > ,
9797 experimental : ExperimentalConfig ,
9898 images : ImageConfig ,
@@ -101,12 +101,12 @@ pub struct NextConfig {
101101 react_production_profiling : Option < bool > ,
102102 react_strict_mode : Option < bool > ,
103103 transpile_packages : Option < Vec < RcStr > > ,
104- #[ bincode( with = "turbo_bincode::serde_json " ) ]
104+ #[ bincode( with = "turbo_bincode::serde_self_describing " ) ]
105105 modularize_imports : Option < FxIndexMap < String , ModularizeImportPackageConfig > > ,
106106 dist_dir : RcStr ,
107107 dist_dir_root : RcStr ,
108108 deployment_id : Option < RcStr > ,
109- #[ bincode( with = "turbo_bincode::serde_json " ) ]
109+ #[ bincode( with = "turbo_bincode::serde_self_describing " ) ]
110110 sass_options : Option < serde_json:: Value > ,
111111 trailing_slash : Option < bool > ,
112112 asset_prefix : Option < RcStr > ,
@@ -119,9 +119,9 @@ pub struct NextConfig {
119119 output : Option < OutputType > ,
120120 turbopack : Option < TurbopackConfig > ,
121121 production_browser_source_maps : bool ,
122- #[ bincode( with = "turbo_bincode::serde_json " ) ]
122+ #[ bincode( with = "turbo_bincode::serde_self_describing " ) ]
123123 output_file_tracing_includes : Option < serde_json:: Value > ,
124- #[ bincode( with = "turbo_bincode::serde_json " ) ]
124+ #[ bincode( with = "turbo_bincode::serde_self_describing " ) ]
125125 output_file_tracing_excludes : Option < serde_json:: Value > ,
126126 // TODO: This option is not respected, it uses Turbopack's root instead.
127127 output_file_tracing_root : Option < RcStr > ,
@@ -154,9 +154,9 @@ pub struct NextConfig {
154154 http_agent_options : HttpAgentConfig ,
155155 on_demand_entries : OnDemandEntriesConfig ,
156156 powered_by_header : bool ,
157- #[ bincode( with = "turbo_bincode::serde_json " ) ]
157+ #[ bincode( with = "turbo_bincode::serde_self_describing " ) ]
158158 public_runtime_config : FxIndexMap < String , serde_json:: Value > ,
159- #[ bincode( with = "turbo_bincode::serde_json " ) ]
159+ #[ bincode( with = "turbo_bincode::serde_self_describing " ) ]
160160 server_runtime_config : FxIndexMap < String , serde_json:: Value > ,
161161 static_page_generation_timeout : f64 ,
162162 target : Option < String > ,
@@ -686,9 +686,9 @@ pub enum RemotePatternProtocol {
686686) ]
687687#[ serde( rename_all = "camelCase" ) ]
688688pub struct TurbopackConfig {
689- #[ bincode( with = "turbo_bincode::serde_json " ) ]
689+ #[ bincode( with = "turbo_bincode::serde_self_describing " ) ]
690690 pub rules : Option < FxIndexMap < RcStr , RuleConfigCollection > > ,
691- #[ bincode( with = "turbo_bincode::serde_json " ) ]
691+ #[ bincode( with = "turbo_bincode::serde_self_describing " ) ]
692692 pub resolve_alias : Option < FxIndexMap < RcStr , JsonValue > > ,
693693 pub resolve_extensions : Option < Vec < RcStr > > ,
694694 pub debug_ids : Option < bool > ,
@@ -955,7 +955,7 @@ pub struct ExperimentalConfig {
955955 /// @see [api reference](https://nextjs.org/docs/app/api-reference/next-config-js/mdxRs)
956956 mdx_rs : Option < MdxRsOptions > ,
957957 strict_next_head : Option < bool > ,
958- #[ bincode( with = "turbo_bincode::serde_json " ) ]
958+ #[ bincode( with = "turbo_bincode::serde_self_describing " ) ]
959959 swc_plugins : Option < Vec < ( RcStr , serde_json:: Value ) > > ,
960960 external_middleware_rewrites_resolve : Option < bool > ,
961961 scroll_restoration : Option < bool > ,
@@ -964,7 +964,7 @@ pub struct ExperimentalConfig {
964964 middleware_prefetch : Option < MiddlewarePrefetchType > ,
965965 /// optimizeCss can be boolean or critters' option object
966966 /// Use Record<string, unknown> as critters doesn't export its Option type ([link](https://github.com/GoogleChromeLabs/critters/blob/a590c05f9197b656d2aeaae9369df2483c26b072/packages/critters/src/index.d.ts))
967- #[ bincode( with = "turbo_bincode::serde_json " ) ]
967+ #[ bincode( with = "turbo_bincode::serde_self_describing " ) ]
968968 optimize_css : Option < serde_json:: Value > ,
969969 next_script_workers : Option < bool > ,
970970 web_vitals_attribution : Option < Vec < RcStr > > ,
@@ -982,15 +982,15 @@ pub struct ExperimentalConfig {
982982 adjust_font_fallbacks_with_size_adjust : Option < bool > ,
983983 after : Option < bool > ,
984984 app_document_preloading : Option < bool > ,
985- #[ bincode( with = "turbo_bincode::serde_json " ) ]
985+ #[ bincode( with = "turbo_bincode::serde_self_describing " ) ]
986986 cache_life : Option < FxIndexMap < String , CacheLifeProfile > > ,
987987 case_sensitive_routes : Option < bool > ,
988988 cpus : Option < f64 > ,
989989 cra_compat : Option < bool > ,
990990 disable_optimized_loading : Option < bool > ,
991991 disable_postcss_preset_env : Option < bool > ,
992992 esm_externals : Option < EsmExternals > ,
993- #[ bincode( with = "turbo_bincode::serde_json " ) ]
993+ #[ bincode( with = "turbo_bincode::serde_self_describing " ) ]
994994 extension_alias : Option < serde_json:: Value > ,
995995 external_dir : Option < bool > ,
996996 /// If set to `false`, webpack won't fall back to polyfill Node.js modules
@@ -1005,7 +1005,7 @@ pub struct ExperimentalConfig {
10051005 instrumentation_hook : Option < bool > ,
10061006 client_trace_metadata : Option < Vec < String > > ,
10071007 large_page_data_bytes : Option < f64 > ,
1008- #[ bincode( with = "turbo_bincode::serde_json " ) ]
1008+ #[ bincode( with = "turbo_bincode::serde_self_describing " ) ]
10091009 logging : Option < serde_json:: Value > ,
10101010 memory_based_workers_count : Option < bool > ,
10111011 /// Optimize React APIs for server builds.
@@ -1024,7 +1024,7 @@ pub struct ExperimentalConfig {
10241024 /// @internal Used by the Next.js internals only.
10251025 trust_host_header : Option < bool > ,
10261026
1027- #[ bincode( with = "turbo_bincode::serde_json " ) ]
1027+ #[ bincode( with = "turbo_bincode::serde_self_describing " ) ]
10281028 url_imports : Option < serde_json:: Value > ,
10291029 /// This option is to enable running the Webpack build in a worker thread
10301030 /// (doesn't apply to Turbopack).
@@ -1395,7 +1395,7 @@ pub struct ResolveExtensions(Option<Vec<RcStr>>);
13951395
13961396#[ turbo_tasks:: value( transparent) ]
13971397pub struct SwcPlugins (
1398- #[ bincode( with = "turbo_bincode::serde_json " ) ] Vec < ( RcStr , serde_json:: Value ) > ,
1398+ #[ bincode( with = "turbo_bincode::serde_self_describing " ) ] Vec < ( RcStr , serde_json:: Value ) > ,
13991399) ;
14001400
14011401#[ turbo_tasks:: value( transparent) ]
@@ -1413,7 +1413,7 @@ pub struct OptionServerActions(Option<ServerActions>);
14131413
14141414#[ turbo_tasks:: value( transparent) ]
14151415pub struct OptionJsonValue (
1416- #[ bincode( with = "turbo_bincode::serde_json " ) ] pub Option < serde_json:: Value > ,
1416+ #[ bincode( with = "turbo_bincode::serde_self_describing " ) ] pub Option < serde_json:: Value > ,
14171417) ;
14181418
14191419fn turbopack_config_documentation_link ( ) -> RcStr {
@@ -1466,7 +1466,7 @@ impl Issue for InvalidLoaderRuleRenameAsIssue {
14661466
14671467#[ turbo_tasks:: value( shared) ]
14681468struct InvalidLoaderRuleConditionIssue {
1469- #[ bincode( with = "turbo_bincode::serde_json " ) ]
1469+ #[ bincode( with = "turbo_bincode::serde_self_describing " ) ]
14701470 condition : ConfigConditionItem ,
14711471 config_file_path : FileSystemPath ,
14721472}
@@ -2207,7 +2207,7 @@ impl NextConfig {
22072207#[ derive( Clone , Debug , Default , PartialEq , Serialize , Deserialize , Encode , Decode ) ]
22082208#[ serde( rename_all = "camelCase" ) ]
22092209pub struct JsConfig {
2210- #[ bincode( with = "turbo_bincode::serde_json " ) ]
2210+ #[ bincode( with = "turbo_bincode::serde_self_describing " ) ]
22112211 compiler_options : Option < serde_json:: Value > ,
22122212}
22132213
0 commit comments